Include a whole interrupt queue in struct globaldata instead of just a

pointer.  Minor style.
This commit is contained in:
jake 2001-10-20 15:57:09 +00:00
parent be0d728a75
commit 1ec51b364f
2 changed files with 24 additions and 24 deletions

View File

@ -34,6 +34,9 @@
#include <sys/queue.h>
#include <machine/frame.h>
#include <machine/intr_machdep.h>
#define ALT_STACK_SIZE 128
/*
@ -55,22 +58,19 @@ struct globaldata {
u_int gd_other_cpus; /* all other cpus */
SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU
int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;
char gd_ktr_buf_data[0];
#endif
struct intr_queue *gd_iq;
struct intr_vector *gd_ivt;
/* Alternate global stack */
u_long gd_alt_stack[ALT_STACK_SIZE];
/* Watch point support. */
u_int gd_wp_insn;
struct intr_queue gd_iq; /* interrupt queuq */
u_long gd_alt_stack[ALT_STACK_SIZE]; /* alternate global stack */
u_int gd_wp_insn; /* watch point support */
u_long gd_wp_pstate;
u_long gd_wp_va;
int gd_wp_mask;
#ifdef KTR_PERCPU
int gd_ktr_idx; /* index into trace table */
char *gd_ktr_buf;
char gd_ktr_buf_data[0];
#endif
};
#endif /* _KERNEL */

View File

@ -34,6 +34,9 @@
#include <sys/queue.h>
#include <machine/frame.h>
#include <machine/intr_machdep.h>
#define ALT_STACK_SIZE 128
/*
@ -55,22 +58,19 @@ struct globaldata {
u_int gd_other_cpus; /* all other cpus */
SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU
int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;
char gd_ktr_buf_data[0];
#endif
struct intr_queue *gd_iq;
struct intr_vector *gd_ivt;
/* Alternate global stack */
u_long gd_alt_stack[ALT_STACK_SIZE];
/* Watch point support. */
u_int gd_wp_insn;
struct intr_queue gd_iq; /* interrupt queuq */
u_long gd_alt_stack[ALT_STACK_SIZE]; /* alternate global stack */
u_int gd_wp_insn; /* watch point support */
u_long gd_wp_pstate;
u_long gd_wp_va;
int gd_wp_mask;
#ifdef KTR_PERCPU
int gd_ktr_idx; /* index into trace table */
char *gd_ktr_buf;
char gd_ktr_buf_data[0];
#endif
};
#endif /* _KERNEL */