mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
entered into RCS
This commit is contained in:
parent
17fc35d638
commit
2bc551d14f
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -33,7 +33,7 @@ ___curbrk:
|
||||
|
||||
.text
|
||||
ENTRY (__brk)
|
||||
movel POUND(__end), d0
|
||||
movel #__end, d0
|
||||
cmpl sp@(4), d0
|
||||
ble 0f
|
||||
movel d0, sp@(4)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -20,7 +20,7 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
#include <sysdeps/unix/sysdep.h>
|
||||
|
||||
#define POUND(foo) (@@@Hash-Here@@@)foo
|
||||
#define POUND #
|
||||
|
||||
#ifdef __STDC__
|
||||
#define ENTRY(name) \
|
||||
@ -39,11 +39,11 @@ Cambridge, MA 02139, USA. */
|
||||
.globl syscall_error; \
|
||||
error: jmp syscall_error; \
|
||||
ENTRY (name) \
|
||||
DO_CALL (POUND (SYS_ify (syscall_name), args)
|
||||
DO_CALL (POUND SYS_ify (syscall_name), args)
|
||||
|
||||
#define DO_CALL(syscall, args) \
|
||||
movel syscall, d0; \
|
||||
trap POUND(0); \
|
||||
trap POUND 0; \
|
||||
bcs error
|
||||
|
||||
#define ret rts
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -38,7 +38,7 @@ ENTRY (__brk)
|
||||
ble 0f
|
||||
movel d0, sp@(4)
|
||||
0: pea SYS_brk
|
||||
trap POUND(0)
|
||||
trap #0
|
||||
bcs 1f
|
||||
movel sp@(4), ___curbrk
|
||||
clrl d0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -20,7 +20,7 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
#include <sysdeps/unix/sysdep.h>
|
||||
|
||||
#define POUND(foo) (@@@Hash-Here@@@)foo
|
||||
#define POUND #
|
||||
|
||||
#ifdef __STDC__
|
||||
#define ENTRY(name) \
|
||||
@ -41,7 +41,7 @@ Cambridge, MA 02139, USA. */
|
||||
error: jmp syscall_error; \
|
||||
ENTRY (name) \
|
||||
pea SYS_##syscall_name; \
|
||||
trap POUND(0); \
|
||||
trap POUND 0; \
|
||||
bcs error
|
||||
#else
|
||||
#define PSEUDO(name, syscall_name, args) \
|
||||
@ -50,7 +50,7 @@ Cambridge, MA 02139, USA. */
|
||||
error: jmp syscall_error; \
|
||||
ENTRY (name) \
|
||||
pea SYS_/**/syscall_name; \
|
||||
trap POUND(0); \
|
||||
trap POUND 0; \
|
||||
bcs error
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user