Commit Graph
100 Commits
Author SHA1 Message Date
belliash 9f739df595 There is no need to allocate so much memory 2024-01-23 20:53:26 +01:00
belliash eec318a362 Reformat code 2024-01-23 15:38:52 +01:00
belliash f2887dba1f Rename XtLdrProtocol variable 2024-01-23 15:17:39 +01:00
belliash f2ab4894a5 Use correct paths in debug messages 2024-01-23 15:14:50 +01:00
belliash 825c3b6f9a Keep all paths in single place 2024-01-23 15:12:26 +01:00
belliash 435ee66ce1 Implement BlLoadEfiImage() and BlStartEfiImage() routines 2024-01-22 23:04:24 +01:00
belliash 6733e092ba Add missing comment 2024-01-22 20:47:49 +01:00
belliash 9fe347fd0a Correct comments 2024-01-22 20:42:29 +01:00
belliash af400920d0 Make a use of BlBuildPageMap() 2024-01-22 15:20:22 +01:00
belliash 0c3aee829a Add missing forward reference 2024-01-22 15:16:39 +01:00
belliash 7128159c42 Implement BlBuildPageMap() routine 2024-01-22 15:15:21 +01:00
belliash 85d43e54b8 Add missing forward reference 2024-01-22 15:14:07 +01:00
belliash 22a7676b9b Store boot loader image information and close EFI_LOADED_IMAGE_PROTOCOL afterwards 2024-01-22 15:11:56 +01:00
belliash 8580557985 Check if new mapping is a subset of an already existing mapping 2024-01-22 15:09:03 +01:00
belliash c24745d233 Allow to specify virtual address during EFI memory mapping only 2024-01-19 23:16:45 +01:00
belliash 88321b5f4d Pass virtual memory area address by reference 2024-01-18 23:10:47 +01:00
belliash 9f5018abf0 Update BlInitializePageMap() description 2024-01-18 15:10:32 +01:00
belliash c716ad81f0 i686 supports switching to huge pages mode with 2MB or 4MB page size only 2024-01-18 14:48:43 +01:00
belliash 0a47d43644 Move target specific code 2024-01-18 14:32:40 +01:00
belliash 02f0e34b83 Allow to provide page size during initialization 2024-01-18 14:30:58 +01:00
belliash 5acf8b4abd Add page size enumeration list 2024-01-18 14:22:51 +01:00
belliash 0e4575b278 Use new paging implementation 2024-01-17 22:24:55 +01:00
belliash 89c18bbce6 Initial paging support 2024-01-17 14:42:07 +01:00
belliash 8f40683270 Rename memory related routines to follow naming convention 2024-01-15 15:13:34 +01:00
belliash e64cf4d0aa Add CR4_LA57 definition 2024-01-14 21:06:02 +01:00
belliash 93340936d3 Update XTLDR help 2024-01-12 16:04:25 +01:00
belliash 019f084e49 Allow to reboot or shutdown from XTLDR boot menu 2024-01-12 16:03:21 +01:00
belliash c2e8e29775 Add missing forward references 2024-01-12 16:02:14 +01:00
belliash 521006d939 Implement BlRebootSystem() and BlShutdownSystem() routines 2024-01-12 15:59:38 +01:00
belliash 489734d5c9 Implement test function to get framebuffer address by accessing graphics adapter's BARs 2024-01-12 15:18:36 +01:00
belliash 9501d3da36 Improvements to protocol support 2024-01-12 15:10:27 +01:00
belliash c9b843c60f Align EFI definitions 2024-01-11 21:43:00 +01:00
belliash 7a06b238a3 Add EFI ACPI related definitions 2024-01-11 21:40:12 +01:00
belliash 1270c7e283 Add EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR structure and missing forward references 2024-01-11 21:21:47 +01:00
belliash 12af27c579 Add PCI Type0 and Type1 device structure definitions 2024-01-11 19:09:20 +01:00
belliash 11979f758b Conform BlExitBootServices() to UEFI Specification 2024-01-10 21:59:51 +01:00
belliash a6d4f157b6 Fix i686 build 2024-01-10 20:00:26 +01:00
belliash c98007a4a5 Do not link against libxtos if not needed 2024-01-10 19:55:20 +01:00
belliash c4450e88ab Add common memory related routines to XTLDR protocol 2024-01-10 19:51:27 +01:00
belliash 53cd4e0052 Cleanup PE/COFF related structures 2024-01-10 16:05:36 +01:00
belliash e3376c181f Add agreement to pull request template 2024-01-09 19:02:10 +01:00
belliash b78bfcd219 Update issue template 2024-01-09 18:59:07 +01:00
belliash 878f7e3c0f Simplify codeowners path 2024-01-09 18:58:34 +01:00
belliash 4412d4fc98 Rewrite core of the XTLDR boot loader
Reviewed-on: xt-sys/exectos#7
Reviewed-by: Piotr Likoski <likoski@noreply.codingworkshop.git>
Co-authored-by: Rafal Kupiec <belliash@codingworkshop.eu.org>
Co-committed-by: Rafal Kupiec <belliash@codingworkshop.eu.org>
2024-01-09 18:51:04 +01:00
belliash 44905bb71d Add missing whitespace character to the comment 2024-01-07 00:18:00 +01:00
belliash 1206069882 Add ability to produce linker map file 2024-01-02 10:52:03 +01:00
belliash f00b1b620f Add SEGMENT macro for specifying a segment in which the object will be allocated 2023-12-30 01:04:02 +01:00
belliash 493dbd0a5a Add EFI TUI definitions 2023-12-15 20:12:30 +01:00
belliash 579b4dc970 Implement RtlTrimLeftString(), RtlTrimRightString() and RtlTrimString() routines 2023-12-09 20:18:02 +01:00
belliash d7fbe531fd Improvements in string and wide string support
* Implement RtlCompareString(), RtlCompareStringInsensitive(), RtlCompareWideString() and RtlCompareWideStringInsensitive()
* Rename some routines t omatch naming conventions
* Switch to CHAR in string operations
2023-12-06 23:00:18 +01:00
belliash ec63fe3fa6 Retry exiting boot services if first try fails 2023-12-02 16:02:24 +01:00
belliash 146a331c80 Let UEFI firmware load xtldr into lower half 2023-12-02 09:02:04 +01:00
belliash ceee8f2c72 Correct typo 2023-11-30 18:24:26 +01:00
belliash 1b89287667 Add CODEOWNERS file to define individuals or teams responsible for a code 2023-11-30 17:14:12 +01:00
belliash 1e696258c2 Initialize framebuffer and processor 2023-11-29 22:49:15 +01:00
belliash 31b8cd8d3d Update HlDisablePic() description 2023-11-29 22:43:57 +01:00
belliash dddd1eb183 Rename internal kernel headers to distinguish them easily from XTDK 2023-11-29 20:39:59 +01:00
belliash 53d84b772a Add missing commas 2023-11-29 20:17:31 +01:00
belliash 59aa62916a Include architecture specific HAL headers 2023-11-29 20:15:12 +01:00
belliash 3800138f52 Move (A)PIC related forward references to arch-specific headers 2023-11-29 20:13:03 +01:00
belliash 669b84a826 Add architecture related information to kernel startup string 2023-11-29 18:32:03 +01:00
belliash 9aafa63617 Move CPU and PIC support into common for i686 and amd64 place 2023-11-29 18:26:46 +01:00
belliash a90a30ff7a Move XTOS GUIDs into separate header 2023-11-29 17:59:53 +01:00
belliash 7a60f46f24 Add preprocessor macro for including common headers and source files across different architectures 2023-11-29 16:12:55 +01:00
belliash db1f693d9c Corrections to UEFI_FIRMWARE_INFORMATION and KERNEL_INITIALIZATION_BLOCK 2023-11-29 15:57:09 +01:00
belliash 0d1fcde3a5 Add missing StallScaleFactor to KPROCESSOR_BLOCK 2023-11-28 23:08:35 +01:00
belliash f6c621c2a6 Basic processor initialization code 2023-11-28 22:31:39 +01:00
belliash d4ee87fd62 Fix function prototype 2023-11-28 15:39:32 +01:00
belliash d17b06a180 Register interrupt handlers once the APIC initialization is done 2023-11-28 14:20:23 +01:00
belliash c4ccf52782 Correct code formatting 2023-11-28 14:05:08 +01:00
belliash e5adc31af7 Implement basic APIC support, including X2APIC 2023-11-27 22:38:15 +01:00
belliash 4ca4e298f0 Add more PIC/APIC related definitions 2023-11-26 23:35:14 +01:00
belliash e886baa0d8 Fix reading from and writting to APIC registers 2023-11-26 16:57:40 +01:00
belliash 5b48525b1d Increase commit hash to 10 characters to match Gitea 2023-11-26 16:26:22 +01:00
belliash 0e6844e2fa Fix page fault on accessing initial thread frame 2023-11-26 14:14:54 +01:00
belliash 96a19d23b3 Fix i686 build by setting APIC transformation tables static 2023-11-26 00:38:20 +01:00
belliash ba6e68e1b5 Fix a bug that caused overwritting a value read from CR8 with a default value 2023-11-26 00:33:46 +01:00
belliash bed49fa0ac Fix function prototypes using fastcall and stdcall calling convensions 2023-11-25 23:25:44 +01:00
belliash e245754d95 Add running level management support 2023-11-25 23:14:15 +01:00
belliash 4701351bd7 Add missing SYNC_LEVEL definition 2023-11-25 22:14:45 +01:00
belliash 5204d8bc2f Correct (A)PIC related source file description 2023-11-25 19:23:18 +01:00
belliash 14a966043e Add missing Interrupt request level definitions 2023-11-25 18:50:59 +01:00
belliash 0e6bf984a5 Add APIC vector definitions 2023-11-25 18:33:01 +01:00
belliash 55cc62f5a0 Rename KIRQL to KRUNLEVEL type 2023-11-25 00:32:55 +01:00
belliash 236927fba0 Move APIC related routines 2023-11-24 22:45:29 +01:00
belliash c526e63b7a Add EFI Framework MP services protocol related structures 2023-11-23 15:38:32 +01:00
belliash 1cb21a81dd Rename HlInitializeDisplay() to HlInitializeFrameBuffer() 2023-11-22 20:36:05 +01:00
belliash f28c870192 Implement KeHaltSystem() routine 2023-11-22 19:24:14 +01:00
belliash d7e6d319cf Update XTOS ideas 2023-11-22 19:22:51 +01:00
belliash d8403d01f5 Verify kernel and boot loader compatibility 2023-11-22 17:22:57 +01:00
belliash c66ea77a8b Enable ASM, C and CXX compilers 2023-11-20 23:52:49 +01:00
belliash c4143c63f9 Enable LLVM MASM Assembly 2023-11-20 23:30:44 +01:00
belliash d2fb0a6830 Update ideas file 2023-11-20 16:44:21 +01:00
belliash 1eecad21db Implement HlReadApicRegister() and HlWriteApicRegister() routines for basic APIC support 2023-11-20 15:26:03 +01:00
belliash a3c28cee73 Initial XTLDR APIC support, finds and maps base APIC address for kernel 2023-11-20 15:18:22 +01:00
belliash 3d0a48df26 Give qemu direct access to the terminal 2023-11-19 20:41:21 +01:00
belliash 575b842d05 Add APIC Registers address map (APIC_REGISTER enumeration list) 2023-11-19 00:57:27 +01:00
belliash 0c3268acd1 Export registers read/write related routines 2023-11-19 00:46:51 +01:00
belliash 42b7c3698c Add missing I/O register routines forward references 2023-11-19 00:41:21 +01:00
belliash 12f946c92d Fixes to I/O registers related routines 2023-11-19 00:39:52 +01:00