Eric Biederman | b138ac8 | 2003-04-22 18:44:01 +0000 | [diff] [blame] | 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 | } |