Deleted Added
full compact
support.s (44924) support.s (45140)
1/*-
2 * Copyright (c) 1993 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*-
2 * Copyright (c) 1993 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $Id: support.s,v 1.60 1999/01/09 17:29:38 bde Exp $
33 * $Id: support.s,v 1.61 1999/03/21 12:30:50 phk Exp $
34 */
35
36#include "npx.h"
37
38#include <machine/asmacros.h>
39#include <machine/cputypes.h>
40#include <machine/pmap.h>
41#include <machine/specialreg.h>

--- 1567 unchanged lines hidden (view full) ---

1609 movl 16(%eax),%edi /* restore edi */
1610 movl 20(%eax),%edx /* get rta */
1611 movl %edx,(%esp) /* put in return frame */
1612 xorl %eax,%eax /* return(1); */
1613 incl %eax
1614 ret
1615
1616/*
34 */
35
36#include "npx.h"
37
38#include <machine/asmacros.h>
39#include <machine/cputypes.h>
40#include <machine/pmap.h>
41#include <machine/specialreg.h>

--- 1567 unchanged lines hidden (view full) ---

1609 movl 16(%eax),%edi /* restore edi */
1610 movl 20(%eax),%edx /* get rta */
1611 movl %edx,(%esp) /* put in return frame */
1612 xorl %eax,%eax /* return(1); */
1613 incl %eax
1614 ret
1615
1616/*
1617 * Here for doing BB-profiling (gcc -a).
1617 * Support for BB-profiling (gcc -a). The kernbb program will extract
1618 * the data from the kernel.
1618 */
1619
1620 .data
1619 */
1620
1621 .data
1622 ALIGN_DATA
1621 .globl bbhead
1622bbhead:
1623 .long 0
1623 .globl bbhead
1624bbhead:
1625 .long 0
1626
1624 .text
1625NON_GPROF_ENTRY(__bb_init_func)
1626 movl 4(%esp),%eax
1627 movl $1,(%eax)
1628 movl bbhead,%edx
1629 movl %edx,16(%eax)
1630 movl %eax,bbhead
1631 .byte 0xc3 /* avoid macro for `ret' */
1627 .text
1628NON_GPROF_ENTRY(__bb_init_func)
1629 movl 4(%esp),%eax
1630 movl $1,(%eax)
1631 movl bbhead,%edx
1632 movl %edx,16(%eax)
1633 movl %eax,bbhead
1634 .byte 0xc3 /* avoid macro for `ret' */