diff options
author | Hal Tsai <hal_tsai@compal.corp-partner.google.com> | 2018-04-19 13:52:33 +0800 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-04-20 11:44:30 +0000 |
commit | 551e1fe06fc59cb2cba7fd38f970cb48fc811086 (patch) | |
tree | afe3bd3e5ecff7a6955a5cf30d8708b88708ff5d /src/device/oprom | |
parent | 39c4bb0211356f951614e619a90215e08efd1c5f (diff) | |
download | coreboot-551e1fe06fc59cb2cba7fd38f970cb48fc811086.tar.xz |
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 <hal_tsai@compal.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/25736
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/device/oprom')
-rw-r--r-- | src/device/oprom/yabel/vbe.c | 6 |
1 files 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; |