Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Lower memory (< 1 Mib)
- #define REALMODE_IVT 0x00000000
- #define REALMODE_IVT_END 0x000003FF
- #define BIOS_DATA_AREA 0x00000400
- #define BIOS_DATA_AREA_END 0x000004FF
- #define RAM_0 0x00000500
- #define RAM_0_END 0x00007BFF
- #define OSBOOTSECTOR 0x00007C00
- #define OSBOOTSECTOR_END 0x00007DFF
- #define RAM_1 0x00007E00
- #define RAM_1_END 0x0007FFFF
- #define RAM_2 0x00080000
- #define RAM_2_END 0x0009FBFF
- #define EXTBIOSDATAAREA 0x0009FC00
- #define EXTBIOSDATAAREA_END 0x0009FC00
- #define ROMAREA 0x000A0000
- #define ROMAREA_END 0x000FFFFF
- //Upper memory (> 1 MiB)
- #define EXTMEM_0 0x00100000
- #define EXTMEM_0_END 0x003FFFFF
- #define EXTMEM_1 0x00400000
- #define EXTMEM_1_END 0x00EFFFFF
- #define ISA_MEMORY_HOLE 0x00F00000
- #define ISA_MEMORY_HOLE_END 0x00FFFFFF
- #define EXTMEM_2 0x01000000
- //Rom Area
- #define STACK RAM_1_END
- #define VGA_FRAMEBUFFER (ROMAREA + 0x00000000)
- #define VGA_TEXTMONOCHROME (ROMAREA + 0x00010000)
- #define VGA_TEXTCOLOR (ROMAREA + 0x00018000)
- #define VIDEO_BIOS (ROMAREA + 0x00020000)
- #define MAPPEDHW_MISC (ROMAREA + 0x00028000)
- #define MOTHERBOARD_BIOS (ROMAREA + 0x000F0000)
- //Usefull
- #define KERNELMEM_RMODE 0x00003000
- #define KERNELMEM_PMODE EXTMEM_0
- #define KERNELMEM_FUNCSEC (EXTMEM_0 + 0x00300000)
- #define KERNELMEM_DATASEC (EXTMEM_0 + 0x00340000)
- #define KERNELMEM_SYSCALLFUNC (KERNELMEM_FUNCSEC + 0x00000000)
- #define KERNELMEM_ISRHANDLERS (KERNELMEM_FUNCSEC + 0x00000004)
- #define KERNELMEM_SYSCALLTBL (KERNELMEM_FUNCSEC + 0x00000008)
- #define KERNELMEM_ISREXCEPTIONS (KERNELMEM_DATASEC + 0xFFFF0000)
- #define KDATA(type, addr) ((type)addr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement