Deleted Added
full compact
cpu.h (92675) cpu.h (92843)
1/* $FreeBSD: head/sys/ia64/include/cpu.h 92675 2002-03-19 11:14:52Z peter $ */
1/* $FreeBSD: head/sys/ia64/include/cpu.h 92843 2002-03-20 23:30:31Z alfred $ */
2/* From: NetBSD: cpu.h,v 1.18 1997/09/23 23:17:49 mjacob Exp */
3
4/*
5 * Copyright (c) 1988 University of Utah.
6 * Copyright (c) 1982, 1990, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * This code is derived from software contributed to Berkeley by

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

102struct thread;
103struct reg;
104struct rpb;
105struct trapframe;
106
107extern struct rpb *hwrpb;
108extern volatile int mc_expected, mc_received;
109
2/* From: NetBSD: cpu.h,v 1.18 1997/09/23 23:17:49 mjacob Exp */
3
4/*
5 * Copyright (c) 1988 University of Utah.
6 * Copyright (c) 1982, 1990, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * This code is derived from software contributed to Berkeley by

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

102struct thread;
103struct reg;
104struct rpb;
105struct trapframe;
106
107extern struct rpb *hwrpb;
108extern volatile int mc_expected, mc_received;
109
110int badaddr __P((void *, size_t));
111int badaddr_read __P((void *, size_t, void *));
112u_int64_t console_restart __P((u_int64_t, u_int64_t, u_int64_t));
113void do_sir __P((void));
114void dumpconf __P((void));
115void exception_restore __P((void)); /* MAGIC */
116void frametoreg __P((struct trapframe *, struct reg *));
117long fswintrberr __P((void)); /* MAGIC */
118int ia64_pa_access __P((u_long));
119void ia64_init __P((u_int64_t, u_int64_t));
120void ia64_fpstate_check __P((struct thread *p));
121void ia64_fpstate_save __P((struct thread *p, int write));
122void ia64_fpstate_drop __P((struct thread *p));
123void ia64_fpstate_switch __P((struct thread *p));
124void init_prom_interface __P((struct rpb*));
125void interrupt __P((u_int64_t, struct trapframe *));
110int badaddr (void *, size_t);
111int badaddr_read(void *, size_t, void *);
112u_int64_t console_restart(u_int64_t, u_int64_t, u_int64_t);
113void do_sir(void);
114void dumpconf(void);
115void exception_restore(void); /* MAGIC */
116void frametoreg(struct trapframe *, struct reg *);
117long fswintrberr(void); /* MAGIC */
118int ia64_pa_access(u_long);
119void ia64_init(u_int64_t, u_int64_t);
120void ia64_fpstate_check(struct thread *p);
121void ia64_fpstate_save(struct thread *p, int write);
122void ia64_fpstate_drop(struct thread *p);
123void ia64_fpstate_switch(struct thread *p);
124void init_prom_interface(struct rpb*);
125void interrupt(u_int64_t, struct trapframe *);
126void machine_check
126void machine_check
127 __P((unsigned long, struct trapframe *, unsigned long, unsigned long));
128u_int64_t hwrpb_checksum __P((void));
129void hwrpb_restart_setup __P((void));
130void regdump __P((struct trapframe *));
131void regtoframe __P((struct reg *, struct trapframe *));
132int savectx __P((struct pcb *));
133void restorectx __P((struct pcb *));
134void set_iointr __P((void (*)(void *, unsigned long)));
135void fork_trampoline __P((void)); /* MAGIC */
136void syscall __P((int, u_int64_t *, struct trapframe *));
137void trap __P((int vector, int imm, struct trapframe *framep));
127 (unsigned long, struct trapframe *, unsigned long, unsigned long);
128u_int64_t hwrpb_checksum(void);
129void hwrpb_restart_setup(void);
130void regdump(struct trapframe *);
131void regtoframe(struct reg *, struct trapframe *);
132int savectx(struct pcb *);
133void restorectx(struct pcb *);
134void set_iointr(void (*)(void *, unsigned long));
135void fork_trampoline(void); /* MAGIC */
136void syscall(int, u_int64_t *, struct trapframe *);
137void trap(int vector, int imm, struct trapframe *framep);
138void ia64_probe_sapics(void);
139int ia64_count_aps(void);
140void map_pal_code(void);
141void cpu_mp_add(uint, uint, uint);
142
143/*
144 * Return contents of in-cpu fast counter as a sort of "bogo-time"
145 * for non-critical timing.
146 */
147static __inline u_int64_t
148get_cyclecount(void)
149{
150 return (ia64_get_itc());
151}
152
153#endif /* _KERNEL */
154
155#endif /* _MACHINE_CPU_H_ */
138void ia64_probe_sapics(void);
139int ia64_count_aps(void);
140void map_pal_code(void);
141void cpu_mp_add(uint, uint, uint);
142
143/*
144 * Return contents of in-cpu fast counter as a sort of "bogo-time"
145 * for non-critical timing.
146 */
147static __inline u_int64_t
148get_cyclecount(void)
149{
150 return (ia64_get_itc());
151}
152
153#endif /* _KERNEL */
154
155#endif /* _MACHINE_CPU_H_ */