summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-x86/rom.c
blob: 65c2644599e750bd0062446074569e9e28945ee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <stdint.h>
#include <device/pci_def.h>
#include <device/pci_ids.h>
#include <arch/io.h>
#include <device/pnp_def.h>
#include <arch/hlt.h>
#include <console/console.h>
#include <cbfs.h>

/*
 */
void udelay(int usecs) 
{
	int i;
	for(i = 0; i < usecs; i++)
		outb(i&0xff, 0x80);
}

void main(void)
{
	int i;
	void uart_init(void);
	void (*start_address)();
	outb(5, 0x80);
	
	uart_init();
	start_address = cbfs_load_stage("fallback/coreboot_ram");
	start_address();
	
}