Remove SYS_FONT_PTR and related code.

This commit is contained in:
TomAwezome 2022-08-25 04:33:39 -04:00
parent 6f942441e3
commit 2bd8e2ab0b
4 changed files with 0 additions and 13 deletions

Binary file not shown.

View file

@ -50,8 +50,6 @@ GDT_TR: DU8 MP_PROCESSORS_NUM * 16 DUP(0);
GDT_TR_RING3: DU8 MP_PROCESSORS_NUM * 16 DUP(0);
#assert $$ - SYS_GDT == sizeof(CGDT)
SYS_FONT_PTR:: DU32 0;
SYS_VBE_INFO:: DU8 sizeof(CVBEInfo) DUP(0);
SYS_VBE_MODES:: DU8 sizeof(CVBEModeShort) * VBE_MODES_NUM DUP(0);
SYS_VBE_FINAL_MODE:: DU8 sizeof(CVBEMode) DUP(0);
@ -226,15 +224,6 @@ GET_IP: POP BX
BTS U32 [SYS_RUN_LEVEL], RLf_VESA
@@10:
//Get pointer to 8x8 VGA ROM font.
MOV AX, 0x1130
MOV BH, 3
INT 0x10
MOV AX, ES
SHL EAX, 16
MOV AX, BP
MOV U32 [SYS_FONT_PTR], EAX
//Get E801 memory map.
//Output: AX = Memory between 1MiB and 16MiB in KiB (max 0x3C00 == 15 MiB)
// BX = Memory after 16MiB until first memory hole in 64KiB blocks.

View file

@ -564,7 +564,6 @@ class CKernel
U16 sys_pci_buses;
;$$ = ($$ + 15) & -16;
CGDT sys_gdt;
U32 sys_font_ptr;
CVBEInfo sys_vbe_info;
CVBEModeShort sys_vbe_modes[VBE_MODES_NUM];
CVBEMode sys_vbe_mode;

View file

@ -126,7 +126,6 @@ struct CKernel {
} __attribute__((packed)) sys_gdt_ptr;
uint16_t sys_pci_buses;
struct CGDT sys_gdt __attribute__((aligned(16)));
uint32_t sys_font_ptr;
struct CVBEInfo sys_vbe_info;
struct CVBEModeShort sys_vbe_modes[VBE_MODES_NUM];
struct CVBEMode sys_vbe_mode;