Commit Graph

287 Commits

Author SHA1 Message Date
94076b7471 Separate image base address per architecture 2024-07-10 22:42:48 +02:00
6bcf3e134f Unify naming convention and switch to ULONG in memory map related routines 2024-07-06 22:59:10 +02:00
906e09fd9f Refactor COM port support, to get rid of global variables in library 2024-06-12 18:02:29 +02:00
bfe3d4b18a Fix pointer overflow 2024-06-10 16:01:19 +02:00
bd7d4f5a0d Fix function type mismatch undefined behavior when calling through a pointer 2024-06-09 22:26:01 +02:00
7704e5d399 Initial kernel ACPI support 2024-06-04 16:24:13 +02:00
db5d6c42c9 Rework AcpChecksumTable() routine into AcpValidateAcpiTable() 2024-06-03 23:31:33 +02:00
54b7e46f1b Simplify AcGetAcpiTable() routine a bit 2024-06-03 23:24:54 +02:00
f265810a5c Fix AcGetAcpiTable() routine failing to validate FADT checksum on some ACPI 2.0 and older machines 2024-06-03 21:58:19 +02:00
9124574bc5 Fixes and improvements to ACPI related structures and definitions 2024-06-03 21:17:31 +02:00
7f922dd864 Let XTLDR provide ACPI system resource 2024-06-02 22:30:52 +02:00
29ff9e114e Mark XtMapHardwareMemoryPool() routine private 2024-06-02 17:34:30 +02:00
c1ab5fe98d Cleanup hardware allocation memory pool related code for i686 2024-06-02 17:32:39 +02:00
6176ca38a8 Cleanup hardware allocation memory pool related code 2024-06-02 17:29:31 +02:00
6b1ccc4ce5 Do not hardcode PML shift values 2024-05-27 22:26:05 +02:00
f968eb21fd Cleanup the code 2024-05-27 22:20:53 +02:00
7f8846f23d Map memory for hardware layer on i686 2024-05-27 22:17:30 +02:00
ae243a9d07 Map memory for hardware layer on amd64 2024-05-27 21:54:21 +02:00
5221db2e63 Rename LOADER_MEMORY_MAPPING structure to more meaningful LOADER_MEMORY_DESCRIPTOR 2024-05-23 19:00:50 +02:00
28903e0c10 Add missing forward reference for AcGetAcpiTable() routine 2024-05-20 15:34:49 +02:00
ac33b86c3d Implement AcGetAcpiTable() routine 2024-05-19 23:45:28 +02:00
34cc81c446 Provide framebuffer information via system resource 2024-05-18 17:06:44 +02:00
058649036f Take care about blink first, otherwise BlPhysicalListToVirtual() fails to properly map single-element linked list 2024-05-16 22:17:40 +02:00
c576f7f8f2 Provide pixel information to the kernel 2024-05-12 22:28:06 +02:00
615a1457bf Fixes to FbpGetPixelInformation() and FbpGetColorMask() routines 2024-05-12 22:20:22 +02:00
07d7e06b2b Flush keyboard buffer out of any keystrokes before waiting for user input 2024-05-05 15:29:20 +02:00
5a013e3ab5 Properly free memory after reading a file 2024-04-30 12:27:27 +02:00
99ff358287 Don't mess with input string 2024-04-30 10:31:17 +02:00
c4d5b5bb25 Truncate memory descriptor to 4GB only with PML2 2024-04-29 23:59:17 +02:00
763bade115 Use correct string formatting when printing page mapping 2024-04-29 23:57:09 +02:00
0756eb9b29 Allocate memory before copying a buffer 2024-04-29 22:39:32 +02:00
ab618f95b9 Use dedicated GUID for DUMMYOS boot protocol 2024-04-29 13:48:01 +02:00
a4bb5a8ecc Correct formatting 2024-04-29 12:35:32 +02:00
170b11f7a2 Change OS boot identifier, to be able to load both 'dummy' and 'xtos' modules at the same time 2024-04-29 12:31:18 +02:00
6b8184aa04 Fix code formatting 2024-04-29 08:38:45 +02:00
e80927c5d3 Fix undefined behavior and NULL pointer in boot loader OS list renderer 2024-04-27 00:42:25 +02:00
7193e698f1 Store page map level 2024-04-07 17:49:24 +02:00
388ac1a8c2 Properly, recursively self map page tables on i686 architecture 2024-04-07 17:11:14 +02:00
0af3a01acf Pass compatible pointer type to fix compiler warning 2024-04-07 10:50:21 +02:00
1305672875 Properly, recursively self map page tables; currently only for AMD64 and PML4 2024-04-05 00:26:41 +02:00
c6f3422c49 Update PTE related structures 2024-04-03 16:00:26 +02:00
dcca4870cd Move cursor before changing console attributes 2024-03-28 14:06:52 +01:00
1cdc1d3e54 Truncate EFI memory descriptor to 4GB and never map EFI reserved memory like PCI BAR 2024-03-26 23:04:54 +01:00
e24c37c9b1 First page is now always present in memory map, so there is no need to map it explicitly 2024-03-24 23:01:52 +01:00
ce8c66f93a Always map first page 2024-03-24 22:52:18 +01:00
b3be36e23d Map BIOS ROM and VRAM 2024-03-24 15:53:36 +01:00
56d50ea2e8 Implement EDID support for getting the preferred screen resolution 2024-03-21 15:40:09 +01:00
eb75a27ac2 Use common handle and properly close GOP protocol on failures 2024-03-21 06:59:05 +01:00
3cd55260e6 Expose BlEnterFirmwareSetup() routine via XTLDR protocol 2024-03-19 17:11:38 +01:00
e263effe13 Allow to reboot into UEFI Firmware setup interface after pressing F10 in the boot menu 2024-03-19 17:04:14 +01:00