]> Joshua Wise's Git repositories - netwatch.git/blob - aseg/counter.c
edad0217a4a258607d1b55b992ba64c697a176ca
[netwatch.git] / aseg / counter.c
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
6 void __start (void)
7 {
8         counter++;
9         outb (0x80, counter);
10 }
11
This page took 0.021848 seconds and 2 git commands to generate.