mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 00:06:32 +00:00
使用cargo管理一些C文件的编译,并且移动部分汇编到arch目录 (#447)
* 使用cargo管理main.c的编译 * 使用build-scripts编译架构相关的c代码 * 删除elf.h
This commit is contained in:
@ -7,7 +7,7 @@ use hashbrown::HashMap;
|
||||
|
||||
use crate::{
|
||||
arch::mm::LowAddressRemapping,
|
||||
include::bindings::bindings::{gfp_t, vm_flags_t, PAGE_U_S},
|
||||
include::bindings::bindings::{gfp_t, PAGE_U_S},
|
||||
kerror,
|
||||
libs::{align::page_align_up, spinlock::SpinLock},
|
||||
mm::MMArch,
|
||||
@ -140,7 +140,7 @@ pub unsafe extern "C" fn rs_unmap_at_low_addr() -> usize {
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn rs_mmio_create(
|
||||
size: u32,
|
||||
_vm_flags: vm_flags_t,
|
||||
_vm_flags: u64,
|
||||
res_vaddr: *mut u64,
|
||||
res_length: *mut u64,
|
||||
) -> i32 {
|
||||
|
@ -1,6 +0,0 @@
|
||||
#pragma once
|
||||
#include <common/glib.h>
|
||||
#include <common/spinlock.h>
|
||||
#include <common/atomic.h>
|
||||
|
||||
typedef uint64_t vm_flags_t;
|
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <common/glib.h>
|
||||
#include <mm/mm-types.h>
|
||||
#include <process/process.h>
|
||||
|
||||
extern void rs_pseudo_map_phys(uint64_t virt_addr, uint64_t phys_addr, uint64_t size);
|
||||
|
Reference in New Issue
Block a user