aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2002-12-21 19:36:29 +0000
committerAndreas Schwab <schwab@suse.de>2002-12-21 19:36:29 +0000
commitd68f861c07cec66da338a7396fccfe28c5187008 (patch)
tree44cdf43809619e331c636a1403923e9f3cf684c6 /sysdeps
parentc025bbf60963f0d15ee845724a7d9004b5928b2b (diff)
downloadglibc-d68f861c07cec66da338a7396fccfe28c5187008.tar
glibc-d68f861c07cec66da338a7396fccfe28c5187008.tar.gz
glibc-d68f861c07cec66da338a7396fccfe28c5187008.tar.bz2
glibc-d68f861c07cec66da338a7396fccfe28c5187008.zip
Use INTERNAL_SYSCALL.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/m68k/brk.c11
-rw-r--r--sysdeps/unix/sysv/linux/m68k/getpagesize.c4
2 files changed, 3 insertions, 12 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/brk.c b/sysdeps/unix/sysv/linux/m68k/brk.c
index d02b1f9a29..adf6c64854 100644
--- a/sysdeps/unix/sysv/linux/m68k/brk.c
+++ b/sysdeps/unix/sysv/linux/m68k/brk.c
@@ -33,16 +33,7 @@ __brk (void *addr)
{
void *newbrk;
- {
- register long d0 __asm__ ("%d0");
-
- asm ("move%.l %2, %%d1\n"
- "trap #0" /* Perform the system call. */
- : "=d" (d0)
- : "0" (SYS_ify (brk)), "g" (addr)
- : "%d1");
- newbrk = (void *) d0;
- }
+ newbrk = INTERNAL_SYSCALL (brk, 1, addr);
__curbrk = newbrk;
if (newbrk < addr)
diff --git a/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
index 6645e2b472..266d81daed 100644
--- a/sysdeps/unix/sysv/linux/m68k/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
@@ -37,9 +37,9 @@ __getpagesize ()
return GL(dl_pagesize);
#ifdef __NR_getpagesize
- result = INLINE_SYSCALL (getpagesize, 0);
+ result = INTERNAL_SYSCALL (getpagesize, 0);
/* The only possible error is ENOSYS. */
- if (result != -1)
+ if (!INTERNAL_SYSCALL_ERROR_P (result))
return result;
#endif