blob: 0620f1a1d4d34c375d14ec4ee9d9379101836801 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}
}
|