cpufunc.h (92805) | cpufunc.h (92870) |
---|---|
1/*- 2 * Copyright (c) 1998 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/ia64/include/cpufunc.h 92805 2002-03-20 17:28:40Z dfr $ | 26 * $FreeBSD: head/sys/ia64/include/cpufunc.h 92870 2002-03-21 09:50:11Z dfr $ |
27 */ 28 29#ifndef _MACHINE_CPUFUNC_H_ 30#define _MACHINE_CPUFUNC_H_ 31 32#ifdef _KERNEL 33 34#include <sys/types.h> --- 244 unchanged lines hidden (view full) --- 279} 280 281static __inline void 282enable_intr(void) 283{ 284 __asm __volatile (";; ssm psr.i;; srlz.d"); 285} 286 | 27 */ 28 29#ifndef _MACHINE_CPUFUNC_H_ 30#define _MACHINE_CPUFUNC_H_ 31 32#ifdef _KERNEL 33 34#include <sys/types.h> --- 244 unchanged lines hidden (view full) --- 279} 280 281static __inline void 282enable_intr(void) 283{ 284 __asm __volatile (";; ssm psr.i;; srlz.d"); 285} 286 |
287static __inline critical_t | 287static __inline register_t |
288intr_disable(void) 289{ | 288intr_disable(void) 289{ |
290 critical_t psr; | 290 register_t psr; |
291 292 __asm __volatile ("mov %0=psr;;" : "=r" (psr)); 293 disable_intr(); 294 return (psr); 295} 296 297static __inline void 298intr_restore(critical_t psr) --- 19 unchanged lines hidden --- | 291 292 __asm __volatile ("mov %0=psr;;" : "=r" (psr)); 293 disable_intr(); 294 return (psr); 295} 296 297static __inline void 298intr_restore(critical_t psr) --- 19 unchanged lines hidden --- |