diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 02:31:53 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 02:31:53 +0800 |
| commit | 2c0a717678232438536d0f9238e38e56e440d516 (patch) | |
| tree | 5f58ea409ff52424334ae8fd64544d8d39f938b7 /mubios/include | |
| parent | 921125c7b27db59cd0a1c637637924c3dc3c05b2 (diff) | |
| download | rcc-project-2c0a717678232438536d0f9238e38e56e440d516.tar.gz rcc-project-2c0a717678232438536d0f9238e38e56e440d516.tar.xz | |
[mubios] Initialize IVT, BDA and EBDA.
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'mubios/include')
| -rw-r--r-- | mubios/include/bios.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/mubios/include/bios.h b/mubios/include/bios.h index 1f51244..7681bf0 100644 --- a/mubios/include/bios.h +++ b/mubios/include/bios.h @@ -22,6 +22,22 @@ #ifndef MUBIOS_BIOS_H #define MUBIOS_BIOS_H -void post_main(void); +typedef unsigned char u8; +typedef unsigned short u16; +typedef unsigned int u32; + +#define MUBIOS_IVT_BASE 0x00000000u +#define MUBIOS_IVT_SIZE 0x00000400u + +#define MUBIOS_BDA_BASE 0x00000400u +#define MUBIOS_BDA_SIZE 0x00000100u + +#define BDA_EBDA_SEGMENT_OFFSET 0x000Eu +#define BDA_EQUIPMENT_OFFSET 0x0010u +#define BDA_CONVENTIONAL_MEMORY_OFFSET 0x0013u + +void post_main (void); +void memory_init (void); +void bda_init (void); #endif // MUBIOS_BIOS_H |
