mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 15:26:43 +00:00
ZealBooter: Move sys_pci_buses assignment to zealbooter.c
This commit is contained in:
parent
d7f72e3aa9
commit
ee265c8767
4 changed files with 3 additions and 4 deletions
|
@ -33,7 +33,7 @@ MEM_E820:: DU8 MEM_E820_ENTRIES_NUM * sizeof(CMemE820) DUP (0);
|
|||
MEM_PHYSICAL_SPACE:: DU64 0;
|
||||
SYS_GDT_PTR:: DU16 sizeof(CGDT) - 1;
|
||||
DU64 0;
|
||||
SYS_PCI_BUSES:: DU16 256;
|
||||
SYS_PCI_BUSES:: DU16 0;
|
||||
|
||||
ALIGN 16, OC_NOP
|
||||
|
||||
|
@ -54,7 +54,6 @@ 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);
|
||||
SYS_VBE_FINAL_MODE_NUM::DU16 0; //mode number of final mode set
|
||||
#assert $$ - SYS_KERNEL == sizeof(CKernel) - sizeof(CZXE)
|
||||
|
|
|
@ -105,7 +105,6 @@ CORE0_32BIT_INIT:: //Entry point for $LK,"BootRAM",A="MN:BootRAM"$.
|
|||
//Patch abs addresses
|
||||
MOV ECX, U32 CPatchTableAbsAddr.abs_address_count[ESI]
|
||||
LEA ESI, U32 CPatchTableAbsAddr.abs_address[ESI]
|
||||
|
||||
@@05: LODSD
|
||||
ADD EAX, EDI
|
||||
ADD U32 [EAX], EDI
|
||||
|
|
|
@ -193,7 +193,6 @@ U0 MPAPICInit()
|
|||
|
||||
RAXSet(Gs->tss->tr);
|
||||
LTR AX
|
||||
|
||||
if (Gs->num)
|
||||
{
|
||||
IntInit1;
|
||||
|
|
|
@ -215,6 +215,8 @@ void _start(void) {
|
|||
CKernel->sys_gdt_ptr.base = (void *)&CKernel->sys_gdt - (uintptr_t)kernel->address;
|
||||
CKernel->sys_gdt_ptr.base += final_address;
|
||||
|
||||
CKernel->sys_pci_buses = 256;
|
||||
|
||||
struct E801 E801 = get_E801();
|
||||
CKernel->mem_E801[0] = E801.lowermem;
|
||||
CKernel->mem_E801[1] = E801.uppermem;
|
||||
|
|
Loading…
Reference in a new issue