git-svn-id: svn://svn.coreboot.org/coreboot/trunk@783 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
		
			
				
	
	
		
			24 lines
		
	
	
		
			283 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			283 B
		
	
	
	
		
			C
		
	
	
	
	
	
static void outb(unsigned char value, unsigned short port)
 | 
						|
{
 | 
						|
        __builtin_outb(value, port);
 | 
						|
}
 | 
						|
 | 
						|
static void uart_init(void)
 | 
						|
{
 | 
						|
 | 
						|
	int a;
 | 
						|
	if (1 == 1) {
 | 
						|
		a = 1;
 | 
						|
		outb(a, 0x3f8);
 | 
						|
	} else {
 | 
						|
		a = 2;
 | 
						|
		outb(a, 0x3f8);
 | 
						|
	}
 | 
						|
	outb(a, 0x3f8);
 | 
						|
}
 | 
						|
 | 
						|
static void main(void)
 | 
						|
{
 | 
						|
	uart_init();
 | 
						|
}
 |