De-orbit DEFS.h - the other arches do not use it, and it got replaced
with <machine/asm.h>. Reviewed by: bde
This commit is contained in:
parent
88f5f7ac50
commit
e6d808aee3
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
#define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
|
||||
ENTRY(__CONCAT(__sys_,x)); \
|
||||
|
@ -49,7 +49,7 @@
|
||||
* The previous signal state is NOT restored.
|
||||
*/
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(_setjmp)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -49,7 +49,6 @@
|
||||
* The previous signal state is restored.
|
||||
*/
|
||||
|
||||
#include "DEFS.h"
|
||||
#include "SYS.h"
|
||||
|
||||
ENTRY(setjmp)
|
||||
|
@ -39,7 +39,6 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include "SYS.h"
|
||||
|
||||
/*-
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* netorder = htonl(hostorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(htonl)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* netorder = htons(hostorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(htons)
|
||||
movzwl 4(%esp),%eax
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* hostorder = ntohl(netorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(ntohl)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* hostorder = ntohs(netorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(ntohs)
|
||||
movzwl 4(%esp),%eax
|
||||
|
@ -39,7 +39,6 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* SYSLIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include "SYS.h"
|
||||
|
||||
/*
|
||||
|
@ -1,41 +0,0 @@
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to Berkeley by
|
||||
* William Jolitz.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by the University of
|
||||
* California, Berkeley and its contributors.
|
||||
* 4. Neither the name of the University nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)DEFS.h 5.1 (Berkeley) 4/23/90
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
#define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
|
||||
ENTRY(__CONCAT(__sys_,x)); \
|
||||
|
@ -49,7 +49,7 @@
|
||||
* The previous signal state is NOT restored.
|
||||
*/
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(_setjmp)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* like alloc, but automatic automatic free in return */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(alloca)
|
||||
popl %edx /* pop return addr */
|
||||
|
@ -39,7 +39,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(fabs)
|
||||
fldl 4(%esp)
|
||||
|
@ -49,7 +49,7 @@
|
||||
|
||||
/* With CHOP mode on, frndint behaves as TRUNC does. Useful. */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(modf)
|
||||
pushl %ebp
|
||||
|
@ -49,7 +49,6 @@
|
||||
* The previous signal state is restored.
|
||||
*/
|
||||
|
||||
#include "DEFS.h"
|
||||
#include "SYS.h"
|
||||
|
||||
ENTRY(setjmp)
|
||||
|
@ -39,7 +39,6 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include "SYS.h"
|
||||
|
||||
/*-
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* netorder = htonl(hostorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(htonl)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* netorder = htons(hostorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(htons)
|
||||
movzwl 4(%esp),%eax
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* hostorder = ntohl(netorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(ntohl)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
/* hostorder = ntohs(netorder) */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(ntohs)
|
||||
movzwl 4(%esp),%eax
|
||||
|
@ -39,7 +39,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(abs)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(div)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -39,7 +39,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(labs)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(ldiv)
|
||||
movl 4(%esp),%eax
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* bcmp (void *b1, void *b2, size_t len)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* bzero (void *b, size_t len)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* ffs(value)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* index(s, c)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* memchr (b, c, len)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* memcmp (void *b1, void *b2, size_t len)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* memset(void *b, int c, size_t len)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* rindex(s, c)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* strcat(s, append)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* strchr(s, c)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* strcmp(s1, s2)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* strcpy (dst, src)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* strlen (s)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* strncmp(s1, s2, n)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* strrchr(s, c)
|
||||
|
@ -33,7 +33,7 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif
|
||||
|
||||
#include "DEFS.h"
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* void
|
||||
|
@ -39,7 +39,6 @@
|
||||
.asciz "$FreeBSD$"
|
||||
#endif /* SYSLIBC_RCS and not lint */
|
||||
|
||||
#include "DEFS.h"
|
||||
#include "SYS.h"
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user