Martin Whitaker
fe4374e818
Allocate the main program stacks after the loaded program.
...
After we relocate the program, we restart it. So there is no need to copy
over the old stack contents. This allows us to increase the maximum number
of APs without a run time overhead. The maximum number of APs will still
be limited by the size of low memory.
2022-01-29 15:17:00 +00:00
Martin Whitaker
0aa1b1fa97
Rearrange stack space to reduce memory footprint.
...
The BSP only needs extra stack space during program initialisation. The APs
aren't running at that point, so by positioning the BSP stack above the AP
stacks, it can extend down into the AP stack space without causing any
problems.
2022-01-09 21:25:16 +00:00
Martin Whitaker
a454174f3f
Fis startup stack address calculations.
2022-01-09 19:26:56 +00:00
Martin Whitaker
733919966d
Add support for boot command line options.
2021-12-23 14:08:02 +00:00
Martin Whitaker
4aea5f4d19
Minor spacing fix.
2021-12-22 16:37:54 +00:00
Martin Whitaker
d70d8dd407
Disable debug output in efisetup.c (committed by accident).
2021-09-04 13:10:09 +01:00
Martin Whitaker
abbee1a25f
Use 'size -B' instead of 'size -G' to determine BSS size.
...
The -G option is a relatively recent addition, so fails on older
systems (issue #11 ).
2021-09-02 18:11:30 +01:00
Martin Whitaker
bb667b600f
Use ACPI RSDP address from boot_params if provided by bootloader.
2020-12-11 16:18:04 +00:00
Martin Whitaker
b508b528d0
Add more EFI display debug.
2020-11-19 20:10:15 +00:00
Martin Whitaker
e91d4bc0b0
Fix bug in setting screen info from EFI bit mask mode.
2020-11-01 16:57:23 +00:00
Martin Whitaker
4f5cabedf3
Add code for debugging EFI display problems.
2020-11-01 16:56:25 +00:00
Martin Whitaker
7d044ed089
Add support for USB legacy boot on hybrid ISO.
2020-07-09 15:53:44 +01:00
Martin Whitaker
fd7f4be912
Simplify.
2020-07-09 15:49:58 +01:00
Martin Whitaker
c089a81ed1
Add support for 32-bit EFI boot.
2020-07-08 11:07:32 +01:00
Martin Whitaker
4573faa78c
Simplify addressing in bootsect.S.
...
We locate boot at address 0 when linking, so no need to adjust addresses.
2020-07-04 10:18:32 +01:00
Martin Whitaker
c505472939
Support direct 64-bit EFI boot.
2020-07-03 22:42:45 +01:00
Martin Whitaker
b68afac6c0
Cosmetic changes to ldscripts.
2020-07-03 19:33:42 +01:00
Martin Whitaker
a2110cb97f
Add support for 64-bit EFI handover boot protocol.
2020-06-30 13:54:58 +01:00
Martin Whitaker
9492c086fe
Move boot_params definitions into separate header file.
2020-06-29 12:09:13 +01:00
Martin Whitaker
cae4ffa636
Add missing header include.
2020-05-30 10:55:34 +01:00
Martin Whitaker
dc74849f50
Disable paging whilst updating the pdbr during restart.
2020-05-30 10:52:35 +01:00
Martin Whitaker
fbd3376668
Initial commit.
2020-05-24 21:30:55 +01:00