diff --git a/lib/libc/arch/i386/sys/brk.S b/lib/libc/arch/i386/sys/brk.S index ec7ee8a73e21..4e236632657c 100644 --- a/lib/libc/arch/i386/sys/brk.S +++ b/lib/libc/arch/i386/sys/brk.S @@ -34,22 +34,23 @@ * SUCH DAMAGE. * * from: @(#)brk.s 5.2 (Berkeley) 12/17/90 - * $Id: brk.S,v 1.7 1994/01/27 06:35:00 mycroft Exp $ + * $Id: brk.S,v 1.8 1994/01/27 15:08:03 mycroft Exp $ */ #if defined(SYSLIBC_SCCS) && !defined(lint) .text - .asciz "$Id: brk.S,v 1.7 1994/01/27 06:35:00 mycroft Exp $" + .asciz "$Id: brk.S,v 1.8 1994/01/27 15:08:03 mycroft Exp $" #endif /* SYSLIBC_SCCS and not lint */ #include "SYS.h" - .globl curbrk + .globl _end .globl minbrk -#if 0 -ENTRY(_brk) - jmp ok -#endif + .globl curbrk + + .data +minbrk: .long _end + .text ENTRY(brk) #ifdef PIC diff --git a/lib/libc/arch/i386/sys/sbrk.S b/lib/libc/arch/i386/sys/sbrk.S index 815fbf9b4f72..cac6c162fa14 100644 --- a/lib/libc/arch/i386/sys/sbrk.S +++ b/lib/libc/arch/i386/sys/sbrk.S @@ -34,22 +34,20 @@ * SUCH DAMAGE. * * from: @(#)sbrk.s 5.1 (Berkeley) 4/23/90 - * $Id: sbrk.S,v 1.5 1994/01/27 06:35:07 mycroft Exp $ + * $Id: sbrk.S,v 1.6 1994/01/27 15:08:05 mycroft Exp $ */ #if defined(SYSLIBC_SCCS) && !defined(lint) .text - .asciz "$Id: sbrk.S,v 1.5 1994/01/27 06:35:07 mycroft Exp $" + .asciz "$Id: sbrk.S,v 1.6 1994/01/27 15:08:05 mycroft Exp $" #endif /* SYSLIBC_SCCS and not lint */ #include "SYS.h" .globl _end - .globl minbrk .globl curbrk .data -minbrk: .long _end curbrk: .long _end .text diff --git a/lib/libc/arch/m68k/sys/brk.S b/lib/libc/arch/m68k/sys/brk.S index 0f56fb2f150f..a58c62f64ea6 100644 --- a/lib/libc/arch/m68k/sys/brk.S +++ b/lib/libc/arch/m68k/sys/brk.S @@ -38,13 +38,19 @@ #if defined(LIBC_SCCS) && !defined(lint) .text /*.asciz "from: @(#)brk.s 5.1 (Berkeley) 5/12/90"*/ - .asciz "$Id: brk.S,v 1.2 1994/01/27 14:45:53 mycroft Exp $" + .asciz "$Id: brk.S,v 1.3 1994/01/27 15:09:16 mycroft Exp $" #endif /* LIBC_SCCS and not lint */ #include "SYS.h" - .globl curbrk + .globl _end .globl minbrk + .globl curbrk + + .data +minbrk: .long _end + .text + ENTRY(brk) #ifdef PIC movl #__GLOBAL_OFFSET_TABLE_,a1 diff --git a/lib/libc/arch/m68k/sys/sbrk.S b/lib/libc/arch/m68k/sys/sbrk.S index 06759a84e436..629ae2cdb27d 100644 --- a/lib/libc/arch/m68k/sys/sbrk.S +++ b/lib/libc/arch/m68k/sys/sbrk.S @@ -38,17 +38,15 @@ #if defined(LIBC_SCCS) && !defined(lint) .text /*.asciz "from: @(#)sbrk.s 5.1 (Berkeley) 5/12/90"*/ - .asciz "$Id: sbrk.S,v 1.2 1994/01/27 14:45:54 mycroft Exp $" + .asciz "$Id: sbrk.S,v 1.3 1994/01/27 15:09:18 mycroft Exp $" #endif /* LIBC_SCCS and not lint */ #include "SYS.h" .globl _end - .globl minbrk .globl curbrk .data -minbrk: .long _end curbrk: .long _end .text