1 /****************************************************************************
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
9 * Copyright (c) 2008 Pattrick Hueper <phueper@hueper.net>
10 ****************************************************************************/
12 /* this file contains functions provided by SLOF, that the current biosemu implementation needs
13 * they should go away inthe future...
18 #include <device/device.h>
20 #include "../biosemu.h"
22 #include "../compat/time.h"
24 #define VMEM_SIZE (1024 * 1024) /* 1 MB */
26 #if !CONFIG_YABEL_DIRECTHW
27 #if CONFIG_YABEL_VIRTMEM_LOCATION
28 u8* vmem = (u8 *) CONFIG_YABEL_VIRTMEM_LOCATION;
30 u8* vmem = (u8 *) (16*1024*1024); /* default to 16MB */
36 void run_bios(struct device * dev, unsigned long addr)
39 biosemu(vmem, VMEM_SIZE, dev, addr);
46 unsigned long tb_freq = 0;
55 : "=a"(eax), "=d"(edx)
56 : /* no inputs, no clobber */);
57 act = ((u64) edx << 32) | eax;