From 551e1fe06fc59cb2cba7fd38f970cb48fc811086 Mon Sep 17 00:00:00 2001 From: Hal Tsai Date: Thu, 19 Apr 2018 13:52:33 +0800 Subject: [PATCH] device/oprom/yabel: Fix vbe-buffer index in vbe.c There's a issue about {VbeSignature to "VBE2" to indicate VBE 2.0+ request}, these indexes are counted wrong. Change-Id: I8ec85df60076162518aa55a94fa7b66c0c2391ab Signed-off-by: Hal Tsai Reviewed-on: https://review.coreboot.org/25736 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/device/oprom/yabel/vbe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device/oprom/yabel/vbe.c b/src/device/oprom/yabel/vbe.c index 876df23dc1..4995a028ef 100644 --- a/src/device/oprom/yabel/vbe.c +++ b/src/device/oprom/yabel/vbe.c @@ -75,9 +75,9 @@ vbe_prepare(void) memset(vbe_info_buffer, 0, 512); //set VbeSignature to "VBE2" to indicate VBE 2.0+ request vbe_info_buffer[0] = 'V'; - vbe_info_buffer[0] = 'B'; - vbe_info_buffer[0] = 'E'; - vbe_info_buffer[0] = '2'; + vbe_info_buffer[1] = 'B'; + vbe_info_buffer[2] = 'E'; + vbe_info_buffer[3] = '2'; // ES:DI store pointer to buffer in virtual mem see vbe_info_buffer above... M.x86.R_EDI = 0x0; M.x86.R_ES = VBE_SEGMENT;