Skip to content

Commit ddc08dc

Browse files
authored
[metal] Make deathstar.com draw onto both VGA and serial consoles (#955)
In addition, deathstar.com can now be booted up via UEFI.
1 parent e4584ac commit ddc08dc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tool/viz/deathstar.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#define FRAMERATE 23.976
1616
#define WRITE(s) write(1, s, strlen(s))
1717

18+
__static_yoink("vga_console");
19+
__static_yoink("EfiMain");
20+
1821
struct Sphere {
1922
double cx, cy, cz, r;
2023
};

tool/viz/viz.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ TOOL_VIZ_DIRECTDEPS = \
4141
LIBC_THREAD \
4242
LIBC_TIME \
4343
LIBC_TINYMATH \
44+
LIBC_VGA \
4445
LIBC_X \
4546
NET_HTTP \
4647
THIRD_PARTY_COMPILER_RT \

0 commit comments

Comments
 (0)