git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git]
/
lunaix-os
/
arch
/
i386
/
includes
/
sys
/
mm
/
mempart.h
diff --git
a/lunaix-os/arch/i386/includes/sys/mm/mempart.h
b/lunaix-os/arch/i386/includes/sys/mm/mempart.h
index 50015aae8c6656caa106f3f69c6e6bb90b063d52..d923d45c69a445d6f3d0592f4a9fb21cc6baa604 100644
(file)
--- a/
lunaix-os/arch/i386/includes/sys/mm/mempart.h
+++ b/
lunaix-os/arch/i386/includes/sys/mm/mempart.h
@@
-1,3
+1,5
@@
+#ifndef __LUNAIX_MEMPART_H
+#define __LUNAIX_MEMPART_H
/* Physical Adress Space Partition */
/* Generated from mempart.h.j2. Do NOT modify */
/* Physical Adress Space Partition */
/* Generated from mempart.h.j2. Do NOT modify */
@@
-7,39
+9,52
@@
#define MEM_HUGE 0x400000UL
#define MEM_1G 0x40000000UL
#define MEM_HUGE 0x400000UL
#define MEM_1G 0x40000000UL
-#define K
ERNEL_STACK 0x3
00000UL
-#define K
ERNEL_STACK_SIZE 0x1
00000UL
-#define K
ERNEL_STACK
_END 0x3ffff0UL
+#define K
STACK_AREA 0x1
00000UL
+#define K
STACK_AREA_SIZE 0x3
00000UL
+#define K
STACK_AREA
_END 0x3ffff0UL
-#define
KERNEL_EXEC 0xc00
00000UL
-#define
KERNEL_EXEC_SIZE 0x4
000000UL
-#define
KERNEL_EXEC_END 0xc3f
fffffUL
+#define
USR_EXEC 0x4
00000UL
+#define
USR_EXEC_SIZE 0x20
000000UL
+#define
USR_EXEC_END 0x203
fffffUL
-#define
PD_MOUNT 0xc40
00000UL
-#define
PD_MOUNT_SIZE 0x40
0000UL
-#define
PD_MOUNT_END 0xc43f
ffffUL
+#define
USR_MMAP 0x204
00000UL
+#define
USR_MMAP_SIZE 0x9fbc
0000UL
+#define
USR_MMAP_END 0xbffb
ffffUL
-#define PG_MOUNT_1 0xc4400000UL
+#define USR_STACK 0xbffc0000UL
+#define USR_STACK_SIZE 0x40000UL
+#define USR_STACK_END 0xbffffff0UL
+
+#define KERNEL_IMG 0xc0000000UL
+#define KERNEL_IMG_SIZE 0x4000000UL
+#define KERNEL_IMG_END 0xc3ffffffUL
+
+#define PG_MOUNT_1 0xc4000000UL
#define PG_MOUNT_1_SIZE 0x1000UL
#define PG_MOUNT_1_SIZE 0x1000UL
-#define PG_MOUNT_1_END 0xc4
4
00fffUL
+#define PG_MOUNT_1_END 0xc4
0
00fffUL
-#define PG_MOUNT_2 0xc4
4
01000UL
+#define PG_MOUNT_2 0xc4
0
01000UL
#define PG_MOUNT_2_SIZE 0x1000UL
#define PG_MOUNT_2_SIZE 0x1000UL
-#define PG_MOUNT_2_END 0xc4
4
01fffUL
+#define PG_MOUNT_2_END 0xc4
0
01fffUL
-#define PG_MOUNT_3 0xc4
4
02000UL
+#define PG_MOUNT_3 0xc4
0
02000UL
#define PG_MOUNT_3_SIZE 0x1000UL
#define PG_MOUNT_3_SIZE 0x1000UL
-#define PG_MOUNT_3_END 0xc4
4
02fffUL
+#define PG_MOUNT_3_END 0xc4
0
02fffUL
-#define PG_MOUNT_4 0xc4
4
03000UL
+#define PG_MOUNT_4 0xc4
0
03000UL
#define PG_MOUNT_4_SIZE 0x1000UL
#define PG_MOUNT_4_SIZE 0x1000UL
-#define PG_MOUNT_4_END 0xc4403fffUL
+#define PG_MOUNT_4_END 0xc4003fffUL
+
+#define VMAP 0xc4400000UL
+#define VMAP_SIZE 0x3b400000UL
+#define VMAP_END 0xff7fffffUL
-#define VM
AP 0xc4404
000UL
-#define VM
AP_SIZE 0x3b7fc
000UL
-#define VM
AP
_END 0xffbfffffUL
+#define VM
S_MOUNT_1 0xff800
000UL
+#define VM
S_MOUNT_1_SIZE 0x400
000UL
+#define VM
S_MOUNT_1
_END 0xffbfffffUL
#define PD_REF 0xffc00000UL
#define PD_REF_SIZE 0x400000UL
#define PD_REF_END 0xffffffffUL
#define PD_REF 0xffc00000UL
#define PD_REF_SIZE 0x400000UL
#define PD_REF_END 0xffffffffUL
+#endif
\ No newline at end of file