From 2b2f849b537db935453694e863f9b4f73efbbff5 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 8 Jul 2014 15:32:02 +0200 Subject: [PATCH] YABEL: Initialize global `biosmem` pointer for VBE The global pointer `biosmem` defined in vbe.c was never set. Thus, VBE calls didn't work within YABEL. Change-Id: I63c1c77755f9c442cfec227a495332595ce2b70c Signed-off-by: Nico Huber Reviewed-on: http://review.coreboot.org/6250 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- src/device/oprom/yabel/compat/functions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/device/oprom/yabel/compat/functions.c b/src/device/oprom/yabel/compat/functions.c index 2c3dc33fc4..27d0413b8f 100644 --- a/src/device/oprom/yabel/compat/functions.c +++ b/src/device/oprom/yabel/compat/functions.c @@ -33,8 +33,11 @@ u8* vmem = (u8 *) (16*1024*1024); /* default to 16MB */ u8* vmem = NULL; #endif +extern u8 *biosmem; + void run_bios(struct device * dev, unsigned long addr) { + biosmem = vmem; biosemu(vmem, VMEM_SIZE, dev, addr);