Deleted Added
sdiff udiff text old ( 147298 ) new ( 153813 )
full compact
1/*-
2 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
3 * All rights reserved.
4 *
5 * Author: Chris G. Demetriou
6 *
7 * Permission to use, copy, modify and distribute this software and
8 * its documentation is hereby granted, provided that both the copyright

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

21 * Carnegie Mellon University
22 * Pittsburgh PA 15213-3890
23 *
24 * any improvements or extensions that they make and grant Carnegie the
25 * rights to redistribute these changes.
26 *
27 * from: NetBSD: profile.h,v 1.9 1997/04/06 08:47:37 cgd Exp
28 * from: FreeBSD: src/sys/alpha/include/profile.h,v 1.4 1999/12/29
29 * $FreeBSD: head/sys/powerpc/include/profile.h 147298 2005-06-11 10:59:02Z jkoshy $
30 */
31
32#ifndef _MACHINE_PROFILE_H_
33#define _MACHINE_PROFILE_H_
34
35#define _MCOUNT_DECL void mcount
36
37#define FUNCTION_ALIGNMENT 16
38
39typedef u_int fptrdiff_t;
40
41#define MCOUNT \
42void \
43_mcount() \
44{ \
45}
46
47#ifdef _KERNEL
48#define MCOUNT_ENTER(s)
49#define MCOUNT_EXIT(s)
50#define MCOUNT_DECL(s)
51
52void bintr(void);
53void btrap(void);
54void eintr(void);
55void user(void);
56
57#define MCOUNT_FROMPC_USER(pc) \
58 ((pc < (uintfptr_t)VM_MAXUSER_ADDRESS) ? (uintfptr_t)user : pc)

--- 14 unchanged lines hidden ---