X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/37e45c7c11b6af276ba23505bbdbf218ff915ed8..015cd976c6ff9a00fded2edbc617daf85b7b3ca1:/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); }