coreboot-libre-fam15h-rdimm/util/romcc/tests/simple_test16.c

19 lines
274 B
C
Raw Normal View History

2024-03-04 11:14:53 +01:00
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);
}
}