X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/7d252e04e0509aee73505e2252a1eea2df65fae7..ea6c242bffbda5298b4def632a98b00bb6ac775d:/tools/poke-rls.c?ds=sidebyside diff --git a/tools/poke-rls.c b/tools/poke-rls.c index c6db7bc..01de181 100644 --- a/tools/poke-rls.c +++ b/tools/poke-rls.c @@ -2,6 +2,7 @@ #include #include #include +#include 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); }