diff options
author | H. Peter Anvin <[email protected]> | 2024-02-02 03:51:43 +0000 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2024-02-06 10:50:21 +0100 |
commit | 9ba8ec8ee67a00eb5631364e4b716f35559724d4 (patch) | |
tree | fd97d79f34e63f59b838476fe03b467ff167da15 /arch/x86/boot/compressed/misc.h | |
parent | 15675706241887ed7fdad9e91f4bf977b9896d0f (diff) |
x86/boot: Add error_putdec() helper
Add a helper to print decimal numbers to early console.
Suggested-by: Borislav Petkov (AMD) <[email protected]>
Signed-off-by: H. Peter Anvin (Intel) <[email protected]>
Signed-off-by: Jun'ichi Nomura <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/lkml/20240123112624.GBZa-iYP1l9SSYtr-V@fat_crate.local/
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/x86/boot/compressed/misc.h')
-rw-r--r-- | arch/x86/boot/compressed/misc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h index bc2f0f17fb90..6502bc69d1b8 100644 --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -63,8 +63,10 @@ void *malloc(int size); void free(void *where); void __putstr(const char *s); void __puthex(unsigned long value); +void __putdec(unsigned long value); #define error_putstr(__x) __putstr(__x) #define error_puthex(__x) __puthex(__x) +#define error_putdec(__x) __putdec(__x) #ifdef CONFIG_X86_VERBOSE_BOOTUP |