cosmopolitan/libc/vga
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
..
readv-vga.c Bare metal VGA: clarify code comments (#616) 2022-09-13 15:26:33 -07:00
rlinit-init-vga.S [metal] Push forward timing of VGA TTY initialization (#653) 2022-10-07 17:10:28 -07:00
rlinit-vesa.S Work towards zipos / open(argv[0]) on metal (#667) 2022-11-06 00:29:47 -07:00
tty-graph.c Show "screen of death" on VGA console upon program crash (#650) 2022-10-06 05:36:15 -07:00
tty-graph.inc Show "screen of death" on VGA console upon program crash (#650) 2022-10-06 05:36:15 -07:00
tty-klog.greg.c Show "screen of death" on VGA console upon program crash (#650) 2022-10-06 05:36:15 -07:00
tty.greg.c Make more threading improvements 2022-11-01 23:28:26 -07:00
vga-font-default.c Add basic character output for VGA graphics mode console (#649) 2022-10-05 06:46:50 -07:00
vga-init.greg.c [metal] Allow programs larger than 440 KiB to run in bare metal mode (#685) 2022-12-17 17:51:20 -08:00
vga.internal.h Show "screen of death" on VGA console upon program crash (#650) 2022-10-06 05:36:15 -07:00
vga.mk Add VGA support on bare metal (#588) 2022-09-06 18:41:08 -07:00
writev-vga.c Show "screen of death" on VGA console upon program crash (#650) 2022-10-06 05:36:15 -07:00