X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/4bea7daf0e70a1540b8533c8253c197bb282416e..8f946ddedda18836cfc4846e8496b30772503267:/aseg/counter.c?ds=sidebyside 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); }