From ddc08dc974d64a127fcf72d29562800d0b1fc3b6 Mon Sep 17 00:00:00 2001 From: tkchia Date: Thu, 16 Nov 2023 11:40:54 +0800 Subject: [PATCH] [metal] Make deathstar.com draw onto both VGA and serial consoles (#955) In addition, deathstar.com can now be booted up via UEFI. --- tool/viz/deathstar.c | 3 +++ tool/viz/viz.mk | 1 + 2 files changed, 4 insertions(+) diff --git a/tool/viz/deathstar.c b/tool/viz/deathstar.c index 5c09971b0..45a213aef 100644 --- a/tool/viz/deathstar.c +++ b/tool/viz/deathstar.c @@ -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; }; diff --git a/tool/viz/viz.mk b/tool/viz/viz.mk index 45bb46df5..a13039fcb 100644 --- a/tool/viz/viz.mk +++ b/tool/viz/viz.mk @@ -41,6 +41,7 @@ TOOL_VIZ_DIRECTDEPS = \ LIBC_THREAD \ LIBC_TIME \ LIBC_TINYMATH \ + LIBC_VGA \ LIBC_X \ NET_HTTP \ THIRD_PARTY_COMPILER_RT \