label changes, pulled down from libc

This commit is contained in:
cgd 1996-09-26 23:04:30 +00:00
parent db9418238e
commit f4888b894a
2 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: SYS.h,v 1.1 1995/02/13 21:49:13 cgd Exp $ */ /* $NetBSD: SYS.h,v 1.2 1996/09/26 23:04:30 cgd Exp $ */
/* /*
* Copyright (c) 1994, 1995 Carnegie-Mellon University. * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -33,15 +33,18 @@
#define CALLSYS(num) \ #define CALLSYS(num) \
CONST(num, v0); \ CONST(num, v0); \
call_pal 0x83; /* op_callsys */ call_pal 0x83; /* op_callsys */
#define SYSCALL_NOLABEL(x) \ #define SYSCALL_NOLABEL(x) \
.set noat; \
CALLSYS(SYS_/**/x); \ CALLSYS(SYS_/**/x); \
beq a3, 9f; \ br gp, L8000; \
br gp, 8f; \ L8000: \
8: SETGP(gp); \ SETGP(gp); \
beq a3, L8001; \
lda at_reg, cerror; \ lda at_reg, cerror; \
jmp zero, (at_reg); \ jmp zero, (at_reg); \
9: L8001: \
.set at
#define SYSCALL(x) LEAF(x, 0 /* XXX */); SYSCALL_NOLABEL(x); #define SYSCALL(x) LEAF(x, 0 /* XXX */); SYSCALL_NOLABEL(x);
#define RSYSCALL(x) SYSCALL(x); RET; END(x); #define RSYSCALL(x) SYSCALL(x); RET; END(x);

View File

@ -1,4 +1,4 @@
/* $NetBSD: divrem.m4,v 1.3 1995/10/20 00:53:28 cgd Exp $ */ /* $NetBSD: divrem.m4,v 1.4 1996/09/26 23:04:31 cgd Exp $ */
/* /*
* Copyright (c) 1994, 1995 Carnegie-Mellon University. * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -112,7 +112,7 @@ ifelse(WORDSIZE, `32', `
/* kill the special cases. */ /* kill the special cases. */
beq B, Ldotrap /* division by zero! */ beq B, Ldotrap /* division by zero! */
1: cmpult A, B, CC /* A < B? */ cmpult A, B, CC /* A < B? */
/* RESULT is already zero, from above. A is untouched. */ /* RESULT is already zero, from above. A is untouched. */
bne CC, Lret_result bne CC, Lret_result