]>
Commit | Line | Data |
---|---|---|
4bea7daf JW |
1 | char counter = 0; |
2 | ||
3 | #define outb(port, val) \ | |
4 | ({ asm volatile("outb %0, %%dx" : : "a" ((unsigned char)(val)) , "d" ((unsigned short)(port))); }) | |
5 | ||
015cd976 JW |
6 | void __start (void) |
7 | { | |
4bea7daf JW |
8 | counter++; |
9 | outb (0x80, counter); | |
10 | } | |
11 |