]> Joshua Wise's Git repositories - netwatch.git/blobdiff - tools/poke-rls.c
Convert the poker to not bother to wait.
[netwatch.git] / tools / poke-rls.c
index c6db7bccdde5223c10d113e331a307c816803512..01de181bf1e5497ca8e248a8fd7277bef32cf0a3 100644 (file)
@@ -2,6 +2,7 @@
 #include <reg-82801b.h>
 #include <string.h>
 #include <stdint.h>
+#include <stdlib.h>
 
 static uint16_t _get_PMBASE()
 {
@@ -14,7 +15,7 @@ static uint16_t _get_PMBASE()
 }
 
 
-extern unsigned int poke(short addr);
+extern unsigned int poke(unsigned long addr);
 
 int main(int argc, char **argv)
 {
@@ -25,7 +26,7 @@ int main(int argc, char **argv)
                perror("iopl");
                return 1;
        }
-
+       
        res = poke(_get_PMBASE() + 0x04);
        printf("found %p\n", res);
 }
This page took 0.023553 seconds and 4 git commands to generate.