76 Commits

Author SHA1 Message Date
Andy-Python-Programmer
48f890ad43 is_1gib_page_supported: use printv instead
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2022-01-28 11:18:33 +01:00
Andy-Python-Programmer
9dd2e17a9a is_1gib_page_supported: use (void), not () if there's no args
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2022-01-28 11:18:33 +01:00
Andy-Python-Programmer
3c848d3996 vmm: fix implicit declaration of print
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2022-01-28 11:18:33 +01:00
Andy-Python-Programmer
67a0bb8749 paging: emulate support for 1gib pages if not avaliable
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2022-01-28 11:18:33 +01:00
Andy-Python-Programmer
a218423b9c map_page: add support for mapping 1GiB pages
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2022-01-28 11:18:33 +01:00
Andy-Python-Programmer
7a1e3cb35c map_page: take the page size as an argument (enum)
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2022-01-28 11:18:33 +01:00
lukflug
65bebbbfef panic: Prevent recursive panics during early boot 2021-12-15 19:50:52 +01:00
mintsuki
a5073b9a6c Revert "Revert "misc: Allow recovering from panics""
This reverts commit 5f9ed4c78f744cbfcb408b7ed8ed567b139b7d29.
2021-12-12 18:25:59 +01:00
mintsuki
5f9ed4c78f Revert "misc: Allow recovering from panics"
This reverts commit 40705e5935a918a37db2941a83b9b191eacca248.
2021-12-12 15:50:39 +01:00
mintsuki
40705e5935 misc: Allow recovering from panics 2021-12-11 22:33:27 +01:00
mintsuki
3fe82174f7 pmm: Mark Limine image wholly as bootloader reclaimable in memory map when using UEFI 2021-12-02 01:33:17 +01:00
mintsuki
9c6ea6b2b3 pmm: Work around sanitiser side effect introduced in b5eea0c 2021-11-25 23:14:29 +01:00
mintsuki
da6dc040c9 pmm: Minor cleanup 2021-11-20 09:12:59 +01:00
mintsuki
d28e93f257 pmm: Better handling of creating new memmap entries 2021-11-03 03:05:44 +01:00
mintsuki
f176e24376 pmm: Use untouched_memmap instead of memmap in pmm_release_uefi_mem 2021-10-31 22:11:44 +01:00
mintsuki
6f0d7228f1 pmm: Sanitise away usable entry parts below 0x1000 2021-10-31 22:11:18 +01:00
mintsuki
04f30a48cb pmm: Sanitise out 0-length usable entries 2021-10-30 02:04:36 +02:00
mintsuki
9f74289bd3 stivale2: Introduce fully virtual kernel mappings 2021-10-30 02:04:36 +02:00
mintsuki
a8050bce47 everywhere: Implement pmm_free() 2021-10-21 02:54:27 +02:00
Andy-Python-Programmer
7025da44e3 multiboot2: add the basic memory info tag
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
2021-10-08 17:16:51 +02:00
mintsuki
f448df216e pmm: Workaround for cases in which AllocatePages fails during initialisation 2021-10-02 22:21:58 +02:00
mintsuki
bd4646f0ad chainload: Misc bug fixes and improvements 2021-09-27 04:04:15 +02:00
mintsuki
dafc710c60 pmm: Allocate memory map dynamically using EFI 2021-09-03 03:10:23 +02:00
mintsuki
5217f50bbd pmm: Increase the max size of the memory map 2021-09-02 04:23:09 +02:00
mintsuki
86780fc776 efi: Improve reclaim memory process 2021-09-02 02:47:08 +02:00
mintsuki
31f52c2b30 efi: Directly use EFI functions instead of using GNU-EFI's call wrapper 2021-08-25 22:03:00 +02:00
mintsuki
9a934eb683 efi: Leave 64MiB to firmware instead of 16MiB 2021-08-22 17:57:52 +02:00
mintsuki
f9fe2f96ed misc: Bug fixes 2021-08-20 18:28:51 +02:00
mintsuki
5089bafaf8 pmm: Fix sanitise_entries() bugs 2021-07-25 14:18:35 +02:00
mintsuki
6e1afcd3cb uefi: Initial 32 bit UEFI support 2021-07-20 13:35:43 +02:00
mintsuki
79b8c38c8c stivale: Initial infrastructure to support ELF permissions 2021-07-15 14:09:12 +02:00
mintsuki
1aa5ae13fc misc: Change how bios and uefi macros are defined and tested 2021-07-15 10:03:47 +02:00
mintsuki
cd59bb5097 pmm: Add option to randomise memory contents at boot-up 2021-07-09 14:40:44 +02:00
mintsuki
3b18864e6f efi: Misc bug fixes 2021-07-07 05:54:40 +02:00
mintsuki
0c46de53d8 Revert "pmm: Use our custom EFI memory entry type to release EFI memory back instead of relying on our memmap"
This reverts commit eadee3e6cba0885c77c1db01b0f576d727779e75.
2021-07-07 05:37:47 +02:00
mintsuki
a092368895 pmm: Rework pmm_reclaim_uefi_mem() 2021-07-07 00:44:37 +02:00
mintsuki
c20828138e Revert "uefi: Even saner handling of exiting boot services"
This reverts commit e6cc0e4b93d8c7f5fc4dd4f8726e34b65a8354b3.
2021-07-06 22:45:16 +02:00
mintsuki
eadee3e6cb pmm: Use our custom EFI memory entry type to release EFI memory back instead of relying on our memmap 2021-07-06 08:55:32 +02:00
mintsuki
e6cc0e4b93 uefi: Even saner handling of exiting boot services 2021-07-06 08:21:20 +02:00
mintsuki
05bc7c5bda uefi: More sane handling of exiting boot services 2021-07-06 07:42:35 +02:00
mintsuki
d966dc083c pmm: Sanitise raw EFI memory map 2021-07-06 05:26:55 +02:00
mintsuki
4a87babe4a misc: Forbid variable shadowing 2021-07-06 05:17:18 +02:00
mintsuki
36fa6291bd pmm: Optimise get_raw_memmap() 2021-07-06 03:17:28 +02:00
mintsuki
449df1d547 pmm: Implement get_raw_memmap() and use it in mb1 proto 2021-07-06 03:01:07 +02:00
mintsuki
7bf53f1406 pmm: Do not reclaim EfiLoader sections as usable 2021-06-15 03:10:59 +02:00
mintsuki
f650e4b41b misc: Add verbose config option 2021-05-11 06:46:42 +02:00
mintsuki
db3a41bc4c uefi: Implement chainloading support 2021-05-06 04:31:05 +02:00
mintsuki
ad2e03b434 pmm: Guard against broken E820 causing an EBDA overwrite 2021-05-05 00:12:20 +02:00
mintsuki
f2b172be71 linux: Pass additional EFI info to kernel 2021-04-28 23:41:34 +02:00
mintsuki
fb7e9fdb3c pmm: Remove dead code and misc bug fixes 2021-04-20 13:52:42 +02:00