From 3cbf2298b2b3dc24355449131d2e496f8e02b8f5 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 16 Mar 2021 19:28:38 +0100 Subject: 02: compile time arch check --- 02_process_init/entry.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/02_process_init/entry.S b/02_process_init/entry.S index 50425ba..652c175 100644 --- a/02_process_init/entry.S +++ b/02_process_init/entry.S @@ -2,6 +2,10 @@ #include +#if !defined(__linux__) || !defined(__x86_64__) +# error "Only supported in linux(x86_64)!" +#endif + .intel_syntax noprefix .section .text, "ax", @progbits -- cgit v1.2.3