X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/b26d3165c52589d1f8de37bf0df27ad96f460f47..d1b1c8d9119229dbeed06cd252917e54a1cb77f6:/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 50015aa..aac7f9c 100644 --- a/lunaix-os/arch/i386/includes/sys/mm/mempart.h +++ b/lunaix-os/arch/i386/includes/sys/mm/mempart.h @@ -1,5 +1,5 @@ -/* Physical Adress Space Partition */ -/* Generated from mempart.h.j2. Do NOT modify */ +#ifndef __LUNAIX_MEMPART_H +#define __LUNAIX_MEMPART_H #define MEM_PAGE 0x1000UL #define MEM_1M 0x100000UL @@ -7,39 +7,54 @@ #define MEM_HUGE 0x400000UL #define MEM_1G 0x40000000UL -#define KERNEL_STACK 0x300000UL -#define KERNEL_STACK_SIZE 0x100000UL -#define KERNEL_STACK_END 0x3ffff0UL +#define END_POINT(name) (name + name##_SIZE - 1) -#define KERNEL_EXEC 0xc0000000UL -#define KERNEL_EXEC_SIZE 0x4000000UL -#define KERNEL_EXEC_END 0xc3ffffffUL +#define KSTACK_AREA 0x100000UL +#define KSTACK_AREA_SIZE 0x300000UL +#define KSTACK_AREA_END END_POINT(KSTACK_AREA) -#define PD_MOUNT 0xc4000000UL -#define PD_MOUNT_SIZE 0x400000UL -#define PD_MOUNT_END 0xc43fffffUL +#define USR_EXEC 0x400000UL +#define USR_EXEC_SIZE 0x20000000UL +#define USR_EXEC_END END_POINT(USR_EXEC) -#define PG_MOUNT_1 0xc4400000UL +#define USR_MMAP 0x20400000UL +#define USR_MMAP_SIZE 0x9fbc0000UL +#define USR_MMAP_END END_POINT(USR_MMAP) + +#define USR_STACK 0xbffc0000UL +#define USR_STACK_SIZE 0x40000UL +#define USR_STACK_END END_POINT(USR_STACK) + +#define KERNEL_IMG 0xc0000000UL +#define KERNEL_IMG_SIZE 0x4000000UL +#define KERNEL_IMG_END END_POINT(KERNEL_IMG) + +#define PG_MOUNT_1 0xc4000000UL #define PG_MOUNT_1_SIZE 0x1000UL -#define PG_MOUNT_1_END 0xc4400fffUL +#define PG_MOUNT_1_END END_POINT(PG_MOUNT_1) -#define PG_MOUNT_2 0xc4401000UL +#define PG_MOUNT_2 0xc4001000UL #define PG_MOUNT_2_SIZE 0x1000UL -#define PG_MOUNT_2_END 0xc4401fffUL +#define PG_MOUNT_2_END END_POINT(PG_MOUNT_2) -#define PG_MOUNT_3 0xc4402000UL +#define PG_MOUNT_3 0xc4002000UL #define PG_MOUNT_3_SIZE 0x1000UL -#define PG_MOUNT_3_END 0xc4402fffUL +#define PG_MOUNT_3_END END_POINT(PG_MOUNT_3) -#define PG_MOUNT_4 0xc4403000UL +#define PG_MOUNT_4 0xc4003000UL #define PG_MOUNT_4_SIZE 0x1000UL -#define PG_MOUNT_4_END 0xc4403fffUL +#define PG_MOUNT_4_END END_POINT(PG_MOUNT_4) + +#define PG_MOUNT_VAR 0xc4004000UL +#define PG_MOUNT_VAR_SIZE 0x3fc000UL +#define PG_MOUNT_VAR_END END_POINT(PG_MOUNT_VAR) -#define VMAP 0xc4404000UL -#define VMAP_SIZE 0x3b7fc000UL -#define VMAP_END 0xffbfffffUL +#define VMAP 0xc4400000UL +#define VMAP_SIZE 0x3b400000UL +#define VMAP_END END_POINT(VMAP) -#define PD_REF 0xffc00000UL -#define PD_REF_SIZE 0x400000UL -#define PD_REF_END 0xffffffffUL +#define VMS_MOUNT_1 0xff800000UL +#define VMS_MOUNT_1_SIZE 0x400000UL +#define VMS_MOUNT_1_END END_POINT(VMS_MOUNT_1) +#endif \ No newline at end of file