From 7010a8081e5eb2bb71f0e156c5c75c1eb572ecfc Mon Sep 17 00:00:00 2001 From: tkchia Date: Fri, 17 Nov 2023 04:13:17 +0800 Subject: [PATCH] Fix regression when building deathstar.com for aarch64 (#957) It turns out my earlier commit ddc08dc974 caused a build with MODE=aarch64 to fail. The commit changed deathstar.c to link in code to support a VGA console, but this is not implemented yet for AArch64. Thanks to @ahgamut for spotting this issue. --- tool/viz/deathstar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/viz/deathstar.c b/tool/viz/deathstar.c index 45a213aef..f06a827fd 100644 --- a/tool/viz/deathstar.c +++ b/tool/viz/deathstar.c @@ -15,8 +15,10 @@ #define FRAMERATE 23.976 #define WRITE(s) write(1, s, strlen(s)) +#ifdef __x86_64__ __static_yoink("vga_console"); __static_yoink("EfiMain"); +#endif struct Sphere { double cx, cy, cz, r;