Commit Graph

514 Commits

Author SHA1 Message Date
mintsuki a7721872dd term: Expose support for out-of-band output control 2023-01-20 20:14:38 +01:00
mintsuki 28dd8a1062 file: Fix several bugs to do with handling of path field 2023-01-20 17:27:41 +01:00
Qwinci 3dd0a6fb41
limine: Add UEFI PXE support
based on @qookei's original patch with small changes.
2023-01-17 18:47:36 +02:00
mintsuki ac1c5d1b95 efi/chainload: Support passing of command lines. Addresses #244 2023-01-14 12:49:22 +01:00
mintsuki 2ee939725e term: Compatibility with new terminal code 2022-12-30 07:58:46 +01:00
mintsuki 1aba6b3aeb lib/gterm: Remove now-useless full_refresh() call 2022-12-16 03:53:42 +01:00
mintsuki b3c08f8122 term: Compatibility with latest terminal changes 2022-12-14 16:35:03 +01:00
mintsuki 25c6c18c8b Revert "fs: Drop ext* support"
This reverts commit ba5aca6fd8.
2022-11-30 01:48:00 +01:00
mintsuki 0748cf5bf2 Revert "fs: Fix unused variable warning introduced in ba5aca6f"
This reverts commit a48036141f.
2022-11-30 01:48:00 +01:00
mintsuki a48036141f fs: Fix unused variable warning introduced in ba5aca6f 2022-11-29 17:05:01 +01:00
mintsuki ba5aca6fd8 fs: Drop ext* support 2022-11-29 16:55:43 +01:00
Kacper Słomiński 04d22b1e52 limine: Fix caching mode detection for multiple framebuffers on AArch64 2022-11-23 01:03:06 +01:00
mintsuki ffaaabf14a readline: Fix issue arising from terminal's wraparound handling fix 2022-11-19 08:04:17 +01:00
mintsuki c2854bde82 gop: Fix small issue causing IA-32 UEFI port not to build 2022-11-19 06:35:41 +01:00
mintsuki f9399fd5a3 disk: Fix issue where _p struct was not zeroed out in create_disk_index() 2022-11-19 06:35:41 +01:00
mint 15127263ca
Merge pull request #236 from beakeyz/memleakfix_disk_create_index
Fixed little memory leak in the UEFI build
2022-11-19 00:37:55 +01:00
mintsuki d39baeaa80 video: Initial support for multiple framebuffers 2022-11-18 23:59:31 +01:00
beakeyz 28187433f9 Fixed little memory leak in the UEFI build that would make the bootloader crash on systems with larger disks 2022-11-18 22:28:28 +00:00
mintsuki bf4c0f7d7a gop: Remove ConOut logic 2022-11-15 11:25:51 +01:00
mint 99f8c7b187
Merge pull request #234 from raccog/trunk
readline: Fix command line scrolling and cursor wrap-around
2022-11-14 07:45:27 +01:00
mintsuki e924aa5f26 gop: Use ConOut to obtain GOP whenever possible 2022-11-14 07:35:06 +01:00
mintsuki 60c115658c Revert "gop: Allow user to select which GOP to use in config. Addresses #233"
This reverts commit d82dc64b93.
2022-11-14 07:35:06 +01:00
mintsuki 20572082c1 Revert "gop: Fix implicit declaration warning introduced in d82dc64b"
This reverts commit c477414c5c.
2022-11-14 07:35:06 +01:00
Ryan Cohen 07d8dd2c68
readline: Fix command line scrolling and cursor wrap-around
Fixes `cursor_fwd` to wrap the cursor to the first column when it passes
the bottom right corner of the screen.

Fixes `readline` to update the command line's row position when the
cursor wrap-around causes the screen to scroll up.
2022-11-13 13:49:00 -05:00
mintsuki c477414c5c gop: Fix implicit declaration warning introduced in d82dc64b 2022-11-12 00:34:20 +01:00
mintsuki d82dc64b93 gop: Allow user to select which GOP to use in config. Addresses #233 2022-11-11 23:40:56 +01:00
mintsuki 1258f01bc2 Revert "smp/x86: Free up trampoline memory after use"
This reverts commit ae771dd8a1.
2022-11-02 15:28:07 +01:00
mintsuki 7e403e0059 multiboot2: Support load_addr == -1 2022-10-30 11:19:02 +01:00
mintsuki ae771dd8a1 smp/x86: Free up trampoline memory after use 2022-10-29 16:17:57 +02:00
mintsuki 49f4ccd312 pmm: Work around potential memmap data race in EFI init_memmap() 2022-10-17 06:28:53 +02:00
mintsuki 09faf82bc4 pmm: Fix AllocatePages() call to take pages count; remove useless alignment check 2022-10-17 04:41:11 +02:00
mintsuki d8193abc98 pmm: Avoid throwing away big memory ranges that fail to AllocatePages() indiscriminately 2022-10-17 04:34:27 +02:00
mintsuki 7e1d4a9870 linux: Revert 793d0293 2022-10-14 14:28:17 +02:00
mintsuki 3c541576f3 disk: Fix wrong parameter passed to ReadBlocks() 2022-10-14 06:59:35 +02:00
mintsuki c14bb6059f gop: Do not zero default_res out erroneously 2022-10-14 05:34:54 +02:00
mintsuki e0aec79cb6 limine: Add support for framebuffer modes listing 2022-10-14 05:19:13 +02:00
mintsuki 01ee09373c file: Reimplement a1bcf3c0 without use-after-free bug 2022-10-14 05:15:17 +02:00
mintsuki 42b1db1063 misc: Update references to hardcoded directories 2022-10-14 00:02:55 +02:00
mintsuki b30d2dc978 disk: UEFI: Add BLOCK_IO fallback for volume_from_efi_handle() 2022-10-14 00:02:55 +02:00
mintsuki da5896b764 disk: On UEFI, improve optical vs non-optical detection 2022-10-14 00:02:55 +02:00
mintsuki 6022f5bf23 elf: Add overlapping PHDR detection 2022-10-10 04:35:28 +02:00
mintsuki 96fe1aa2e0 disk: Only use BLOCK_IO as fallback to DISK_IO when determining optical 2022-10-09 10:58:07 +02:00
mintsuki d265cad7b6 disk: On BIOS, change how optical is determined 2022-10-09 10:58:07 +02:00
mintsuki ce33e9dff3 limine: Fix bug which triggered on no-NX where wrong register was used for rd/wrmsr 2022-10-09 07:31:26 +02:00
mintsuki d10d2baded menu: Add arrows to indicate overflow for many menu entries 2022-10-07 08:49:13 +02:00
mintsuki af80341c8c misc: Dynamically allocate EFI memmap copy 2022-10-07 07:49:47 +02:00
mintsuki 53d20619ec menu: Properly handly high number of entries 2022-10-07 07:35:08 +02:00
mintsuki 2557aa8f46 misc: Increase EFI_COPY_MAX_ENTRIES to 2048 2022-10-07 06:23:49 +02:00
mintsuki 4ba1b2fd9d limine/smp: Fix stack offset accidentally added twice 2022-10-06 18:39:55 +02:00
mintsuki 3d95c8960c misc: Add limine subdir to stage3 and config search paths. Closes #225 2022-10-06 06:29:11 +02:00
mint 23f2c7dbac
Merge pull request #228 from czapek1337/some-fixes
Some minor fixes
2022-10-06 06:05:37 +02:00
czapek1337 02c26a8738
efi: Fallback to volume scan instead of panicking 2022-10-06 05:58:39 +02:00
mintsuki b1319408dd menu: Add missing valid keys 2022-10-06 05:41:21 +02:00
mintsuki 7f09259c57 term: Misc improvements for SERIAL=yes on EFI 2022-10-06 05:41:21 +02:00
mintsuki 610a98d8b2 term: Unbreak textmode + serial combo 2022-10-06 05:41:21 +02:00
mintsuki 6e1c792e41 gterm: Prevent memory leak gterm_init() failure 2022-10-06 05:41:21 +02:00
mintsuki fb994e61c6 limine: Fix NULL term dereference bug if gterm_init fails 2022-10-06 05:41:21 +02:00
czapek1337 44a3f3f2f7
disk: Use BLOCK_IO instead of DISK_IO 2022-10-06 05:38:06 +02:00
czapek1337 68e936e7f4
readline: Fallback to SystemTable->ConIn 2022-10-06 05:37:22 +02:00
mintsuki ac34ec411f term: Better ensure term is not accessed when NULL 2022-10-05 15:01:01 +02:00
mintsuki ec9d384bf2 limine: Do not panic if failing to set up terminal or framebuffer 2022-10-05 14:32:54 +02:00
mintsuki cc8ff90865 menu: Use fallback terminal instead of panicking on gterm_init() fail 2022-10-05 14:32:54 +02:00
mintsuki 6cbb9c4577 limine: Fix bug where NULL term was accessed. Fixes #227 2022-10-05 14:32:54 +02:00
mintsuki ffa6d4e0c7 limine: Reimplement proper callback functionality 2022-10-04 21:53:19 +02:00
mintsuki d187c576d8 term: Make term_notready() static 2022-10-04 21:00:39 +02:00
mintsuki ff8c5f318c term: Gate BIOS specific code behind ifdefs 2022-10-04 20:47:19 +02:00
mintsuki f977548e84 term: Reimplement context control 2022-10-04 20:39:50 +02:00
mintsuki 48a7c12e5b term: Misc fixes and improvements 2022-10-04 19:10:38 +02:00
mintsuki d3c8a66918 term: Misc fixes and improvements 2022-10-04 08:21:59 +02:00
mintsuki b34954bb43 term: Misc fixes and improvements 2022-10-04 07:24:42 +02:00
mintsuki 45312e66ae term: Add builtin font 2022-10-04 06:04:31 +02:00
mintsuki f6ba5991b5 term: Misc minor bug fixes 2022-10-04 05:39:48 +02:00
mintsuki 0f1d86e7e4 term: Tidy up VGA textmode wrapper code 2022-10-04 02:34:11 +02:00
mintsuki 8849d08eeb term: Tidy up gterm wrapper code 2022-10-04 01:37:19 +02:00
mintsuki 4d855fc17e term: Move to use external, portable terminal 2022-10-04 00:58:00 +02:00
mintsuki e466501f92 pmm: Misc bug fixes in pmm 2022-09-28 01:16:39 +02:00
mintsuki 96c184fdf6 term: Misc bug fixes in fallback backends 2022-09-28 01:16:39 +02:00
mintsuki 0d7b1e1148 term: Do not reset mode on UEFI fallback init 2022-09-27 06:36:04 +02:00
mintsuki 00e9f2ce46 multiboot: Fix warnings when building BIOS port 2022-09-27 05:55:00 +02:00
mintsuki a2ba71eb1d multiboot: Allow for headless boots 2022-09-27 05:46:39 +02:00
mintsuki c849bfc10b pmm: Obtain raw memmap from untouched_memmap rather than EFI memmap. Addresses #222 and https://forum.puppylinux.com/viewtopic.php?t=6881 2022-09-27 04:59:29 +02:00
mintsuki bd7c3602bb pmm: Keep first page on sanitiser call in get_raw_memmap() 2022-09-26 02:42:32 +02:00
mintsuki 97c928a354 pmm: Backport some other stuff reverted in 4a4409e1 2022-09-25 23:10:58 +02:00
mintsuki 64c897a82d pmm: Backport fa6f6077 and 74a3a1c6 2022-09-25 20:37:17 +02:00
mintsuki 714d8ac2ce Revert "file: Convert file to a memfile as soon as possible"
This reverts commit a1bcf3c09b.
2022-09-24 04:10:45 +02:00
mintsuki 4a4409e1b2 pmm: Undo most of what was done between 85603ec8 and 74a3a1c6 2022-09-24 03:57:55 +02:00
mintsuki 0cb98610f0 panic: Fix build on non-BIOS targets 2022-09-23 20:59:02 +02:00
mintsuki e062b4ed7d term: Move more of it to stage 3 2022-09-23 20:53:14 +02:00
mintsuki e67a75fe09 Revert "linux/efi: Perform efi_memmap_size=0 workaround for 32 on 64 as well"
This reverts commit b9f41799b4.
2022-09-23 01:00:44 +02:00
mintsuki b9f41799b4 linux/efi: Perform efi_memmap_size=0 workaround for 32 on 64 as well 2022-09-22 18:10:08 +02:00
mintsuki b229d0cdf3 config: On UEFI, scan the volume containing the EFI executable first. Addresses #219 2022-09-22 15:12:11 +02:00
mintsuki d5ff44676b menu: Fix regression when pressing a key during quiet timeout wait. Addresses in part #220 2022-09-20 15:25:24 +02:00
mintsuki b1bfa2d2d8 build: Fix issue introduced in 87e09dba 2022-09-20 10:02:33 +02:00
mintsuki a6189abdc1 misc: Fix bugs introduced in 3181293a 2022-09-20 09:54:35 +02:00
mintsuki e89d834457 disk/efi: Improve firmware error handling 2022-09-19 20:48:42 +02:00
mintsuki 87e09dba61 build: Plug back limine_stage2only.elf into the BIOS build system 2022-09-19 02:31:23 +02:00
mintsuki 59bbd1f657 menu: Avoid reinitialising fallback terminal on first runs 2022-09-18 11:52:31 +02:00
mintsuki 26f6ac3bb2 smp: Fix indentation 2022-09-18 11:30:21 +02:00
mintsuki dc5ed66e67 efi: Limit amount of tries to get boot volume from handle 2022-09-18 10:39:39 +02:00
mintsuki f86a421209 misc: Fix up some no_unwind globals 2022-09-17 15:09:08 +02:00
mintsuki 0ae552a25c misc: Misc stage 2 related improvements 2022-09-17 13:53:57 +02:00
mintsuki 7f14f2f0d0 misc: Improve printing effectively on panics and errors 2022-09-17 10:40:14 +02:00
mintsuki e76c8d47a9 multiboot2: Fix broken EFI memmap length calculation 2022-09-15 22:31:50 +02:00
mintsuki 50b524838a efi: Ensure panics are (hopefully) always visible 2022-09-15 13:31:42 +02:00
mintsuki 886523359c efi/disk: Use blake2b to calculate unique sector hash 2022-09-15 12:53:47 +02:00
mintsuki 2b71eaedb6 smp: Fix aarch64 issue introduced in 0f04f686 2022-09-14 15:39:52 +02:00
mintsuki 0f04f6860a smp: Remove hacks needed for stivale 2022-09-14 14:54:55 +02:00
mintsuki 7e6aad3113 build: Fix stage2 map 2022-09-14 02:20:12 +02:00
mintsuki ae4605936a misc: Minor cleanup after #216 2022-09-14 02:20:12 +02:00
mint c1e98f26c9
Merge pull request #216 from czapek1337/blake2b
Implement blake2b hash function and checksum validation
2022-09-13 09:30:45 +02:00
czapek1337 9680a1ad51
uri: Add checksum validation 2022-09-13 01:14:55 +02:00
czapek1337 71eb143611
print: Specifier for printing URIs 2022-09-12 14:10:36 +02:00
czapek1337 a1bcf3c09b
file: Convert file to a memfile as soon as possible 2022-09-12 14:10:36 +02:00
czapek1337 8906518cd2
crypt: Implement blake2b hash function 2022-09-12 14:10:36 +02:00
mint f8d714317b
Merge pull request #217 from Andy-Python-Programmer/trunk
DTB: ensure the `dtb_ptr` is an HHDM address
2022-09-12 09:27:18 +02:00
Andy-Python-Programmer 528be7230f
DTB: ensure the `dtb_ptr` is an HHDM address
* Ensure that the `dtb_ptr` is an HHDM address
* If DTB is not found, do not generate the response

Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2022-09-12 17:25:35 +10:00
mintsuki 82eb809111 elf: Fix issue where KASLR was applied to non reloc executables 2022-09-11 23:07:13 +02:00
mintsuki 3452e492bb elf: General refactor 2022-09-11 10:05:45 +02:00
mintsuki 5566278736 textmode: Load notready() *before* setting term_{cols,rows} 2022-09-05 03:14:16 +02:00
mintsuki 86ebf0b453 term: Initial support for 256-color palette 2022-09-05 00:49:33 +02:00
mintsuki 67498a6967 term: Initial support for RGB 2022-09-04 06:39:13 +02:00
mintsuki b2a390c4d5 misc: Update wallpaper 2022-09-04 03:57:32 +02:00
mintsuki 07c446f293 build: Updates for new limine-efi 2022-09-02 11:01:13 +02:00
mintsuki 5e06a79fdc limine: Do not set NX bit in page tables if NX not available 2022-09-02 03:41:25 +02:00
mintsuki d3385da3e3 limine: Make NX feature not mandatory 2022-09-02 03:31:22 +02:00
mintsuki c44f514738 misc: Rename UEFI and BIOS define macros 2022-09-02 02:29:12 +02:00
mintsuki 27711e3c27 fs: Add case insensitive fopen() for config and system files 2022-09-02 01:12:13 +02:00
mintsuki 4702e912be gensyms: Do not escape # in substitution string 2022-09-01 12:20:47 +02:00
mintsuki fb372e6db7 pmm: Make code to reserve page 0 uniform between BIOS and UEFI 2022-09-01 04:58:18 +02:00
mintsuki 9b3570f043 bios/disk: Fix always-true comparison warning 2022-09-01 04:42:49 +02:00
mintsuki 1b630659d9 bios/disk: Add manual sector size detection code 2022-09-01 04:22:30 +02:00
mintsuki c34db50cfd build: Small formatting fix 2022-08-31 00:40:59 +02:00
mintsuki 21fa4a9616 build: Update for new cross-detect 2022-08-29 21:52:59 +02:00
mintsuki 44df23c81a build: Update linker and compiler flags 2022-08-28 23:24:47 +02:00
mintsuki c528068ac7 misc: Fix improper panic() calls 2022-08-28 20:16:27 +02:00
mintsuki 6631b595f2 build: Pretty up find calls 2022-08-27 05:09:42 +02:00
mintsuki 07080dcbc2 misc: blib.h -> misc.h 2022-08-26 23:44:47 +02:00
mintsuki 65671d73c7 misc: Update several macros 2022-08-26 23:30:00 +02:00
mintsuki 16c5e98120 misc: Update ALIGN macros 2022-08-26 21:34:40 +02:00
mintsuki a91abf2c2a build: Handle -no-pie bug with cross-detect 2022-08-26 10:23:35 +02:00
mintsuki fde0447802 fs: Drop NTFS support 2022-08-26 00:20:27 +02:00
mintsuki 5f7cb5c83f build: Properly set target arch on objcopy to ELF 2022-08-25 22:07:50 +02:00
mintsuki 94eb0e2ae2 entry/uefi: Only perform 4GiB check if on x86_64 2022-08-25 21:53:48 +02:00
mintsuki ed0c32f20a entry/uefi: Abort if loaded above 4GiB. Fix #206 2022-08-25 21:50:37 +02:00
mintsuki a89b843673 Revert "bios: Get rid of self-modifying interrupt call code"
This reverts commit 5e0f85727a.
2022-08-25 20:13:42 +02:00
Kacper Słomiński 489450d602 common: fix alignment of variable in AArch64 menu thunk
Fixes a problem that sometimes occured due to a specific relocation
being used for the misaligned variable.
2022-08-24 21:15:37 +02:00
mintsuki 04a6389fd8 build: Improvements and updates for new limine-efi 2022-08-23 01:41:18 +02:00
mintsuki 2460b33f9c build: Misc build system improvements 2022-08-23 00:21:09 +02:00
mintsuki a17edef7bc ext: Fix next_cwd_len calculation 2022-08-21 07:15:48 +02:00
mintsuki 45f65b6b40 ext: Fix abs-path related bug with symlink handling 2022-08-21 01:10:58 +02:00