]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/kw/syscall.c
pc64: fix note handling
[plan9front.git] / sys / src / 9 / kw / syscall.c
index fc148dee9589b4d8a5921d5cf53a6c161e8efcb3..8ef7a0edf74e6f3edf275866d77056ce83708d48 100644 (file)
@@ -261,7 +261,7 @@ syscall(Ureg* ureg)
        up->psstate = 0;
 
        if(scallnr == NOTED)
-               noted(ureg, up->s.args[0]);
+               noted(ureg, *((ulong*)up->s.args));
 
        splhi();
        if(scallnr != RFORK && (up->procctl || up->nnote))