X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/4bea7daf0e70a1540b8533c8253c197bb282416e..ff4dc66d05141fdf63ad1c9c4e8f6a4aa5397119:/aseg/counter.c diff --git a/aseg/counter.c b/aseg/counter.c index 891c075..edad021 100644 --- a/aseg/counter.c +++ b/aseg/counter.c @@ -3,7 +3,8 @@ char counter = 0; #define outb(port, val) \ ({ asm volatile("outb %0, %%dx" : : "a" ((unsigned char)(val)) , "d" ((unsigned short)(port))); }) -void __start (void) { +void __start (void) +{ counter++; outb (0x80, counter); }