Commit graph

47 commits

Author SHA1 Message Date
TomAwezome
c179521dc3 Replace zealbooter.c magic number signature with #define vals. 2022-11-03 13:39:24 -04:00
TomAwezome
2c2dc1141d Begin integrating Limine framebuffer mode info list into ZealBooter to pass abstracted mode information to CKernel header. 2022-10-14 22:01:34 -04:00
TomAwezome
a2be44fa28 Begin reimplementing framebuffer mode list storage and VideoRep funtionality. 2022-10-14 19:41:46 -04:00
TomAwezome
637758a13b Refactor ZealBooter disk UUID code. 2022-10-12 20:50:31 -04:00
TomAwezome
dac6f9efe1 Add UEFI/BIOS boot detection in ZealBooter, pass to Zeal CKernel as new field. 2022-10-11 16:12:45 -04:00
TomAwezome
cc0b05a2a1 Remove BSD-2/GPL-2.0 licensed source code from Public Domain licensed repository.
Original sources for files idt.c, idt.h, and int_thunks.S:
https://github.com/limine-bootloader/limine/blob/trunk/common/sys/idt.c
https://github.com/limine-bootloader/limine/blob/trunk/common/sys/idt.h
https://github.com/limine-bootloader/limine/blob/trunk/common/sys/idt.s2.c
https://github.com/lyre-os/lyre/blob/trunk/kernel/sys/idt.c
https://github.com/lyre-os/lyre/blob/trunk/kernel/sys/idt.h
https://github.com/lyre-os/lyre/blob/trunk/kernel/sys/int_thunks.S
https://github.com/vlang/vinix/blob/main/kernel/asm/int_thunks_asm.S
2022-09-15 17:14:44 -04:00
TomAwezome
111e3475e3 Raise MEM_E820_ENTRIES_NUM to 256, remove memmap entry count max check in zealbooter at suggestion of mintsuki. 2022-09-12 04:26:10 -04:00
TomAwezome
8297c769e6 Fix zealbooter memmap kernel header buffer-overflow.
Previously the zealbooter memmap e820 assignment loop used the entry count value passed via limine, without checking if it was over MEM_E820_ENTRIES_NUM, the #define constant value limit of entries that are stored in the kernel header's e820 region. This commit bumps up the constant entry count to 64 from 48, and also adds a small check in zealbooter to ensure that the entry count value used in the memmap loop caps off at the constant value.
2022-09-12 00:41:09 -04:00
TomAwezome
ad20a7a710
fixup the fixup fixup 2022-09-11 16:37:52 -04:00
TomAwezome
0b916ae505
Fixup fixup 2022-09-11 01:47:00 -04:00
mintsuki
618a18e096 ZealBooter: Minor code fixups 2022-09-11 07:12:31 +02:00
mintsuki
674daa42a4 ZealBooter: Add minimal IDT and exception handling 2022-09-09 07:09:45 +02:00
TomAwezome
f0c751e962 Print CKernel sys_gdt_ptr values in zealbooter. 2022-09-08 19:12:56 -04:00
TomAwezome
a3cec6b618 Implement zealbooter details print to screen using limine terminal write. 2022-09-08 02:01:24 -04:00
mintsuki
56ae91e11f ZealBooter: Properly set kernel->mem_physical_space 2022-09-01 07:05:38 +02:00
TomAwezome
4b23988da8 Remove redundant CSysLimitBase code in zealbooter. 2022-08-31 18:09:32 -04:00
TomAwezome
54e4a7313c Fix irregular variable names in zealbooter. 2022-08-29 01:10:47 -04:00
TomAwezome
8fa30a396f Unhardcode BOOT_RAM_LIMIT, patch via kernel headers. 2022-08-29 00:24:45 -04:00
mintsuki
7a0c9a710c Fix KStart32-related issues and improvements to build script 2022-08-28 09:30:17 +02:00
TomAwezome
14515d7a19 Fix sys_framebuffer_bpp size and assignment in KStart16. 2022-08-28 02:10:37 -04:00
TomAwezome
2ba649e5a4 Remove now-unneeded VBE structs from ZealBooter. 2022-08-28 00:49:16 -04:00
TomAwezome
017025fae2 Correctly set sys_boot_src in zealbooter based on media type. 2022-08-27 16:44:01 -04:00
TomAwezome
41a033fe8a Implement prekernel disk GPT UUID pass to kernel, add to headers, check in AHCIBootDVDProbeAll. 2022-08-27 05:11:55 -04:00
TomAwezome
f74e3d6b20 Remove VBE from kernel headers. 2022-08-25 07:15:24 -04:00
TomAwezome
2bd8e2ab0b Remove SYS_FONT_PTR and related code. 2022-08-25 04:33:39 -04:00
mintsuki
6f942441e3 Misc improvements 2022-08-24 08:53:44 +02:00
TomAwezome
0bf82fb057 Implement limine zealbooter prekernel SMBIOS entry patching to kernel. 2022-08-23 21:04:27 -04:00
TomAwezome
7d31064b6a Abstract out VBE vars from most of OS, revise dev uefi temp vm build system.
Misc UEFI build scripts have been removed/revised/condensed into one script with multiple rebuild steps. The order of the steps is as follows: Auto-install into temp VM with custom AUTO-VM iso, merge kernel headers into VM, rebuild kernel, merge Kernel/ code, rebuild kernel, merge all src/ code, deploy limine and zealbooter, rebuild kernel (as well as test), then test UEFI and BIOS mode.
2022-08-23 04:48:04 -04:00
TomAwezome
fab8b79074 Remove unneeded commented code. 2022-08-23 02:41:23 -04:00
TomAwezome
644a73711e Merge branch 'limine2' into limine 2022-08-22 02:46:53 -04:00
mintsuki
e067776510 ZealBooter: memmove() -> memcpy() 2022-08-21 22:27:18 +02:00
mintsuki
375a487087 ZealBooter: De-hardcode kernel load address and boot stack 2022-08-21 22:21:01 +02:00
mintsuki
1510f65468 ZealBooter: Further cleanup and fix BIOS boot 2022-08-21 20:47:26 +02:00
mintsuki
ee265c8767 ZealBooter: Move sys_pci_buses assignment to zealbooter.c 2022-08-21 19:13:48 +02:00
mintsuki
d7f72e3aa9 ZealBooter: Misc cleanup, SMP working 2022-08-21 19:03:17 +02:00
mintsuki
fa4ded924f ZealBooter: Misc cleanup 2022-08-21 17:42:32 +02:00
TomAwezome
f2f7fa953f Merge branch 'limine2' into limine 2022-08-21 06:41:47 -04:00
mintsuki
bcb830e880 ZealBooter: Misc progress 2022-08-21 10:27:19 +02:00
TomAwezome
ddccc7d7ff Begin attempt to get limine framebuffer and combine it into kernel data members. TODO: update SYS_KERNEL DU members. 2022-08-20 11:46:30 -04:00
TomAwezome
a1ef3f7566 Fix merge broke zealbooter compile. 2022-08-20 10:32:39 -04:00
TomAwezome
0a3923b7b9 Merge branch limine2 into branch limine. 2022-08-20 10:27:08 -04:00
mintsuki
344de80dab ZealBooter: Misc progress 2022-08-20 16:13:06 +02:00
TomAwezome
94779557a3 Add some matching member variables to previously stubbed CKernel struct. 2022-08-20 09:37:16 -04:00
TomAwezome
3f83de8219 Testing getting and printing a ZXE struct member variable of loaded kernel module. 2022-08-20 09:06:55 -04:00
TomAwezome
e5c33074e2 Add ZXE class header struct to zealbooter. 2022-08-20 09:05:23 -04:00
mintsuki
325160e13b ZealBooter: Add minimal code to get kernel address 2022-08-20 02:21:36 +02:00
mintsuki
69f0f37b9b Initial work on ZealBooter 2022-08-20 01:54:34 +02:00