plan9front/sys/src/cmd/snap
cinap_lenrek 434de8db8d snap: use Mach->szaddr as the width of the stack pointer (fixes snap on amd64)
to read the value of the stack pointer register, snap
used Machdata->szreg to determine the width of the
SP register in the Ureg structure. however, the value
does not match the Ureg.sp type for a number of architectures
(mips2, amd64) and it is unclear if this was an oversight
as it is rarely used (snap is indeed the only user) or
if it was intended for a different purpose.

so we use szaddr instead which matches the stack pointer
width in the Ureg and fixes the truncated stack issue on
amd64.
2018-11-22 20:27:27 +01:00
..
mkfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
read.c snap: add debug flag, make debug less verbose 2018-11-22 15:09:54 +01:00
snap.c snap: add debug flag, make debug less verbose 2018-11-22 15:09:54 +01:00
snap.h snap: fix readseg() to cope with > 2gb segments 2015-03-07 15:21:01 +01:00
snapfs.c snap: add debug flag, make debug less verbose 2018-11-22 15:09:54 +01:00
take.c snap: use Mach->szaddr as the width of the stack pointer (fixes snap on amd64) 2018-11-22 20:27:27 +01:00
util.c snap: check for overflows, cleanup error handling 2018-11-22 12:44:15 +01:00
write.c snap: consequently use ulong for page index and count 2018-11-22 10:31:30 +01:00