diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-05-08 00:31:34 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-05-08 00:31:34 +0000 |
commit | ba8c25affb3178006435fd54c2ddef51587cc1bf (patch) | |
tree | 218b88e60ac54786234f37adc3356c0f295fe770 /util/romcc/tests/simple_test16.c | |
parent | ab2ea6b474b6584b8e12eb2b6ac698de05d5efc9 (diff) | |
download | coreboot-ba8c25affb3178006435fd54c2ddef51587cc1bf.tar.xz |
- Update the test cases for romcc
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@817 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc/tests/simple_test16.c')
-rw-r--r-- | util/romcc/tests/simple_test16.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test16.c b/util/romcc/tests/simple_test16.c new file mode 100644 index 0000000000..0620f1a1d4 --- /dev/null +++ b/util/romcc/tests/simple_test16.c @@ -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); + } +} |