From 1546ac12356fce6454af38f280dd3bf942299307 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 6 Nov 1989 11:35:52 +0000 Subject: [PATCH] fixed: send ended up in data segment! --- mach/minix/libsys/head_em.s | 8 +------- mach/minix/libsys/sendrec.s | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/mach/minix/libsys/head_em.s b/mach/minix/libsys/head_em.s index 31daf229b..1af9ce0f5 100644 --- a/mach/minix/libsys/head_em.s +++ b/mach/minix/libsys/head_em.s @@ -3,7 +3,6 @@ .define begtext,begdata,begbss .define hol0,.reghp,.limhp,.trppc,.ignmask .define ERANGE,ESET,EHEAP,ECASE,EILLINS,EIDIVZ,EODDZ -.extern _end ERANGE = 1 ESET = 2 @@ -26,6 +25,7 @@ begtext: push bx push cx xor bp,bp + add sp,6 call _m_a_i_n call _exit .sect .data @@ -33,12 +33,6 @@ begdata: hol0: .data2 0,0 .data2 0,0 -argv: - .data2 3f -envp: - .data2 0 -3: - .asciz "PROGRAM" .reghp: .data2 endbss .limhp: diff --git a/mach/minix/libsys/sendrec.s b/mach/minix/libsys/sendrec.s index 9e6609362..5ff38210d 100644 --- a/mach/minix/libsys/sendrec.s +++ b/mach/minix/libsys/sendrec.s @@ -12,6 +12,8 @@ SYSVEC = 32 !*========================================================================* ! send(), receive(), sendrec() all save bp, but destroy ax, bx, and cx. +.sect .text + _send: mov cx,SEND ! send(dest, ptr) jmp L0 -- 2.34.1