ih_map & ih_clr are volatile.

This commit is contained in:
mrg 2000-06-12 05:29:43 +00:00
parent 9918c00a61
commit fdfb59b4b9
1 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.17 2000/05/26 21:20:19 thorpej Exp $ */ /* $NetBSD: cpu.h,v 1.18 2000/06/12 05:29:43 mrg Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -174,13 +174,14 @@ int foundfpu; /* true => we have an FPU */
* argument, or with a pointer to a clockframe if ih_arg is NULL. * argument, or with a pointer to a clockframe if ih_arg is NULL.
*/ */
struct intrhand { struct intrhand {
int (*ih_fun) __P((void *)); int (*ih_fun) __P((void *));
void *ih_arg; void *ih_arg;
short ih_number; /* interrupt number the H/W provides */ short ih_number; /* interrupt number */
short ih_pil; /* interrupt priority */ /* the H/W provides */
struct intrhand *ih_next; short ih_pil; /* interrupt priority */
u_int64_t *ih_map; /* Interrupt map register */ struct intrhand *ih_next;
u_int64_t *ih_clr; /* clear interrupt register */ volatile u_int64_t *ih_map; /* Interrupt map reg */
volatile u_int64_t *ih_clr; /* clear interrupt reg */
}; };
extern struct intrhand *intrhand[15]; extern struct intrhand *intrhand[15];
extern struct intrhand *intrlev[MAXINTNUM]; extern struct intrhand *intrlev[MAXINTNUM];