summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-03-22 05:10:48 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-03-22 05:10:48 (GMT)
commitf607910df425aef3bffb99655cccaf99f74d310a (patch)
tree7aa1346f1cc07242c2e140ce208314d0ed4c118b
parent4d8763a20a0205602234a151c934a750fca51392 (diff)
downloadvirtio9p-f607910df425aef3bffb99655cccaf99f74d310a.zip
virtio9p-f607910df425aef3bffb99655cccaf99f74d310a.tar.gz
virtio9p-f607910df425aef3bffb99655cccaf99f74d310a.tar.bz2
virtio9p-f607910df425aef3bffb99655cccaf99f74d310a.tar.xz
pathname: save/restore %si
It doesn't make too much sense to clobber %si...
-rw-r--r--pathname.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/pathname.asm b/pathname.asm
index 0e801b9..469e607 100644
--- a/pathname.asm
+++ b/pathname.asm
@@ -85,6 +85,7 @@ GPROC(genpath)
pushw %bx /* -2(%bp) - end of string */
pushw %di /* -4(%bp) - chunk count pointer */
pushw %ax /* -6(%bp) */
+ pushw %si
#ifdef DEBUG
debugmsg "P: "
@@ -134,6 +135,7 @@ GPROC(genpath)
incw (%bx)
jmp 1b
4:
+ popw %si
popw %ax
popw %bx /* Drop saved %di */
popw %bx