projects
/
coreboot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add support for AMD IMC controller.
[coreboot.git]
/
util
/
romcc
/
tests
/
simple_test13.c
1
static void outb(unsigned char value, unsigned short port)
2
{
3
__builtin_outb(value, port);
4
}
5
6
static void uart_init(void)
7
{
8
9
int a;
10
if (1 == 1) {
11
a = 1;
12
outb(a, 0x3f8);
13
} else {
14
a = 2;
15
outb(a, 0x3f8);
16
}
17
outb(a, 0x3f8);
18
}
19
20
static void main(void)
21
{
22
uart_init();
23
}