From 40ef304bcf5b467938941c9f5d538fcb33a9dca4 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 7 Jun 1988 12:17:00 +0000 Subject: [PATCH] prevent core dump when e.out file too large --- mach/pdp/int/em_int.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mach/pdp/int/em_int.s b/mach/pdp/int/em_int.s index e309f36ce..6b6bfaa2c 100644 --- a/mach/pdp/int/em_int.s +++ b/mach/pdp/int/em_int.s @@ -189,9 +189,10 @@ emfile: mul $3,r3 / or 12 bytes .endif add r3,r0 / reserve space - mov r0,eb / top of pd space + mov r0,hp / top of pd space, temporarily in hp mov r0,r3 / base for data fill + mov $retsize,eb / address of value containing 0, temporarily add szdata,r0 / size of external data jcs toolarge / too much text and data mov r0,globmax / maximum global @@ -200,6 +201,7 @@ emfile: sys indir;sybreak / ask for the core jes toolarge / too much, sorry + mov hp,eb / top of pd space mov txtsiz,leescal+4 / set up for text read mov pb,leescal+2 / start address text read mov r5,r0 / file descriptor input @@ -1659,7 +1661,7 @@ cfu.z: .endif mov $4,-(sp) mov r1,-(sp) - jbr cuu_z + jbr cuu.z /------- cfi.z: mov (sp)+,r0 -- 2.34.1