• Akshat Kumar's avatar
    syscall: Plan9, amd64: fix syscall error handling in assembly · b6e322dc
    Akshat Kumar authored
    Syscalls return `-1' on error and the representation is always
    32-bits. The `$-1' literal in 64-bit assembly is always the
    64-bit representation. So this change makes sure that we
    always do a 32-bit comparison when checking for error.
    Also makes sure that in the error case, we return a 64-bit
    `-1' from runtime.seek.
    
    Fixes the arithmetic for handling the error-string in
    runtime.Syscall6.
    
    R=golang-dev, rminnich, rsc, ality, minux.ma
    CC=golang-dev
    https://golang.org/cl/7399052
    b6e322dc
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...