cosmopolitan/libc/stubs
tkchia 0da47c51de
[metal] Allow programs larger than 440 KiB to run in bare metal mode (#685)
* [metal] Copy program pages to extended memory at startup
* [metal] Reclaim base memory pages for later app use
* [metal] Load program pages beyond 1st 440 KiB to extended memory

o//examples/hellolua.com now runs correctly under QEMU (in
legacy BIOS mode).

* [metal] Place GDT in read/write segment

The CPU absolutely needs to alter the GDT when loading the
task register (via ltr).  To account for this, I move the
GDT into a read/write data section.  There is still a "rump"
read-only GDT in the text section that is used by the real
mode bootloader.

We also delay the loading of the task register (ltr) until
after the IDT and TSS are finally set up.

* [metal] Get examples/vga2.c serial output working for UEFI boot
* [metal] Get examples/vga2.c VGA output working for UEFI boot
* [metal] Allow munmap() to reclaim dynamically allocated pages
* Place TLS sections right after .text, not after embedded zip file

Co-authored-by: tkchia <tkchia-cosmo@gmx.com>
2022-12-17 17:51:20 -08:00
..
abort.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
assertfail.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
cxapurevirtual.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
debugbreak.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
gcov.S Correct more typos (#500) 2022-07-21 20:53:30 -07:00
instrumentation.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
ld.S [metal] Allow programs larger than 440 KiB to run in bare metal mode (#685) 2022-12-17 17:51:20 -08:00
panic.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
pututxline.S Add finger demo to redbean and fix regression 2022-06-23 03:42:05 -07:00
retpoline.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
stackchkguard.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
stackguard.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
stubs.mk Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
typeinfo.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
xnu.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00