add LINTSTUBs

This commit is contained in:
perry 2001-05-21 06:13:12 +00:00
parent c8057dc287
commit cdc294674b
8 changed files with 34 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apmcall.s,v 1.7 1999/12/08 16:46:33 joda Exp $ */
/* $NetBSD: apmcall.s,v 1.8 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -43,6 +43,9 @@
#include "opt_apm.h"
/* LINTSTUB: include <machine/bioscall.h> */
/* LINTSTUB: include <machine/apmvar.h> */
/*
* int apmcall(int function, struct bioscallregs *regs):
* call the APM protected mode bios function FUNCTION for BIOS selection
@ -58,6 +61,7 @@ apmstatus: .long 0
#endif
_C_LABEL(apm_disable_interrupts): .long APM_DISABLE_INTERRUPTS
.text
/* LINTSTUB: Func: int apmcall(int function, struct bioscallregs *regs) */
NENTRY(apmcall)
pushl %ebp
movl %esp,%ebp

View File

@ -1,4 +1,4 @@
/* $NetBSD: bioscall.s,v 1.4 1998/12/01 04:30:59 thorpej Exp $ */
/* $NetBSD: bioscall.s,v 1.5 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -40,6 +40,8 @@
#include <machine/asm.h>
/* LINTSTUB: include <machine/bioscall.h> */
.globl _C_LABEL(PTDpaddr) /* from locore.s */
_C_LABEL(biostramp_image):
@ -63,6 +65,7 @@ _C_LABEL(biostramp_image_size):
*
* Fills in *regs with registers as returned by BIOS.
*/
/* LINTSTUB: Func: void bioscall(int function, struct bioscallregs *regs) */
NENTRY(bioscall)
pushl %ebp
movl %esp,%ebp /* set up frame ptr */

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_sigcode.s,v 1.1 2000/11/26 11:18:20 jdolecek Exp $ */
/* $NetBSD: freebsd_sigcode.s,v 1.2 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -85,6 +85,7 @@
/*
* Signal trampoline; copied to top of user stack.
*/
/* LINTSTUB: Var: char freebsd_sigcode[1], freebsd_esigcode[1]; */
NENTRY(freebsd_sigcode)
call FREEBSD_SIGF_HANDLER(%esp)
leal FREEBSD_SIGF_SC(%esp),%eax # scp (the call may have clobbered

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibcs2_sigcode.s,v 1.1 2000/11/26 11:18:20 jdolecek Exp $ */
/* $NetBSD: ibcs2_sigcode.s,v 1.2 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -83,6 +83,7 @@
#include <machine/asm.h>
#include <compat/ibcs2/ibcs2_syscall.h>
/* LINTSTUB: Var: char ibcs2_sigcode[1], ibcs2_esigcode[1]; */
NENTRY(ibcs2_sigcode)
call SIGF_HANDLER(%esp)
leal SIGF_SC(%esp),%eax # scp (the call may have clobbered the

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_cksum.s,v 1.13 2001/05/19 00:36:37 thorpej Exp $ */
/* $NetBSD: in_cksum.s,v 1.14 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -72,6 +72,11 @@
#include <machine/asm.h>
#include "assym.h"
/* LINTSTUB: include <sys/types.h> */
/* LINTSTUB: include <machine/param.h> */
/* LINTSTUB: include <sys/mbuf.h> */
/* LINTSTUB: include <netinet/in.h> */
/*
* Checksum routine for Internet Protocol family headers.
*
@ -119,6 +124,9 @@
addw %dx, %ax ; \
adcw $0, %ax
/* XXX There should really be a section 9 for this. --PM, May 21, 2001 */
/* XXX The prototype below deserves better parameter names. */
/* LINTSTUB: Func: int in4_cksum(struct mbuf *m, u_int8_t i, int j, int k) */
ENTRY(in4_cksum)
pushl %ebp
pushl %ebx
@ -163,6 +171,9 @@ mbuf_loop_0:
jmp in4_entry
/* XXX There should really be a section 9 for this. --PM, May 21, 2001 */
/* XXX The prototype below deserves better parameter names. */
/* LINTSTUB: Func: int in_cksum(struct mbuf *m, int i) */
ENTRY(in_cksum)
pushl %ebp
pushl %ebx

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_sigcode.s,v 1.1 2000/11/26 11:18:20 jdolecek Exp $ */
/* $NetBSD: linux_sigcode.s,v 1.2 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -90,6 +90,7 @@
/*
* Signal trampoline; copied to top of user stack.
*/
/* LINTSTUB: Var: char linux_sigcode[1], linux_esigcode[1]; */
NENTRY(linux_sigcode)
call LINUX_SIGF_HANDLER(%esp)
leal LINUX_SIGF_SC(%esp),%ebx # scp (the call may have clobbered the
@ -110,6 +111,7 @@ NENTRY(linux_sigcode)
.globl _C_LABEL(linux_esigcode)
_C_LABEL(linux_esigcode):
/* LINTSTUB: Var: char linux_rt_sigcode[1], linux_rt_esigcode[1]; */
NENTRY(linux_rt_sigcode)
call LINUX_SIGF_HANDLER(%esp)
leal LINUX_SIGF_SC(%esp),%ebx # scp (the call may have clobbered the

View File

@ -1,4 +1,4 @@
/* $NetBSD: microtime.s,v 1.18 1998/12/01 04:31:01 thorpej Exp $ */
/* $NetBSD: microtime.s,v 1.19 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1993 The Regents of the University of California.
@ -37,9 +37,12 @@
#include <dev/isa/isareg.h>
#include <i386/isa/timerreg.h>
/* LINTSTUB: include <sys/time.h> */
#define IRQ_BIT(irq_num) (1 << ((irq_num) % 8))
#define IRQ_BYTE(irq_num) ((irq_num) / 8)
/* LINTSTUB: Func: void microtime(struct timeval *tv) */
ENTRY(microtime)
# clear registers and do whatever we can up front
pushl %edi

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_sigcode.s,v 1.1 2000/11/26 11:18:21 jdolecek Exp $ */
/* $NetBSD: svr4_sigcode.s,v 1.2 2001/05/21 06:13:12 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -143,7 +143,7 @@
/*
* Signal trampoline; copied to top of user stack.
*/
/* LINTSTUB: Var: char svr4_sigcode[1], svr4_esigcode[1]; */
NENTRY(svr4_sigcode)
call SVR4_SIGF_HANDLER(%esp)
leal SVR4_SIGF_UC(%esp),%eax # ucp (the call may have clobbered the