]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/omap/dat.h
kernel: stop the practice of passing DMDIR to devir() perm argument
[plan9front.git] / sys / src / 9 / omap / dat.h
old mode 100755 (executable)
new mode 100644 (file)
index 3711469..710134f
@@ -27,6 +27,7 @@ enum {
 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;
@@ -34,7 +35,6 @@ typedef struct Memcache       Memcache;
 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;
@@ -72,18 +72,25 @@ struct Label
 /*
  * 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,
@@ -118,13 +125,6 @@ struct Conf
        int     monitor;        /* flag */
 };
 
-/*
- *  things saved in the Proc structure during a notify
- */
-struct Notsave {
-       int     emptiness;
-};
-
 /*
  *  MMU stuff in Mach.
  */
@@ -211,10 +211,8 @@ typedef void               KMap;
 
 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 */
@@ -242,6 +240,8 @@ struct ISAConf {
        char    *opt[NISAOPT];
 };
 
+#define BUSUNKNOWN -1
+
 #define        MACHP(n)        (machaddr[n])
 
 /*