Commit Graph

10 Commits

Author SHA1 Message Date
Eric-Paul Ickhorn ebb5a4ad92
Fix wrong memory address in driver manager
The  driver manager gave all  of the initialization  functions a wrong
pointer; it wasn't offset to point into the driver memory area. That's
fixed now.
2024-09-02 04:02:04 +02:00
Eric-Paul Ickhorn 40b89c3985
Refactor PCI device enumeration
The PCI driver's function  'pci_check_device_exists'  can now test for
a specific function. There were a few changes connected to that, those
have also been done now.
2024-08-30 20:19:07 +02:00
Eric-Paul Ickhorn c249510163
Fix bug in PCI driver with not saved registers
In the PCI driver's device enumeration function, there was a mistake
where a register that is being used in that function wasn't preserved
as it should've been. It didn't cause any errors (at least yet), but
it's better to fix such stuff once found.
2024-08-17 18:59:52 +02:00
Eric-Paul Ickhorn 459936de7a
Call driver setup function in protected entry
The driver manager's function for initializing all builtin drivers is
now being called in the 'stage2_protected_entry'-function, a function
that is called once the GDT is set up and calls all other functions
to get the system to boot.
2024-08-17 18:57:49 +02:00
Eric-Paul Ickhorn f73227fe74
Fix two syntax errors in ACPI utilities
The first one was a stray letter 'Z' somewhere in the source.
The second one was an error due to some changes being half-done; an
assembly label that did not yet exist was used.

Those two errors are fixed now.
2024-08-17 17:06:09 +02:00
Eric-Paul Ickhorn 916d7bd030
Initialize ACPI driver in manager
The previous commit said that this is being done, but it didn't have
the changes in the driver manager. Those are here.
2024-08-17 17:01:20 +02:00
Eric-Paul Ickhorn 2923a300b5
Write some ACPI stubs
The ACPI driver is not required yet, but some stubs have already been
added to the sources; only to test the driver initialization function
of the driver manager.
2024-08-17 16:52:17 +02:00
Eric-Paul Ickhorn 21ba34f526
Fix stack growing direction in GDT being swapped
In the GDT, the direction in which the stack grows in x86 has been
ignored; for reserving space on the stack, the ESP register was added
to and for cleaning up that space, ESP was subtracted from. That is
obviously wrong and is fixed with this commit.
2024-08-17 16:46:23 +02:00
Eric-Paul Ickhorn 95faf0cc5a
Add procedure for searching RSDT Pointer (RSDP)
The newly added function only searchs the "RSD PTR "-signature in the
Main BIOS Area, not in the *Extended* BIOS Area. That should be fixed,
but right now, it's of little relevance.
2024-08-14 10:24:16 +02:00
Eric-Paul Ickhorn 1b7ef62c61
Rename legacy boot code for clarity
As the legacy boot code will be abandoned for the time being, it made
sense to rename the folder to indicate the legacy nature of the code.
2024-08-07 10:28:40 +02:00