summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-10-04 14:55:54 +0800
committerHung-Te Lin <hungte@chromium.org>2019-11-07 03:23:32 +0000
commit57bab83390b4f2dd677df4fd2eb4292fe74a6178 (patch)
tree6517e3432210d2a0a54633154681fa4552458cde
parent3819438019893f6145a0f36a1dee5621f4e6f366 (diff)
downloadvboot-57bab83390b4f2dd677df4fd2eb4292fe74a6178.tar.gz
vboot: mark some more vboot1 VBSD flags as deprecated
BUG=b:124141368 TEST=make clean && make runtests BRANCH=none Change-Id: Ie00678b9045b0a93ee7d0baaf285e9aed68917c4 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1839731 Tested-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org> (cherry picked from commit a2d9c10ad4a3569e05690c396b93e7b21813b347) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1902832 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Commit-Queue: Hung-Te Lin <hungte@chromium.org> Tested-by: Hung-Te Lin <hungte@chromium.org> Auto-Submit: Hung-Te Lin <hungte@chromium.org>
-rw-r--r--firmware/include/vboot_struct.h40
1 files changed, 23 insertions, 17 deletions
diff --git a/firmware/include/vboot_struct.h b/firmware/include/vboot_struct.h
index 355e8cb9..5d633a3f 100644
--- a/firmware/include/vboot_struct.h
+++ b/firmware/include/vboot_struct.h
@@ -196,7 +196,13 @@ typedef struct VbKernelPreambleHeader {
#define VB_SHARED_DATA_MIN_SIZE 3072
#define VB_SHARED_DATA_REC_SIZE 16384
-/* Flags for VbSharedDataHeader */
+/*
+ * Flags for VbSharedDataHeader
+ *
+ * TODO(b:124141368): Move these constants into crossystem once they are
+ * no longer needed in vboot2 code.
+ */
+
/* LoadFirmware() tried firmware B because of VbNvStorage firmware B tries;
Deprecated as part of chromium:1010389. */
#define VBSD_DEPRECATED_FWB_TRIED 0x00000001
@@ -212,39 +218,39 @@ typedef struct VbKernelPreambleHeader {
* LoadFirmware() is requesting the read only normal/dev code path. This is
* deprecated and unsupported by current firmware.
*/
-#define VBSD_LF_USE_RO_NORMAL 0x00000008
+#define VBSD_DEPRECATED_LF_USE_RO_NORMAL 0x00000008
/* Developer switch was enabled at boot time */
#define VBSD_BOOT_DEV_SWITCH_ON 0x00000010
/* Recovery switch was enabled at boot time */
#define VBSD_BOOT_REC_SWITCH_ON 0x00000020
/* Firmware write protect was enabled at boot time */
#define VBSD_BOOT_FIRMWARE_WP_ENABLED 0x00000040
-/* Boot is a S3->S0 resume, not a S5->S0 normal boot */
-#define VBSD_BOOT_S3_RESUME 0x00000100
-/* Read-only firmware supports the normal/developer code path */
-#define VBSD_BOOT_RO_NORMAL_SUPPORT 0x00000200
+/* Boot is a S3->S0 resume, not a S5->S0 normal boot;
+ Deprecated as part of CL:347257. */
+#define VBSD_DEPRECATED_BOOT_S3_RESUME 0x00000100
+/* Read-only firmware supports the normal/developer code path;
+ Deprecated as part of CL:347257. */
+#define VBSD_DEPRECATED_BOOT_RO_NORMAL_SUPPORT 0x00000200
/* VbInit() was told that the system has a virtual dev-switch;
- * Deprecated as part of chromium:942901. */
+ Deprecated as part of chromium:942901. */
#define VBSD_DEPRECATED_HONOR_VIRT_DEV_SWITCH 0x00000400
/* VbInit() was told the system supports EC software sync */
#define VBSD_EC_SOFTWARE_SYNC 0x00000800
/* VbInit() was told that the EC firmware is slow to update */
#define VBSD_EC_SLOW_UPDATE 0x00001000
-/*
- * Deprecated; was firmware software write protect was enabled at boot time.
- * Crossystem support removed https://chromium-review.googlesource.com/575389.
- */
+/* Firmware software write protect was enabled at boot time.
+ Crossystem support deprecated as part of CL:575389. */
#define VBSD_DEPRECATED_BOOT_FIRMWARE_SW_WP_ENABLED 0x00002000
/* VbInit() was told that the recovery button is a virtual one */
#define VBSD_BOOT_REC_SWITCH_VIRTUAL 0x00004000
/* Firmware used vboot2 for firmware selection */
#define VBSD_BOOT_FIRMWARE_VBOOT2 0x00008000
-/* Firmware needs VGA Option ROM to display screens
- Deprecated; see chromium:948529 */
-#define VBSD_OPROM_MATTERS 0x00010000
-/* Firmware has loaded the VGA Option ROM
- Deprecated; see chromium:948529 */
-#define VBSD_OPROM_LOADED 0x00020000
+/* Firmware needs VGA Option ROM to display screens;
+ Deprecated as part of chromium:948529 */
+#define VBSD_DEPRECATED_OPROM_MATTERS 0x00010000
+/* Firmware has loaded the VGA Option ROM;
+ Deprecated as part of chromium:948529 */
+#define VBSD_DEPRECATED_OPROM_LOADED 0x00020000
/* Don't try for boot failures */
#define VBSD_NOFAIL_BOOT 0x00040000
/* VbInit() was told that the EC firmware supports EFS */