Commit Graph

3721 Commits

Author SHA1 Message Date
Mintsuki
a71d7111fe mm/pmm: Add pointer alignment check to pmm_free 2026-04-19 00:35:14 +02:00
Mintsuki
caad1ecfe4 sys/cpu: Fix misleading comment in TSC calibration 2026-04-19 00:35:14 +02:00
Mintsuki
d3456116ac lib/getchar: Deduplicate timer event recreation in ESC handler using restart label 2026-04-19 00:35:14 +02:00
Mintsuki
851352d7d1 lib/misc: Fix out-of-bounds reads in get_absolute_path backward scans 2026-04-19 00:35:14 +02:00
Mintsuki
0556f4bfb4 lib/config: Re-examine shifted character after whitespace/CR removal 2026-04-19 00:35:14 +02:00
Mintsuki
05e8144c9b lib/elf: Avoid undefined pointer arithmetic in relocation patching 2026-04-19 00:35:14 +02:00
Mintsuki
3042d4fa74 protos/limine: Fix request scan loop bound to not read past image_size_before_bss 2026-04-19 00:35:14 +02:00
Mintsuki
48cc492436 mm/pmm: Restart sanitise_entries outer loop after entry deletion 2026-04-19 00:35:14 +02:00
Mintsuki
1511a8dc95 lib/elsewhere: Skip past source range on overlap instead of advancing one page 2026-04-19 00:35:14 +02:00
Mintsuki
80c399f9b3 decompressor: Fix off-by-one truncating last character of error message 2026-04-19 00:33:37 +02:00
Mintsuki
4b057bcc88 lib/bli: fix various bugs in timeout and entry control 2026-04-19 00:30:53 +02:00
programmerlexi
959f763a9f lib/bli: implement entry control 2026-04-19 00:30:19 +02:00
programmerlexi
bc5d1e4b8f lib/bli: implement timeout control 2026-04-19 00:30:19 +02:00
Kamila Szewczyk
9c3ead9386 decompressor: gzip/tinf -> limlz
removes external dependency on tinf by replacing the compression algorithm with a simpler, faster, smaller and more auditable fixed-width LZ77 encoding purpose-tailored to x86 code mixed with data.

before: decompressor.bin 2,492 bytes (tinf dependency) with .text 0x875 and .rodata 0x13c bytes each.
after: decompressor.bin consists only of .text, 0xe6-byte decompressor; 90.8% reduction in decompressor volume.

the dependency on gzip during compile-time is replaced by host/limlzpack.c, a Lempel-Ziv encoder in 275 SLoC that uses a suffix array matchfinder (prefix-doubling in mathcal O(n log^2 n) and Storer-Szymanski backwards parse. the fixed-width formats packets as [F][LLLL][MMM], favouring a literal-skewed distribution with F switching between one-byte and two-byte offsets (favouring recent statistics).

integrity checking is done via crc32 with the polynomial 0xEDB88320, reflected.

the effective loss in compression ratio by using a tremendously simpler and less packed with edge cases algorithm causes a compression ratio hit well below 1KB, factoring in the stub sizes.

also adds new machinery for host cc detection per review.
2026-04-19 00:29:09 +02:00
Mintsuki
58083a725a sys/cpu: Fix locked_write asm constraint to declare memory operand as output 2026-04-19 00:28:37 +02:00
Mintsuki
104399fe43 lib/misc: Remove dead overflow check in ALIGN_UP macro 2026-04-19 00:27:41 +02:00
Mintsuki
b2cc8b74a6 lib/elf: Fix section header table size check falsely rejecting valid ELFs 2026-04-19 00:27:31 +02:00
Mintsuki
44b8493555 lib/gterm: Fix NULL dereference in gterm_init cached path 2026-04-19 00:27:01 +02:00
dependabot[bot]
4ecd2a9e80 build(deps): bump softprops/action-gh-release from 2.6.1 to 3.0.0
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.6.1 to 3.0.0.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](153bb8e044...b430933298)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-19 00:26:05 +02:00
Mintsuki
1b144eef2e menu: Fix NULL dereference when DEFAULT_ENTRY is out of range with TIMEOUT=0 2026-04-19 00:25:55 +02:00
Mintsuki
0e6b0e9aac lib/image: Fix incorrect free of stbi-allocated buffer corrupting memmap 2026-04-19 00:25:29 +02:00
Mintsuki
f3b031e37d menu: Make graphics: no an alias for serial: yes on EFI 2026-04-19 00:24:59 +02:00
Mintsuki
12d3dbf7de lib/term: Reset ConOut when falling back from graphical terminal 2026-04-19 00:24:04 +02:00
Mintsuki
25ca9eebaa drivers/vga_textmode: Defer line wrap to next putchar 2026-04-19 00:23:12 +02:00
Mintsuki
ef9b025f20 menu: Remove redundant terminal size check from editor 2026-04-19 00:22:14 +02:00
Mintsuki
a01a3c0f17 lib/panic: Re-enable autoflush before printing 2026-04-19 00:20:24 +02:00
Mintsuki
8ba6e3e7f4 ci: Remove QA/typos check 2026-04-19 00:20:24 +02:00
Mintsuki
6dc556ea77 gha: Fix MinGW path and add workflow_dispatch to binary-release 2026-04-09 13:55:08 +02:00
Mintsuki
d6d1e42aa2 docs: Update ChangeLog and README.md for 11.3.1 v11.3.1 2026-04-09 13:40:55 +02:00
Mintsuki
8b37f7ab9b gha: Fix release and binary-release workflows 2026-04-09 13:35:07 +02:00
Mintsuki
6c9f8068ab docs: Update ChangeLog and README.md for 11.3.0 2026-04-09 13:09:07 +02:00
Mintsuki
8632b11241 protos/limine: Make "Keep IOMMU" feature x86-64-only 2026-04-09 13:07:12 +02:00
Mintsuki
b5abaf9ac1 protos/limine: Implement TSC frequency feature 2026-04-09 13:07:12 +02:00
Mintsuki
4929ccdf52 sys/cpu: Improve TSC calibration accuracy on UEFI and BIOS 2026-04-09 13:07:12 +02:00
Mintsuki
9232247312 lib/fb: Do not clear framebuffer on mode set in quiet mode 2026-04-09 13:07:12 +02:00
Mintsuki
df4c3ecc1b lib/gterm: Do not clear framebuffer on mode set as Flanterm immediately repaints it 2026-04-09 13:07:12 +02:00
Mintsuki
c9baa5f049 drivers/gop: Do not force-start uninitialised GPUs when a framebuffer is already available 2026-04-09 13:07:12 +02:00
Mintsuki
217ac4d64b gha: Use latest MinGW binary release instead of 2026-04-08 2026-04-09 13:07:12 +02:00
Mintsuki
2594beb0d6 gha: Build limine.exe using i486 MinGW from osdev0/mingw-binary-builds 2026-04-09 13:07:12 +02:00
Mintsuki
3f866e1ce8 misc: Migration to GitHub 2026-04-06 19:04:22 +02:00
Mintsuki
05811987f4 uefi: Call Apple set_os protocol to keep iGPU alive on dual-GPU Macs 2026-04-06 19:04:22 +02:00
Mintsuki
e6dfe48a4b protos/multiboot: Allow menu recovery on overflow panics 2026-04-06 19:04:22 +02:00
Mintsuki
8e842edecf sys/cpu: Add PIT-based TSC calibration for BIOS 2026-04-06 19:04:22 +02:00
Mintsuki
e7b5bbbdff lib/term: Sync ConOut cursor position in UEFI fallback terminal init 2026-04-06 19:04:22 +02:00
Mintsuki
34b5380d0b protos/linux_risc: Fix use-after-free of module handle in verbose print v11.2.1 2026-04-04 15:34:07 +02:00
Mintsuki
18e3547432 protos/linux_risc: Use overflow-checked add for kernel allocation size 2026-04-04 15:34:07 +02:00
Mintsuki
bfe3544c13 lib/misc: Use overflow-checked multiply in ALIGN_UP macro 2026-04-04 15:34:07 +02:00
Mintsuki
40fb2269b7 docs: Update ChangeLog and README.md for 11.2.1 2026-04-04 15:06:04 +02:00
Mintsuki
a24f496c2e Revert "misc: Enforce hash verification when UEFI Secure Boot is active"
This reverts commit 9e2f3e7587.
2026-04-04 15:02:58 +02:00
Mintsuki
3f3a748d42 Revert "misc: Exempt EFI chainload and cosmetic resources from Secure Boot hash enforcement"
This reverts commit 4793ace8b2.
2026-04-04 15:02:58 +02:00