Add VGA support on bare metal (#588)

If your main module has this declaration:

    STATIC_YOINK("vga_console");

Then a VGA driver will be linked into your executable which
displays your stdio characters on the PC display, whereas
before we could only use the serial port. Your display is an
ANSI terminal and it's still a work in progress.
This commit is contained in:
tkchia 2022-09-07 09:41:08 +08:00 committed by GitHub
parent 598640864a
commit 3fdb1c14f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 1556 additions and 5 deletions

View file

@ -10,6 +10,8 @@
#include "libc/math.h"
#include "libc/stdio/stdio.h"
STATIC_YOINK("vga_console");
int main(int argc, char *argv[]) {
volatile long double x = -.5;
volatile long double y = 1.5;