Skip to content

Commit

Permalink
vm: Fix VM constants
Browse files Browse the repository at this point in the history
  • Loading branch information
marv7000 committed Jan 23, 2025
1 parent 1c81482 commit cb9b754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions include/menix/memory/vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ typedef struct
extern PageMap* vm_kernel_map;
extern VirtAddr kernel_map_base;

// User constants
#define VM_USER_STACK_SIZE 0x200000
#define VM_USER_STACK_BASE 0x200000
#define VM_USER_STACK_BASE 0x00007F0000000000
#define VM_USER_MAP_BASE 0x0000600000000000
// Kernel constants
#define VM_KERNEL_STACK_SIZE 0x200000
#define VM_USER_MAP_BASE 0x00007F0000000000
#define VM_MAP_BASE 0xFFFF900000000000
#define VM_MEMORY_BASE 0xFFFFA00000000000
#define VM_MODULE_BASE 0xFFFFB00000000000
Expand Down
1 change: 0 additions & 1 deletion include/menix/system/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#define PT_SHLIB 0x00000005
#define PT_PHDR 0x00000006
#define PT_TLS 0x00000007
#define PT_MODULE 0x61111111 //! Custom type to mark the module segment/.mod section.
// Program Header Flags
#define PF_X 0x01
#define PF_W 0x02
Expand Down

0 comments on commit cb9b754

Please sign in to comment.