summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2014-07-08 15:32:02 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-07-11 09:23:18 +0200
commit2b2f849b537db935453694e863f9b4f73efbbff5 (patch)
tree0fafd3a1376243f271add166a0a9b94b0deb2105 /src/device
parentf6e1cbec2a68211225c6281b1f451173de688f44 (diff)
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 <nico.huber@secunet.com> Reviewed-on: http://review.coreboot.org/6250 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/oprom/yabel/compat/functions.c3
1 files changed, 3 insertions, 0 deletions
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);