🆕 sys_open系统调用

This commit is contained in:
fslongjin
2022-04-27 00:39:02 +08:00
parent d94d92f5ee
commit 966d67fcde
14 changed files with 343 additions and 144 deletions

View File

@ -7,8 +7,9 @@
#define PTRS_PER_PGT 512
// 内核层的起始地址
#define PAGE_OFFSET ((unsigned long)0xffff800000000000)
#define KERNEL_BASE_LINEAR_ADDR ((unsigned long)0xffff800000000000)
#define PAGE_OFFSET (0xffff800000000000UL)
#define KERNEL_BASE_LINEAR_ADDR (0xffff800000000000UL)
#define USER_MAX_LINEAR_ADDR 0x00007fffffffffffUL;
#define PAGE_4K_SHIFT 12
#define PAGE_2M_SHIFT 21