typedef struct Conf Conf;
typedef struct Confmem Confmem;
typedef struct FPsave FPsave;
+typedef struct PFPU PFPU;
typedef struct ISAConf ISAConf;
typedef struct Label Label;
typedef struct Lock Lock;
typedef struct MMMU MMMU;
typedef struct Mach Mach;
typedef u32int Mreg; /* Msr - bloody UART */
-typedef struct Notsave Notsave;
typedef struct Page Page;
typedef struct PhysUart PhysUart;
typedef struct PMMU PMMU;
/*
* emulated floating point
*/
+enum{
+ Nfpctlregs = 16,
+};
+
struct FPsave
{
ulong status;
ulong control;
- ulong regs[8][3];
+ ulong regs[Nfpctlregs][3];
int fpstate;
};
-/*
- * FPsave.status
- */
+struct PFPU
+{
+ int fpstate;
+ FPsave fpsave[1];
+};
+
enum
{
FPinit,
int monitor; /* flag */
};
-/*
- * things saved in the Proc structure during a notify
- */
-struct Notsave {
- int emptiness;
-};
-
/*
* MMU stuff in Mach.
*/
struct
{
- Lock;
- int machs; /* bitmap of active CPUs */
+ char machs[MAXMACH]; /* active CPUs */
int exiting; /* shutdown */
- int ispanic; /* shutdown in response to a panic */
}active;
extern register Mach* m; /* R10 */
char *opt[NISAOPT];
};
+#define BUSUNKNOWN -1
+
#define MACHP(n) (machaddr[n])
/*