Advertisement
captmicro

Unknown

Feb 6th, 2011
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.64 KB | None | 0 0
  1. //Lower memory (< 1 Mib)
  2. #define REALMODE_IVT            0x00000000
  3. #define REALMODE_IVT_END        0x000003FF
  4. #define BIOS_DATA_AREA          0x00000400
  5. #define BIOS_DATA_AREA_END      0x000004FF
  6. #define RAM_0                   0x00000500
  7. #define RAM_0_END               0x00007BFF
  8. #define OSBOOTSECTOR            0x00007C00
  9. #define OSBOOTSECTOR_END        0x00007DFF
  10. #define RAM_1                   0x00007E00
  11. #define RAM_1_END               0x0007FFFF
  12. #define RAM_2                   0x00080000
  13. #define RAM_2_END               0x0009FBFF
  14. #define EXTBIOSDATAAREA         0x0009FC00
  15. #define EXTBIOSDATAAREA_END     0x0009FC00
  16. #define ROMAREA                 0x000A0000
  17. #define ROMAREA_END             0x000FFFFF
  18. //Upper memory (> 1 MiB)
  19. #define EXTMEM_0                0x00100000
  20. #define EXTMEM_0_END            0x003FFFFF
  21. #define EXTMEM_1                0x00400000
  22. #define EXTMEM_1_END            0x00EFFFFF
  23. #define ISA_MEMORY_HOLE         0x00F00000
  24. #define ISA_MEMORY_HOLE_END     0x00FFFFFF
  25. #define EXTMEM_2                0x01000000
  26. //Rom Area
  27. #define STACK                   RAM_1_END
  28. #define VGA_FRAMEBUFFER         (ROMAREA + 0x00000000)
  29. #define VGA_TEXTMONOCHROME      (ROMAREA + 0x00010000)
  30. #define VGA_TEXTCOLOR           (ROMAREA + 0x00018000)
  31. #define VIDEO_BIOS              (ROMAREA + 0x00020000)
  32. #define MAPPEDHW_MISC           (ROMAREA + 0x00028000)
  33. #define MOTHERBOARD_BIOS        (ROMAREA + 0x000F0000)
  34. //Usefull
  35. #define KERNELMEM_RMODE         0x00003000
  36. #define KERNELMEM_PMODE         EXTMEM_0
  37. #define KERNELMEM_FUNCSEC       (EXTMEM_0 + 0x00300000)
  38. #define KERNELMEM_DATASEC       (EXTMEM_0 + 0x00340000)
  39. #define KERNELMEM_SYSCALLFUNC   (KERNELMEM_FUNCSEC + 0x00000000)
  40. #define KERNELMEM_ISRHANDLERS   (KERNELMEM_FUNCSEC + 0x00000004)
  41. #define KERNELMEM_SYSCALLTBL    (KERNELMEM_FUNCSEC + 0x00000008)
  42. #define KERNELMEM_ISREXCEPTIONS (KERNELMEM_DATASEC + 0xFFFF0000)
  43. #define KDATA(type, addr) ((type)addr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement