diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-08-16 16:10:35 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-08-16 16:10:35 +0000 |
commit | b5568670fb475bee88df1ac78ab3a37574d32a8f (patch) | |
tree | bd757728963d83cb18451dc470a1a2138cd60b3f /pfinet | |
parent | cf9884839c004c4dbb8a5d1c16392169c3f1ad5f (diff) |
Formerly system.h.~6~
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/asm/system.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pfinet/asm/system.h b/pfinet/asm/system.h index bb51a6fb..1170c82a 100644 --- a/pfinet/asm/system.h +++ b/pfinet/asm/system.h @@ -4,6 +4,8 @@ #include <cthreads.h> #include <sys/types.h> +#define intr_count (_fetch_intr_count ()) + /* This lock is held when "interrupts" are disabled. */ extern struct mutex global_interrupt_lock; @@ -64,6 +66,14 @@ end_interrupt () /* Likewise a resumption? */ } - +/* Return one if we are in interrupt code. */ +extern inline +_fetch_intr_count () +{ + u_long locked; + + _real_save_flags (&locked); + return locked; +} #endif |