[coreboot-gerrit] Change in coreboot[master]: drivers/elog: Clear mirror_buffer

John E. Kabat Jr. (Code Review) gerrit at coreboot.org
Wed Nov 15 03:33:56 CET 2017


John E. Kabat Jr. has uploaded this change for review. ( https://review.coreboot.org/22465


Change subject: drivers/elog: Clear mirror_buffer
......................................................................

drivers/elog: Clear mirror_buffer

Initialize mirror_buffer to 0xff in elog_init in elog.c to match erased
flash state.

Change-Id: I713a48a9c302e0bc9a5fbd5f8add737d4d2f157a
Signed-off-by: John E. Kabat Jr <john.kabat at scarletltd.com>
---
M src/drivers/elog/elog.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/22465/1

diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c
index c8f221a..377769c 100644
--- a/src/drivers/elog/elog.c
+++ b/src/drivers/elog/elog.c
@@ -766,6 +766,7 @@
 		printk(BIOS_ERR, "ELOG: Unable to allocate backing store\n");
 		return -1;
 	}
+	memset(mirror_buffer, ELOG_TYPE_EOL, elog_size);
 	mem_region_device_rw_init(&mirror_dev, mirror_buffer, elog_size);
 
 	/*

-- 
To view, visit https://review.coreboot.org/22465
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I713a48a9c302e0bc9a5fbd5f8add737d4d2f157a
Gerrit-Change-Number: 22465
Gerrit-PatchSet: 1
Gerrit-Owner: John E. Kabat Jr. <john.kabat at scarletltd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171115/9be7bb18/attachment.html>


More information about the coreboot-gerrit mailing list