Commit Graph

779 Commits

Author SHA1 Message Date
mintsuki
a0127f9f40 pmm: Add MEMMAP_MAX macro and use it instead of hardcoding 256 2023-10-24 18:38:18 +02:00
mintsuki
e49865a467 lib/time: EFI: Return time of 0 if GetTime() unsupported 2023-10-24 18:38:18 +02:00
48cf
2bba72634f lib/gterm: Try to initialize all 32-bpp framebuffers 2023-10-24 18:38:18 +02:00
48cf
45b39285f1 pmm: Ignore allow_high_allocs on non x86-64 architectures 2023-10-24 18:38:18 +02:00
mintsuki
c1860c8d80 limine/ioapic: Change spec to avoid masking IOAPIC RTEs unless Fixed or Lowest Priority 2023-10-24 01:21:24 +02:00
mintsuki
c1f5b21177 misc: Remove unnecessary ifdefs added in previous commits 2023-10-06 12:25:44 -05:00
mintsuki
b474b6bad0 misc: Only allocate memory and modules above 4GiB on 64-bit platforms 2023-10-06 12:25:44 -05:00
mintsuki
5323bce117 pmm: Allow allocations above 4GiB and use them in freadall() 2023-10-06 12:25:44 -05:00
mintsuki
f81b9d2dc3 build: Fix makefile target dependencies bug introduced in a0c2f95 2023-09-28 17:49:31 -05:00
mintsuki
a0c2f95a1d build: Fix bug introduced in 7885f260 due to a misunderstanding of an objcopy flag 2023-09-28 16:03:13 -05:00
mintsuki
7117b85c86 build: Fix indentation issue in common/GNUmakefile 2023-09-28 06:56:28 -05:00
mintsuki
3a81c3e13d build: ldscripts: .reloc -> .dummy_reloc 2023-09-28 06:56:28 -05:00
mintsuki
a0997a598b build: Fix race conditions introduced in 22d45a5428 2023-09-28 06:56:28 -05:00
mintsuki
212dbd32c1 misc: Add .note.GNU-stack where it was still missing 2023-09-28 06:56:28 -05:00
mintsuki
a55f68b3bd smp: riscv64: Replace .insn directive with .4byte 2023-09-28 06:56:28 -05:00
mintsuki
a83dafe6f4 misc: Add section .note.GNU-stack to assembly files 2023-09-28 06:56:28 -05:00
mintsuki
afdc556301 time: Change signature of get_jdn() to use int types 2023-09-28 06:56:28 -05:00
mintsuki
81c39fc080 elf: Panic if there are PHDRs with different perms sharing same page 2023-09-24 01:56:50 -05:00
mintsuki
87a88bf565 smp: Remove dead 32-bit trampoline code 2023-09-23 17:37:38 -05:00
mintsuki
f1236373fe menu: Fix padding issue introduced in e1d25f8 2023-09-22 16:39:51 -05:00
mintsuki
042a6e9554 misc: Backports from trunk 2023-09-16 15:12:14 -05:00
mintsuki
c5c43cb0fd misc: aarch64: Remove unused enter_in_current_el() function 2023-09-16 14:28:33 -05:00
mintsuki
5f7bcc0b1d riscv: Fix cherry-picking issue introduced in e3d65aa628 2023-09-16 11:35:43 -05:00
mintsuki
45958f7162 misc: Consistently call x86-64 such, instead of x86_64 2023-09-16 11:31:35 -05:00
xvanc
f4bfe1289a riscv: skip rv{32,64} prefix when parsing extensions from isa strings 2023-09-16 11:28:15 -05:00
xvanc
cdac49ebfb acpi: remove duplicate definition in sys/lapic.c 2023-09-16 11:28:15 -05:00
xvanc
90b82dc43f riscv/vmm: use Svpbmt extension when available 2023-09-16 11:28:15 -05:00
xvanc
e3d65aa628 riscv: refactor smp init 2023-09-16 11:28:15 -05:00
xvanc
f33732a2e5 riscv: implement feature dectection 2023-09-16 11:21:17 -05:00
xvanc
09c430f286 lib/libc: add misc utilities 2023-09-16 11:21:17 -05:00
xvanc
2200161e7d acpi: move acpi structure defs to lib/acpi.h 2023-09-16 11:21:17 -05:00
mintsuki
0f7ee05635 misc/bios: Update and improve linker script and related files 2023-09-11 17:16:19 -05:00
mintsuki
b54c3fc9cc protos/chainload: Fix bug that could result in bogus oom errors. Fixes #302 2023-09-11 17:16:19 -05:00
Kacper Słomiński
916aa370b2 protos: chainload: Allocate memory for the null terminator in cmdline 2023-09-11 17:16:19 -05:00
mintsuki
0ebf0245df misc: Misc EFI linker script improvements and drop .sbat 2023-09-11 17:16:19 -05:00
mintsuki
b5cffbb6e8 misc: Improve UEFI linker scripts 2023-09-09 15:57:38 -05:00
mintsuki
e6a67c80a6 x86/gdt: Mark accessed flag in descriptors 2023-09-09 10:08:44 -05:00
mintsuki
e207c03f69 build: Drop -mabi=sysv for x86 for clang 16 2023-08-29 22:34:27 -05:00
mintsuki
57e4ae6e25 config: Disable editor by default if config b2sum present. Fixes #296 2023-08-29 22:34:20 -05:00
mintsuki
a30cad3556 menu: Change menu arrow to use unicode big arrow 2023-08-29 22:34:15 -05:00
mintsuki
ac0d9465f5 gterm: Update font's big left and right arrows 2023-08-29 22:34:11 -05:00
mintsuki
4abedffb43 disk: BIOS: Skip drive if sector size is 0. Fixes #294 2023-08-19 08:20:45 -05:00
Kacper Słomiński
50dab6c2f1 smp: aarch64: Don't needlessly invalidate the data cache
Also get rid of the function to do clean + invalidate as not to be
tempted by it.
2023-08-18 13:38:14 -05:00
Kacper Słomiński
ba5d63b82a elf: aarch64: Don't needlessly invalidate the data cache
Cleaning the data cache to PoC without invalidating it is enough when
invalidating the instruction cache to PoU.
2023-08-18 13:37:55 -05:00
mintsuki
573d0095bf elf: elf64_load_section(): Return false early if sh_num == 0 2023-08-18 13:37:39 -05:00
mintsuki
27a32e416c disk: Add additional volume_index_i overflow guards 2023-08-18 13:37:16 -05:00
mintsuki
9a074530a9 exceptions: Change naming of exceptions in panic message 2023-08-18 13:36:58 -05:00
mintsuki
d66df6b38a limine: Do not return SMBIOS response if not present 2023-08-10 19:26:54 -05:00
mekb
820d4751d3 menu: Add option to hide help text 2023-08-08 14:09:11 -05:00
xvanc
030242d69a vmm/riscv: fix bug in vmm_max_paging_mode() 2023-08-03 20:12:51 -05:00
mintsuki
50b8ab2c26 rv64: Misc relaxation related fixes 2023-08-01 05:32:05 -05:00
mintsuki
2f1dac0600 gterm: Change resolutions at which autoscaling is triggered 2023-07-29 11:55:37 -05:00
mintsuki
0ecb2ab895 menu: Center menu vertically 2023-07-29 11:55:37 -05:00
mintsuki
474fc105a5 gop: Readd preset mode storage 2023-07-29 11:55:37 -05:00
mintsuki
418f8d7280 menu: Do not draw box around boot menu 2023-07-29 02:17:12 -05:00
mintsuki
722bde2cbc menu: Adjust centering by 2 characters to the left 2023-07-28 04:26:48 -05:00
mintsuki
5bdb1bbf55 menu: Fix a couple of boot menu alignment issues 2023-07-28 04:26:48 -05:00
mintsuki
8f167bc2e5 menu: Initialise max_len if null regardless of shift 2023-07-28 04:26:48 -05:00
mintsuki
d73cd37834 menu: Fix maybe uninitialised issue with cur_len var 2023-07-28 04:26:48 -05:00
mintsuki
478b6f3806 menu: Fix NULL deref bug with shift variable 2023-07-28 04:26:48 -05:00
mintsuki
4b452e69a4 console: Add slide command 2023-07-28 04:26:48 -05:00
mintsuki
98f30bfdd6 menu: Center boot menu 2023-07-28 04:26:48 -05:00
mintsuki
9921af54d0 gterm: Autoscale font on higher resolutions 2023-07-28 04:26:48 -05:00
Kacper Słomiński
a2e502328d limine: Adjust higher half offsets for AArch64 2023-07-26 17:05:43 -05:00
Kacper Słomiński
dc68fcaff7 limine: Use a higher-half pointer for the stack on AArch64 2023-07-26 17:05:33 -05:00
mintsuki
f365a46617 misc: Minor updates to linker scripts 2023-07-26 17:05:20 -05:00
mintsuki
871a8053c2 build: Get rid of OBJCOPY2ELF_FLAGS since only IA-32/BIOS used it 2023-07-26 17:05:06 -05:00
mintsuki
49ecb6b577 build: Get rid of RISCV_CFLAGS variable as it is now unnecessary 2023-07-26 17:04:54 -05:00
mintsuki
bc1896c5bb riscv64: Do not use global pointer register 2023-07-26 17:04:30 -05:00
mintsuki
b72d033510 elf: elf64_load(): Remove accidentally left in debug code 2023-07-09 03:40:06 +02:00
mintsuki
11f50a6aaa part: Require keypresses between entry displays in list_volumes() 2023-07-09 03:37:55 +02:00
mintsuki
79e50a82af misc: Use assembly for memory functions on x86 2023-07-09 03:09:45 +02:00
mintsuki
17e26c8c95 elf: Fix potential uninitialised usage of bss_size 2023-07-09 03:09:45 +02:00
mintsuki
9333f1ca8b limine/elf: Optimise not to scan .bss for requests 2023-07-08 23:44:50 +02:00
mintsuki
99d671ecf8 build: Drop -Wno-deprecated-declarations flag 2023-06-20 16:24:27 +02:00
mintsuki
7882d89b4e limine: Drop 5-level paging request support 2023-06-20 16:10:08 +02:00
mintsuki
1ad6d6013e limine: Drop terminal request support 2023-06-20 15:58:52 +02:00
mintsuki
2ac43a320f asm: Add missing section directives 2023-06-20 13:24:49 +02:00
mintsuki
2d6a1e4535 console: Add firmware type command 2023-06-20 11:10:33 +02:00
mintsuki
6e41938206 gensyms: Filter out non-function symbols 2023-06-20 08:54:53 +02:00
mintsuki
66268f7d7f pmm: Use fixed value of 1024 for recl entries count 2023-06-15 13:06:52 +02:00
mintsuki
cb14f44eb3 pmm: Fix change-memmap-in-use bug 2023-06-15 12:54:36 +02:00
mintsuki
910a0d84a0 vmm: Fix page_sizes values and move declaration to top 2023-06-15 08:21:48 +02:00
mintsuki
670b635ae8 config: Add and document ARCH built-in macro 2023-06-15 02:23:48 +02:00
mintsuki
bc8188e275 misc: limine.sys -> limine-bios.sys 2023-06-15 02:02:32 +02:00
mintsuki
7b1284808a build: Fix permissions of output files in makefile instead of release recipe 2023-06-15 01:33:17 +02:00
mintsuki
2b154138fe misc: Updates for new limine-efi 2023-06-12 05:57:47 +02:00
mintsuki
cde874fe80 misc: Updates for new flanterm 2023-06-10 19:23:50 +02:00
mintsuki
666c5dfcd1 riscv64: Update location of __global_pointer$ 2023-06-06 00:17:07 +02:00
mintsuki
13042bd25e build/riscv64: libgcc-riscv64 -> libgcc-riscv64-softfloat 2023-06-06 00:02:07 +02:00
mintsuki
74a6b8e125 protos/linux: Do not zero EFI memmap size on IA-32 EFI 2023-06-05 23:05:20 +02:00
xvanc
1f01ddfc6d
limine: scale the maximum KASLR offset based on the address space size 2023-06-04 13:50:26 -05:00
xvanc
9274ee656e
Initial riscv64 port (#274)
* initial riscv64 port

* enable Paging Mode feature for all architectures

* riscv: add missing protocol docs

* riscv: fix tests

* docs: clarify `LIMINE_PAGING_MODE_DEFAULT` macro

* build: fix whitespace in common/GNUmakefile

* riscv: default to Sv48 paging when supported

* vmm: make `VMM_MAX_LEVEL` 1-indexed

* limine: do not call `reported_addr()` before finaling paging mode

smp/riscv: do not overwrite the argument passed to APs

* limine/riscv: update default paging mode in limine.h

* test/riscv: pad OVMF.fd when downloading it
2023-06-04 01:36:06 +02:00
Bryce Lanham
fe083d3701 Fix netboot in configs where BLOCK_IO does not exist
For example, netbooting qemu-system-aarch64 with no drive specified will
result in OVMF not loading the BLOCK_IO_PROTOCOL, causing a panic in
disk.s2.c.
2023-06-01 03:33:13 -05:00
mintsuki
f26b651e5f disk/efi: Do not use DISK_IO protocol and fix buffer reuse bug 2023-05-30 21:36:09 +02:00
mintsuki
679fdd4351 misc: Use C instead of asm for mem*() family of functions 2023-05-30 12:23:31 +02:00
mintsuki
eac03c8c89 build/uefi: Remove now-useless -DGNU_EFI_USE_MS_ABI flag 2023-05-28 23:53:34 +02:00
mintsuki
0125dcd67a build/uefi: Pass -fshort-wchar to CC 2023-05-27 16:55:49 +02:00
mintsuki
7989064599 elf: Improve detection of relocatable ELFs 2023-05-13 00:05:50 +02:00
mintsuki
73462a5116 Revert "compress/gz: Add hack to allow macOS compressed GZs to load with stbi"
This reverts commit 1dd75a18ac.
2023-05-03 19:53:27 +02:00
mintsuki
f618eb26af Revert "misc: Revert back to using tinf for all GZ decompression"
This reverts commit 3438b8d235.
2023-05-03 19:53:27 +02:00
mintsuki
e9186e1859 Revert "uri: Backport pre-tinf-removal variable assignments"
This reverts commit 514522125b.
2023-05-03 19:53:27 +02:00
Bryce Lanham
e0c3e6bdce multiboot1: also fix elf32 section loading
As with the prior mb2 fix, use the correct size elf section header for
32 bit elf
2023-05-02 20:48:13 -05:00
Bryce Lanham
fdcb9a9243 multiboot2: fix 32 bit elf section loading
Existing code was using 64 bit elf section header unconditionally. This
commit fixes that :)
2023-05-02 20:15:43 -05:00
mintsuki
8dd7973e23 pxe: Add and use constant PXE ACK packet size and fix BIOS PXE ACK struct 2023-04-28 04:59:08 +02:00
mintsuki
36846549e0 menu: Do not initialise textmode terminal if QUIET=yes. Addresses #269 2023-04-26 23:49:22 +02:00
Bryce Lanham
2362f1a785 Implement Multiboot2 network tag
Added caching of the dhcp response in the pxe code, and then adding the
tag containing it.
2023-04-24 06:44:56 -05:00
Bryce Lanham
64a0c6073b Fix PXE BIOS boot when using a proxy DHCP server 2023-04-22 01:22:36 -05:00
mintsuki
c41e3969a6 build: Pass proper warning flags to nasm 2023-04-18 12:41:01 +02:00
mintsuki
e57050d9c7 multiboot1: Support TEXTMODE config as with Linux/mb2 protocols 2023-04-13 19:21:49 +02:00
mintsuki
93ae0e9afc textmode: Actually disable term hooking on non-managed initialisation 2023-04-13 18:49:26 +02:00
ミンツキ
3613997108
Merge pull request #263 from klange/mb2-textmode
multiboot2: Support TEXTMODE config as with linux
2023-04-12 16:24:14 +02:00
K. Lange
2da6225f9e multiboot2: ignore unsupported tags if they are marked optional 2023-04-12 19:53:24 +09:00
K. Lange
a3f84fc4a3 multiboot2: Support TEXTMODE config as with linux 2023-04-12 19:50:01 +09:00
mintsuki
240d9688b0 multiboot2: Fix lack of argument to panic format string 2023-04-12 09:56:28 +02:00
mintsuki
eba0183b6e build: Reorganise warning flags 2023-04-11 17:15:41 +02:00
mintsuki
ebd1953e51 build: Use uppercase PIE/PIC compilation flags 2023-04-11 15:57:02 +02:00
mintsuki
514522125b uri: Backport pre-tinf-removal variable assignments 2023-04-08 03:10:53 +02:00
mintsuki
3438b8d235 misc: Revert back to using tinf for all GZ decompression 2023-04-08 02:17:02 +02:00
mintsuki
b66184cfbd limine: Clarify ambiguity with response revision and internal modules 2023-03-30 03:51:59 +02:00
mintsuki
012605adf9 limine: Fix issue with internal modules and kernels in root dir 2023-03-30 02:43:52 +02:00
mintsuki
d0df21abb9 limine: Mark terminal as deprecated 2023-03-30 02:12:24 +02:00
mintsuki
01eeeb6e1d term: Drop in_bootloader for new Flanterm 2023-03-30 01:23:55 +02:00
mintsuki
779571339e misc: Updates for Flanterm rebrand 2023-03-29 22:43:06 +02:00
mintsuki
a2dd3449a8 limine: Fix framebuffer pointer in terminal struct being invalid without a framebuffer request 2023-03-29 11:04:53 +02:00
mintsuki
42027470c7 limine: Fix bug where internal modules are parsed with revision < 1 2023-03-25 00:59:26 +01:00
mintsuki
d0ee1e7d65 limine: Support relative-to-kernel paths for internal modules 2023-03-24 18:24:27 +01:00
mintsuki
698ca1a665 limine: Honour LIMINE_INTERNAL_MODULE_REQUIRED flag 2023-03-24 10:18:18 +01:00
mintsuki
830251e68e limine: Load internal modules before config modules 2023-03-24 09:07:40 +01:00
mintsuki
d4334699e3 limine: Implement internal modules concept 2023-03-24 01:02:31 +01:00
mintsuki
0196abf2ec build: Minor build system updates 2023-03-23 02:35:08 +01:00
mintsuki
2ea3f7e9d8 build: Minor build system updates 2023-03-23 01:02:58 +01:00
mintsuki
3bf159d81c compress: Rename modified tinfgzip wrapper to gzip 2023-03-16 22:49:24 +01:00
mintsuki
9663318102 build: Remove useless unset commands from common GNUmakefile 2023-03-16 17:01:41 +01:00
mintsuki
fadb9a7c13 build: Misc updates for new freestanding-toolchain 2023-03-16 03:38:53 +01:00
mintsuki
f71f506b0a build: configure: Change some variable names to be more friendly 2023-03-16 02:28:50 +01:00
mintsuki
9009404a11 build: Updates for newer freestanding-toolchain 2023-03-14 17:20:46 +01:00
mintsuki
828e3790a4 chainload: LoadOptionsSize should be in bytes. Fixes #254 2023-03-08 15:40:11 +01:00
mintsuki
246276a538 chainload: BIOS: do not rely on 0x7c00 being free 2023-03-07 13:07:28 +01:00
mintsuki
980c122475 vga_textmode: Minor cursor-related bug fixes 2023-03-07 13:07:28 +01:00
mintsuki
4ef529b4eb misc: Load BIOS port at 0xf000 instead of 0x8000 2023-03-07 02:21:09 +01:00
mintsuki
fc4e283ad5 stb_image: Fix free/realloc wrappers to handle being passed NULL 2023-03-05 19:01:31 +01:00
mintsuki
0f4beb1bfd gterm: Fix NULL dereference bug when no wallpaper used 2023-03-05 09:49:28 +01:00
mintsuki
1dd75a18ac compress/gz: Add hack to allow macOS compressed GZs to load with stbi 2023-03-05 09:08:37 +01:00
mintsuki
8bb12244be image: Use stbi_image_free() instead of freeing buffer ourselves 2023-03-05 08:47:38 +01:00
mintsuki
753bb820ae stb_image: More proper implementation of malloc/free/realloc macros 2023-03-05 08:29:27 +01:00
mintsuki
959c44658e image: Use stb_image for image loading 2023-03-05 07:57:54 +01:00
mintsuki
11ef3bced2 build: Honour CROSS_CPPFLAGS 2023-02-25 01:38:26 +01:00
mintsuki
9bcad9d258 build: Very minor QOL fixes 2023-02-20 22:24:21 +01:00
mintsuki
1e65ada438 Revert "fs: Drop ext* support"
This reverts commit caaf4f94a5.
2023-02-20 05:10:33 +01:00
mintsuki
c924d7b7e5 build: Misc quality-of-life fixes 2023-02-19 10:07:21 +01:00
mintsuki
ce7a552723 misc: Let freestanding-headers handle limits.h 2023-02-18 09:41:30 +01:00
mintsuki
c7f344784c menu: Fix issue introduced in 48053fd2 where TIMEOUT=0 would not show interface 2023-02-16 07:18:04 +01:00
mintsuki
48053fd206 misc: Fix bug on trunk where returns to menu from panic would crash 2023-02-16 03:54:10 +01:00
mintsuki
e909489635 vga_textmode: Unbreak on trunk 2023-02-16 03:21:06 +01:00
mintsuki
a3f814b5f7 uri/tinfgzip: Minor fixes and layering improvement 2023-02-16 02:05:11 +01:00
mintsuki
3ae87be595 uri: Fix minor use-after-free bug 2023-02-15 21:09:46 +01:00
mintsuki
9b07351208 uri: Prevent memory leak when opening compressed files 2023-02-15 21:05:55 +01:00
mintsuki
143d3d85de stb/image: Comment out problematic functions 2023-02-15 11:53:07 +01:00
mintsuki
1099993b14 stb: Ignore some warnings coming from stb_image.h 2023-02-15 11:31:28 +01:00
mintsuki
71b3ae548b compress: Replace tinf's inflate implementation with stb_image's zlib 2023-02-15 11:21:53 +01:00
mintsuki
caaf4f94a5 fs: Drop ext* support 2023-02-15 11:21:53 +01:00
mintsuki
c30afde043 config: Do not allow recovering from checksum mismatch panic 2023-02-07 00:28:51 +01:00
mintsuki
843be07536 config: No longer allow continuing boot on checksum mismatches 2023-02-07 00:23:10 +01:00
mintsuki
8c7a98310a misc: Add support for enrolling config blake2b hash in executable 2023-02-06 23:58:19 +01:00
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