Add BookE modifications to cpu_info
This commit is contained in:
parent
1f9cc4c264
commit
3022f6d3b6
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.h,v 1.67 2009/10/24 20:03:56 rmind Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.68 2010/03/09 22:41:03 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1999 Wolfgang Solfrank.
|
||||
@ -78,11 +78,14 @@ struct cpu_info {
|
||||
int ci_intrdepth;
|
||||
int ci_mtx_oldspl;
|
||||
int ci_mtx_count;
|
||||
#ifndef PPC_BOOKE
|
||||
char *ci_intstk;
|
||||
#endif
|
||||
#define CPUSAVE_LEN 8
|
||||
register_t ci_tempsave[CPUSAVE_LEN];
|
||||
register_t ci_ddbsave[CPUSAVE_LEN];
|
||||
register_t ci_ipkdbsave[CPUSAVE_LEN];
|
||||
#ifndef PPC_BOOKE
|
||||
#define CPUSAVE_R28 0 /* where r28 gets saved */
|
||||
#define CPUSAVE_R29 1 /* where r29 gets saved */
|
||||
#define CPUSAVE_R30 2 /* where r30 gets saved */
|
||||
@ -93,6 +96,18 @@ struct cpu_info {
|
||||
#define CPUSAVE_SRR1 7 /* where SRR1 gets saved */
|
||||
#define DISISAVE_LEN 4
|
||||
register_t ci_disisave[DISISAVE_LEN];
|
||||
#else
|
||||
#define CPUSAVE_R26 0 /* where r26 gets saved */
|
||||
#define CPUSAVE_R27 1 /* where r27 gets saved */
|
||||
#define CPUSAVE_R28 2 /* where r28 gets saved */
|
||||
#define CPUSAVE_R29 3 /* where r29 gets saved */
|
||||
#define CPUSAVE_R30 4 /* where r30 gets saved */
|
||||
#define CPUSAVE_R31 5 /* where r31 gets saved */
|
||||
register_t ci_critsave[CPUSAVE_LEN];
|
||||
register_t ci_mchksave[CPUSAVE_LEN];
|
||||
struct pmap_segtab *ci_pmap_kern_segtab;
|
||||
struct pmap_segtab *ci_pmap_user_segtab;
|
||||
#endif
|
||||
struct cache_info ci_ci;
|
||||
void *ci_sysmon_cookie;
|
||||
void (*ci_idlespin)(void);
|
||||
|
Loading…
Reference in New Issue
Block a user