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
mintsuki
fe637af458
ext: Properly follow relative symlinks
2022-08-21 00:50:12 +02:00
Kacper Słomiński
e1f6ac8860
Initial AArch64 port ( #205 )
...
* Initial aarch64 port
* Enable chainload on aarch64
No changes necessary since it's all UEFI anyway.
* Add specification for Limine protocol for aarch64
* PROTOCOL: Specify state of information in DT /chosen node
* common: Add spinup code for aarch64
* common: Port elf and term to aarch64
* common: Port vmm to aarch64
Also prepare to drop VMM_FLAG_PRESENT on x86.
* protos: Port limine boot protocol to aarch64
Also drop VMM_FLAG_PRESENT since we never unmap pages anyway.
* test: Add DTB request
* PROTOCOL: Port SMP request to aarch64
* cpu: Add cache maintenance functions for aarch64
* protos/limine, sys: Port SMP to aarch64
Also move common asm macros into a header file.
* test: Start up APs
* vmm: Unify get_next_level and implement large page splitting
* protos/limine: Map framebuffer using correct caching mode on AArch64
* CI: Fix GCC build for aarch64
* entry, menu: Replace uses of naked attribute with separate asm file
GCC does not understand the naked attribute on aarch64, and didn't
understand it for x86 in older versions.
2022-08-18 17:32:54 +02:00
mintsuki
664a872dda
editor: Add TERM_CONFIG_OVERRIDE to syntax highlighting
2022-08-15 18:40:52 +02:00
mintsuki
5f1680acc1
build: Misc improvements to makefiles
2022-08-15 17:41:04 +02:00
mintsuki
1e9ac0ac01
build: Update makefiles to not use INTERNAL variables
2022-08-15 16:37:31 +02:00
mintsuki
17e23dd7f6
build: Discard .eh_frame section in linker scripts to fix potential GNU toolchain miscompilation
2022-08-15 16:22:56 +02:00
mintsuki
fb2a6e1f29
limine: Remove stray external symbol declaration
2022-08-14 15:31:53 +02:00
mintsuki
997c787c16
term/limine: Allow overriding terminal config in entry
2022-08-14 15:09:57 +02:00
mintsuki
11b56c39f0
config: Only make keys global if before first entry
2022-08-14 14:45:20 +02:00
mintsuki
73f958e92e
Revert "Revert "gensyms: Use as instead of nasm""
...
This reverts commit b3ca8ae9a2
.
2022-08-13 20:32:06 +02:00
mintsuki
7ade45b230
misc: struct e820_entry_t -> struct memmap_entry
2022-08-13 19:54:49 +02:00
mintsuki
71fd2d2516
pmm: Properly handle memory map entries that cross 4GiB on UEFI
2022-08-13 17:52:01 +02:00
Dmytro Bagrii
b205ff9bd8
misc: Fix GRAPHICS config option recognition
2022-08-13 04:30:58 +03:00
mintsuki
93f8d011ff
multiboot2: Fix bug where old ACPI tag would not get passed if RSDP rev == 0
2022-08-12 23:33:28 +02:00
mintsuki
74a3a1c6b6
pmm: General tyding up of pmm code (2)
2022-08-11 20:20:16 +02:00
mintsuki
fa6f607769
pmm: General tyding up of pmm code
2022-08-11 09:41:07 +02:00
mintsuki
7a9a04d72f
build: Always place -fno-pie before -fno-pic
2022-08-09 15:22:15 +02:00
mintsuki
4422ebd61c
build: Get proper mkdir -p from autoconf
2022-08-08 22:00:25 +02:00
mintsuki
e3c4fbea25
config: Remove stray include
2022-08-06 20:21:56 +02:00
mintsuki
793d029370
linux: Only make framebuffer EFI and 64-bit if above 4GiB
2022-08-06 19:47:46 +02:00
mintsuki
367bf3e5e9
linux: Find compromise for 32-bit EFI boot
2022-08-04 14:16:42 +02:00
mintsuki
4b55b45382
pmm: Fix a handful of GCC warnings
2022-08-04 13:04:55 +02:00
mintsuki
0ef0c3adc5
linux, pmm: Get a boot with 32-bit UEFI. Addresses #185
2022-08-04 12:56:46 +02:00
mintsuki
c43acd445f
limine: Drop legacy framebuffer and terminal requests
2022-07-29 00:53:59 +02:00
mintsuki
cd1107abe2
limine: Specify that memory between 0 and 0x1000 is never to be marked usable
2022-07-29 00:42:47 +02:00
mintsuki
c23eac8018
mbr: Make detection more lax. Addresses #185
2022-07-28 22:48:04 +02:00
mintsuki
ff7d9502e5
smp: Make smp_trampoline_size variable instead of symbol
2022-07-28 22:30:26 +02:00
mintsuki
ccdd1ca642
smp: Do not calculate trampoline size in C file
2022-07-28 22:23:12 +02:00
mintsuki
77ed67e582
smp/trampoline: Use hand written pos independent code instead of objcopying
2022-07-28 09:35:59 +02:00
mintsuki
0a2c2896b7
Revert "pmm: Fix issue with get_memmap() that could cause page table corruption"
...
This reverts commit 9c180b4008
.
2022-07-26 20:02:57 +02:00
mintsuki
fb5d903ccf
pmm: Reclaim bootservices entries last and disallow allocations after
2022-07-26 19:55:18 +02:00
mintsuki
4c6fba824c
chainload: Add GPT_GUID support and improve documentation. Closes #201
2022-07-26 19:21:47 +02:00
mintsuki
7bfa2cd775
pmm: Fix bugs introduced in 85603ec
2022-07-26 11:01:00 +02:00
mintsuki
85603ec8db
pmm: Simplify handling EFI memory acquisition and release
2022-07-26 08:09:50 +02:00
mintsuki
dcfef93ff6
efi: Handle cases where untouched memmap entries are lower than current base
2022-07-24 22:36:46 +02:00
mintsuki
4859ee9790
Revert "multiboot: Take better care of not having the reloc stub overwritten"
...
This reverts commit 009fb59b69
.
2022-07-24 22:32:25 +02:00
mintsuki
d2b1579668
multiboot: Properly check elsewhere returns
2022-07-24 22:28:16 +02:00
mintsuki
b3ca8ae9a2
Revert "gensyms: Use as instead of nasm"
...
This reverts commit cb9c097bcc
.
2022-07-24 01:03:48 +02:00
mintsuki
a58e66a187
build: Move common/{entry.asm_bios_ia32 -> entry_asm.s2.asm_bios_ia32}
2022-07-18 21:34:26 +02:00
mintsuki
f2d611eb83
build: Remove unnecessary -mno-3dnow flag
2022-07-18 21:34:26 +02:00
mintsuki
f233703167
build: Remove unnecessary symbol overrides for stage2only
2022-07-18 21:34:26 +02:00
mintsuki
86fc022f11
misc: Move 'verbose' declaration to lib/print.h
2022-07-18 21:14:21 +02:00
mintsuki
6eafb4fc03
build: BIOS stage2only build improvements
2022-07-18 21:02:44 +02:00
mintsuki
22d45a5428
build: Remove dummy limine-efi rules
2022-07-18 20:48:09 +02:00
mintsuki
37f7275775
build: Update linker scripts and fix minor makefile issue
2022-07-18 20:41:39 +02:00
mintsuki
ffb4ba6f55
mbr: Relax MBR validation requirements. Closes #195
2022-07-16 17:32:27 +02:00
mintsuki
4dc295c9d8
misc: Fix broken memcmp()
2022-07-14 20:03:21 +02:00
mintsuki
8a8b62fbcf
chainload: Fix bug where PARTITION was ignored if MBR_ID was set. Addresses #197
2022-07-14 19:24:41 +02:00
mintsuki
2a448febb3
protos: Move 'loading kernel' prints where they belong
2022-07-13 08:34:30 +02:00
mintsuki
e5e125887b
protos: Remove pointless returns added for autodetection
2022-07-13 07:40:53 +02:00
mintsuki
0af37b7cf0
fwcfg: Drop support
2022-07-13 06:23:20 +02:00
mintsuki
62c029c218
chainload: Implement MBR_ID config option. Closes #190
2022-07-11 01:30:54 +02:00
mintsuki
fb75a6876e
chainload_next: Fix some UEFI bugs
2022-07-11 00:53:33 +02:00
mintsuki
4511827780
chainload_next: Pass config through to chainload on UEFI
2022-07-11 00:27:22 +02:00
mintsuki
abd641bba0
protos: Fix typo in chainload_next.c
2022-07-11 00:19:32 +02:00
mintsuki
95272c5f1d
protos: Add chainload_next protocol. Closes #191
2022-07-11 00:15:56 +02:00
mintsuki
1ac1343059
mbr: Add extra FAT32 and NTFS signatures to validity check
2022-07-10 22:46:08 +02:00
mintsuki
abf86a561a
fat: Make signature checking even more lax
2022-07-10 19:50:19 +02:00
mintsuki
5e0f85727a
bios: Get rid of self-modifying interrupt call code
2022-07-10 18:58:17 +02:00
mintsuki
b1672e4ab9
fat: Loosen up check more and lower its priority in file.s2.c
2022-07-09 12:42:34 +02:00
mintsuki
afedae6d08
fat32: Swallow 0x28 and 0xd0 extended boot signatures
2022-07-09 12:25:47 +02:00
mintsuki
71adb6b307
console: Set config_ready to true after successfully running editor
2022-07-09 11:58:03 +02:00
mintsuki
7d78cf4e17
part: Also print fslabel in lsvol
2022-07-07 11:22:43 +02:00
mintsuki
7895c6827c
ext: Return NULL from get_label() when no label is present
2022-07-07 11:22:43 +02:00
mintsuki
eafff620d7
uri: Fix call to panic()
2022-07-07 11:18:09 +02:00
mintsuki
ff5d74511a
fat: Fix volume label detection
2022-07-07 11:13:45 +02:00
mintsuki
00b9f44255
limine: Fix assignment of paths broken in 0431623
2022-07-07 10:08:55 +02:00
mintsuki
7db783f080
edid: Undo comparison change from 29d63d6
2022-07-06 04:47:42 +02:00
mintsuki
180eb8490a
part: Misc EBR-related bug fixes. Fixes #189
2022-07-06 03:17:11 +02:00
mintsuki
009fb59b69
multiboot: Take better care of not having the reloc stub overwritten
2022-07-05 20:42:09 +02:00
mintsuki
8e54ea461b
protos: Remove ugly .32.c files and replace them with pure asm files
2022-07-05 18:53:39 +02:00