Skip to content

Commit

Permalink
[metal] Make deathstar.com draw onto both VGA and serial consoles
Browse files Browse the repository at this point in the history
In addition, deathstar.com can now be booted up via UEFI.
  • Loading branch information
tkchia committed Nov 15, 2023
1 parent 3a470ed commit b236ff7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tool/viz/deathstar.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#define FRAMERATE 23.976
#define WRITE(s) write(1, s, strlen(s))

__static_yoink("vga_console");
__static_yoink("EfiMain");

struct Sphere {
double cx, cy, cz, r;
};
Expand Down
1 change: 1 addition & 0 deletions tool/viz/viz.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ TOOL_VIZ_DIRECTDEPS = \
LIBC_THREAD \
LIBC_TIME \
LIBC_TINYMATH \
LIBC_VGA \
LIBC_X \
NET_HTTP \
THIRD_PARTY_COMPILER_RT \
Expand Down

0 comments on commit b236ff7

Please sign in to comment.