- Update the test cases for romcc
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@817 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
18
util/romcc/tests/simple_test16.c
Normal file
18
util/romcc/tests/simple_test16.c
Normal file
@@ -0,0 +1,18 @@
|
||||
typedef unsigned char uint8_t;
|
||||
typedef unsigned short uint16_t;
|
||||
typedef unsigned int uint32_t;
|
||||
|
||||
|
||||
static void outb(uint8_t value, uint16_t port)
|
||||
{
|
||||
__builtin_outb(value, port);
|
||||
}
|
||||
|
||||
|
||||
static void main(void)
|
||||
{
|
||||
uint32_t i;
|
||||
for(i = 0; i < 32; i++) {
|
||||
outb(i, 0x80);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user