mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
0da47c51de
* [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> |
||
---|---|---|
.. | ||
public | ||
ape.lds | ||
ape.mk | ||
ape.S | ||
apeinstall.sh | ||
apeuninstall.sh | ||
config.h | ||
idata.internal.h | ||
loader-elf.S | ||
loader-macho.lds | ||
loader-macho.S | ||
loader.c | ||
loader.h | ||
loader.lds | ||
macros.internal.h | ||
mz.ansi | ||
notice.inc | ||
relocations.h | ||
sections.internal.h |