summaryrefslogtreecommitdiffstats
path: root/src/commonlib
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-12-31 16:40:58 -0700
committerMartin L Roth <gaumless@gmail.com>2023-01-07 03:31:41 +0000
commitfbd13a84cf0d02a42188c00cf68f40b2b00af9d0 (patch)
tree8488558ef29cc76228c3e539b613c65836b8c2e3 /src/commonlib
parent4c3014feb276cd14ce4fbea4f75d7b0952841cf3 (diff)
downloadcoreboot-fbd13a84cf0d02a42188c00cf68f40b2b00af9d0.tar.gz
coreboot-fbd13a84cf0d02a42188c00cf68f40b2b00af9d0.tar.bz2
coreboot-fbd13a84cf0d02a42188c00cf68f40b2b00af9d0.zip
vc/google: Add and use POST_CODE_CLEAR definition
The CR50 code clears the post code value. Add this as a #define. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: If3b73a3159ac8ac9ab08c6ff705b0ca289ab453c Reviewed-on: https://review.coreboot.org/c/coreboot/+/71592 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jon Murphy <jpmurphy@google.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/include/commonlib/console/post_codes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commonlib/include/commonlib/console/post_codes.h b/src/commonlib/include/commonlib/console/post_codes.h
index d838815fa214..ef296bda4961 100644
--- a/src/commonlib/include/commonlib/console/post_codes.h
+++ b/src/commonlib/include/commonlib/console/post_codes.h
@@ -28,6 +28,12 @@
#define POST_CODES_H
/**
+ * \brief Not an actual post-code - used to clear port80h
+ *
+ */
+#define POST_CODE_CLEAR 0x00
+
+/**
* \brief Entry into 'crt0.s'. reset code jumps to here
*
* First instruction that gets executed after the reset vector jumps.