Commit Graph
100 Commits
Author SHA1 Message Date
belliash 7193e698f1 Store page map level 2024-04-07 17:49:24 +02:00
belliash 388ac1a8c2 Properly, recursively self map page tables on i686 architecture 2024-04-07 17:11:14 +02:00
belliash 7c9233c9a2 Copy memory descriptor to fix i686 compiler error 2024-04-07 10:51:14 +02:00
belliash 0af3a01acf Pass compatible pointer type to fix compiler warning 2024-04-07 10:50:21 +02:00
belliash e82c3cbf18 Fix function prototypes 2024-04-07 10:37:27 +02:00
belliash bfcf9bc61a Add PFN_NUMBER type definition 2024-04-07 10:33:53 +02:00
belliash cf8bac9fbe Initial memory manager initialization code 2024-04-07 10:27:30 +02:00
belliash 04e22c127e Initial memory manager initialization code 2024-04-07 10:26:12 +02:00
belliash 42a1373612 Do not pre-allocate memory 2024-04-06 11:28:02 +02:00
belliash 1305672875 Properly, recursively self map page tables; currently only for AMD64 and PML4 2024-04-05 00:26:41 +02:00
belliash d7b103f85d Add forward references for PTE related structures 2024-04-03 16:03:17 +02:00
belliash c6f3422c49 Update PTE related structures 2024-04-03 16:00:26 +02:00
belliash dcca4870cd Move cursor before changing console attributes 2024-03-28 14:06:52 +01:00
belliash 1cdc1d3e54 Truncate EFI memory descriptor to 4GB and never map EFI reserved memory like PCI BAR 2024-03-26 23:04:54 +01:00
belliash 306891c9eb Rename XTBL_MODULE_INFO definition to XTBL_MODULE_DATA, to not confuse with structure 2024-03-25 07:14:18 +01:00
belliash 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
belliash ce8c66f93a Always map first page 2024-03-24 22:52:18 +01:00
belliash b3be36e23d Map BIOS ROM and VRAM 2024-03-24 15:53:36 +01:00
belliash 74b2c80869 RtlCountLeadingZeroes64() should take 64bit value 2024-03-23 00:36:59 +01:00
belliash 9aff665d1a Export RtlClearSetBits(), RtlFindClearBits(), RtlFindSetBits() and RtlSetClearBits() routines 2024-03-22 22:49:12 +01:00
belliash 715f842445 Implement RtlClearSetBits(), RtlFindClearBits(), RtlFindSetBits() and RtlSetClearBits() routines 2024-03-22 18:53:30 +01:00
belliash 7895cb0d32 Fix RtlClearBits() and RtlSetBits() 2024-03-21 21:36:33 +01:00
belliash 56d50ea2e8 Implement EDID support for getting the preferred screen resolution 2024-03-21 15:40:09 +01:00
belliash eb75a27ac2 Use common handle and properly close GOP protocol on failures 2024-03-21 06:59:05 +01:00
belliash b6f915c0c5 Implement RtlClearBits() and RtlSetBits() routines 2024-03-19 19:53:49 +01:00
belliash 3cd55260e6 Expose BlEnterFirmwareSetup() routine via XTLDR protocol 2024-03-19 17:11:38 +01:00
belliash e263effe13 Allow to reboot into UEFI Firmware setup interface after pressing F10 in the boot menu 2024-03-19 17:04:14 +01:00
belliash 94e6ca7aec Implement BlEnterFirmwareSetup() routine 2024-03-19 16:50:04 +01:00
belliash 7b2a2565c5 Expose BlGetEfiVariable() and BlSetEfiVariable() routines via XTLDR protocol 2024-03-18 22:20:21 +01:00
belliash 6accf62552 Expose BlGetConfigBooleanValue() via XTLDR protocol 2024-03-18 22:16:20 +01:00
belliash 18c9cc1644 Remove unnecessary debug messages 2024-03-18 21:55:17 +01:00
belliash 12e8704ffb Implement BlGetConfigBooleanValue() routine 2024-03-18 20:02:43 +01:00
belliash bd02da30ef Update XTLDR configuration file 2024-03-18 19:43:41 +01:00
belliash 1d26b81923 Store last booted OS in NVRAM and make it default one on next boot 2024-03-18 19:41:55 +01:00
belliash ee23cd90cb Implement BlGetEfiVariable() and BlSetEfiVariable() routines 2024-03-18 17:04:58 +01:00
belliash 713f826387 XTOS boot protocol should use builtin mapping function 2024-03-17 23:10:50 +01:00
belliash db0e1d40aa Allow boot protocols to supply own routine for converting EFI memory type into OS-specific memory type 2024-03-17 23:06:37 +01:00
belliash 41ebabcb09 Provide only necessary framebuffer information to the kernel 2024-03-15 16:46:53 +01:00
belliash 945b323606 Initialize framebuffer earlier and reset video screen mode to circumvent buggy firmwares 2024-03-15 15:46:45 +01:00
belliash 848731c9e6 Introduce ability to change screen resolution 2024-03-15 15:12:12 +01:00
belliash 662b49d96e Remove unneeded infinite loop 2024-03-13 16:34:47 +01:00
belliash e6736087ba Corrections in printing debug messages 2024-03-13 15:55:03 +01:00
belliash 26d5118cea Add forward references to bit map related routines 2024-03-12 22:02:24 +01:00
belliash 067a8bbade Export bit map related routines 2024-03-12 19:31:32 +01:00
belliash c3831f82e7 Initial bit maps support 2024-03-12 19:15:02 +01:00
belliash 3a86ab1424 Remove duplicated code 2024-03-10 22:51:34 +01:00
belliash bb44caee31 Implement HlPutCharacter() routine 2024-03-10 17:02:30 +01:00
belliash 4bff86c570 Add SSF 2.0 font header structure 2024-03-10 13:03:45 +01:00
belliash d8ebd9f202 Add font to framebuffer data 2024-03-10 10:04:51 +01:00
belliash cb4292dccf Allow to use custom framebuffer fonts 2024-03-10 10:02:30 +01:00
belliash a4d9e6dd8e Optimize HlClearScreen() routine 2024-03-09 15:50:05 +01:00
belliash a4c22ab5e8 Improvements to FrameBuffer support 2024-03-09 15:07:33 +01:00
belliash 475561b038 Add XTOS default framebuffer font (VGA Unicode by Dmitry Yu. Bolkhovityanov) 2024-03-08 20:20:21 +01:00
belliash 5814775c43 Add EFI legacy BIOS protocol related structures 2024-03-07 21:55:58 +01:00
belliash 7c210e8818 Improvements and fixes in framebuffer module 2024-03-07 16:19:05 +01:00
belliash 70a52adb8b Don't even try to load a dependency modules with invalid name set 2024-03-02 22:59:20 +01:00
belliash baaa729076 Correct typo in a comment 2024-03-02 22:27:32 +01:00
belliash bd6516cdf9 Reallocate memory when updating existing config entry via BlSetConfigValue() 2024-03-02 17:15:37 +01:00
belliash 01983ef677 Small fixes to configuration parser 2024-03-02 16:54:28 +01:00
belliash d61fd4f9c7 Fix grim bug in PE/COFF image structures causing invalid data read from optional header 2024-03-02 00:56:38 +01:00
belliash a57ae020fa Implement PeGetFileSize(), PeGetImageSize() and PeUnloadImage() routines 2024-03-01 23:12:12 +01:00
belliash 17c50ea912 Redesign a way of storing module information; this allows to store more data in a single section, like license or a list of authors, as well as solves the problem with different module name lengths 2024-02-28 23:28:33 +01:00
belliash 4b34f7db4b Update preprocessor macros 2024-02-28 23:11:45 +01:00
belliash 632bb30b64 Implement BlGetRandomValue() and BlInitializeEntropy() routines for future KASLR support 2024-02-26 23:06:44 +01:00
belliash f9714a79e4 Add support for writing floating point values 2024-02-22 23:39:11 +01:00
belliash 0c7cf6f6d3 Implement RtlInfiniteDouble() and RtlNanDouble() routines 2024-02-21 19:55:16 +01:00
belliash 562b89e4d4 No parameters are expected, explicitly 2024-02-20 16:59:57 +01:00
belliash 4b2d8ded72 No parameters are expected, explicitly 2024-02-20 16:55:12 +01:00
belliash c70d2e2afa Routines with no prototype cannot use XTAPI calling convention 2024-02-20 16:37:57 +01:00
belliash 83a976dd3a Implement RtlCopyString() and RtlCopyWideString() routines 2024-02-20 16:25:16 +01:00
belliash 015faa53a0 XTAPI calling convention is not supported on variadic routines 2024-02-20 16:21:28 +01:00
belliash e409675f98 Always use RtlSetMemory() to fill a buffer with a specified pattern 2024-02-20 16:16:32 +01:00
belliash 477e56e294 Move RtlFillMemory() routine to ntosdrv driver 2024-02-20 16:08:10 +01:00
belliash 246968045a Use flags instead of dozen variables 2024-02-18 13:37:17 +01:00
belliash 2dd4048416 Switch GUID specifier to %v and %V, thus allowing to write string with both lower and uppercase 2024-02-17 22:52:49 +01:00
belliash 430557e08f Fix printing hard drive GUID 2024-02-16 23:05:24 +01:00
belliash a70df7cbf8 Properly print status codes 2024-02-16 23:01:29 +01:00
belliash 70c66a5d70 Code formatting 2024-02-16 22:44:19 +01:00
belliash 789e9d64f4 Properly print PA & VA addresses 2024-02-16 22:40:36 +01:00
belliash df627aeb42 Turn %p format compliant with POSIX, add %P XTOS extension to print pointers uppercase 2024-02-16 22:36:48 +01:00
belliash 98acc6f3d4 Use uppercase when printing status codes 2024-02-16 22:09:38 +01:00
belliash 6d66629124 Cleanup after switching to new way of printing formatted strings 2024-02-16 22:04:17 +01:00
belliash c99bd73dfd Use uppercase when printing status codes 2024-02-16 22:03:00 +01:00
belliash 109fd094ea Fix NULL pointer 2024-02-16 19:05:53 +01:00
belliash 00cca9a1c1 Add %U XTOS extension for UUID/GUID string argument support 2024-02-16 19:02:44 +01:00
belliash edd18b1dea Add %Z MSVC extension for ANSI/Unicode string argument support 2024-02-16 18:14:16 +01:00
belliash a1ec5e410d Refactor RtlpWriteWideStringValue() and RtlpWriteWideStringStringValue() routines 2024-02-16 17:03:10 +01:00
belliash 8ddd6137da XTLDR console/debug print refactor 2024-02-16 15:09:18 +01:00
belliash 5de4d7a7f5 Use new string formatting mechanism in the boot loader 2024-02-15 23:32:23 +01:00
belliash 8dd0e70dd9 Implement printf-alike wide string formatting mechanism, currently without floating point numbers support 2024-02-15 23:01:13 +01:00
belliash 8a62a2b367 Switch calling convention to stdcall 2024-02-14 14:53:32 +01:00
belliash 7e23484252 Implement RtlReverseWideString(), RtlTrimLeftWideString(), RtlTrimRightWideString() and RtlTrimWideString() routines 2024-02-14 14:46:34 +01:00
belliash d964e4b408 Implement RtlConcatenateString(), RtlReverseString() and RtlTokenizeString() routines 2024-02-14 14:38:28 +01:00
belliash 55fb9e2eb1 Implement RtlGetBaseExponent() routine for getting base(10) exponent of a given floating point value 2024-02-14 00:02:04 +01:00
belliash c096c5d6df Add missing BITS_PER_BYTE definition 2024-02-13 16:58:30 +01:00
belliash cca2e65376 Rework 64-bit division routines to support i686 architecture 2024-02-13 16:56:29 +01:00
belliash a852993842 Add missing forward references to math related routines 2024-02-13 16:25:41 +01:00
belliash 99bdd917d9 Add basic kernel math support 2024-02-13 14:05:37 +01:00
belliash 07d30e06e6 Add VA_LIST pointer type 2024-02-11 18:40:52 +01:00
belliash 0c6a602253 Add 64bit double type 2024-02-11 18:39:44 +01:00