From 9262e27ba96ce21a85ced775c19d38d40c9afb4c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 24 Apr 2019 00:46:47 +0200 Subject: [PATCH] Import a debugging macro in the loader as well --- src/arch/i386/loader.S | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/arch/i386/loader.S b/src/arch/i386/loader.S index 3ef990a..a0aa908 100644 --- a/src/arch/i386/loader.S +++ b/src/arch/i386/loader.S @@ -7,6 +7,18 @@ #include "multiboot.S" +/* macros */ +#ifdef DEBUG +# define DEBUG_STRING(s) \ + pusha; \ + push s; \ + call puts; \ + pop s; \ + popa; +#else +# define DEBUG_STRING(s) +#endif + /* bss */ .section .bss