summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2015-07-22 11:49:17 -0700
committerDaisuke Nojiri <dnojiri@chromium.org>2015-07-23 00:10:22 +0200
commit5d8ef4c66173095ecad58c5b5734e9f28340d61a (patch)
tree89e6f50fb4731e7b3b05537bc5a83c10aa275a2c /src/vendorcode
parentdf5446196cd81c4a714f45f92fb379c795c1edb5 (diff)
vboot: set software write protect flag
TEST=built for samus and veyron_jerry Change-Id: I7173f46d2ed2e323bff227a484c32c4bb6f6c828 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: http://review.coreboot.org/11028 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/google/chromeos/vboot2/vboot_handoff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c b/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
index 955d72fa43..c8ba114b0c 100644
--- a/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
+++ b/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
@@ -38,8 +38,6 @@
/**
* Sets vboot_handoff based on the information in vb2_shared_data
- *
- * TODO: Add VBSD_BOOT_FIRMWARE_SW_WP_ENABLED logic
*/
static void fill_vboot_handoff(struct vboot_handoff *vboot_handoff,
struct vb2_shared_data *vb2_sd)
@@ -63,6 +61,8 @@ static void fill_vboot_handoff(struct vboot_handoff *vboot_handoff,
if (get_write_protect_state())
vb_sd->flags |= VBSD_BOOT_FIRMWARE_WP_ENABLED;
+ if (vboot_get_sw_write_protect())
+ vb_sd->flags |= VBSD_BOOT_FIRMWARE_SW_WP_ENABLED;
if (vb2_sd->recovery_reason) {
vb_sd->firmware_index = 0xFF;