[SLOF] [PATCH v2 20/20] make last entry in log appear

Stefan Berger stefanb at us.ibm.com
Wed Nov 18 04:02:36 AEDT 2015


From: Stefan Berger <stefanb at linux.vnet.ibm.com>

Due to the off-by-one error in Linux, we need to add a 1 to the
actual size of the log.
---
 board-qemu/slof/vtpm-sml.fs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board-qemu/slof/vtpm-sml.fs b/board-qemu/slof/vtpm-sml.fs
index 9e5523e..00bfce6 100644
--- a/board-qemu/slof/vtpm-sml.fs
+++ b/board-qemu/slof/vtpm-sml.fs
@@ -42,6 +42,7 @@ log-base LOG-SIZE tpm-set-log-parameters
     vtpm-debug? IF
         ." Call to sml-get-handover-size; size = " dup . cr
     THEN
+    1 +
 ;
 
 : sml-handover ( dest size -- )
-- 
2.4.3



More information about the SLOF mailing list