Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/71595 )
Change subject: inc/cpu/x86: Make sure the post_code macro is only used in asm ......................................................................
inc/cpu/x86: Make sure the post_code macro is only used in asm
Because this post_code macro could override the post_code function, make sure it's only used in assembly files.
Signed-off-by: Martin Roth gaumless@gmail.com Change-Id: If106ab9a3f8d635a013bfe793405914b20e2123c --- M src/include/cpu/x86/post_code.h 1 file changed, 17 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/71595/1
diff --git a/src/include/cpu/x86/post_code.h b/src/include/cpu/x86/post_code.h index db8f90d..c9680f7 100644 --- a/src/include/cpu/x86/post_code.h +++ b/src/include/cpu/x86/post_code.h @@ -5,6 +5,8 @@
#include <commonlib/console/post_codes.h>
+#if __ASSEMBLY__ + #if CONFIG(POST_IO) && !(ENV_BOOTBLOCK && CONFIG(NO_EARLY_BOOTBLOCK_POSTCODES)) #define post_code(value) \ movb $value, %al; \ @@ -14,4 +16,6 @@ #define post_code(value) #endif
+#endif /* __ASSEMBLY__ */ + #endif /* __X86_POST_CODE_H__ */