]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/bcm/dat.h
devarch: restrict i/o port access to 64K, disallow msr 32-bit wrap arround (thanks...
[plan9front.git] / sys / src / 9 / bcm / dat.h
index 6f41f4563f5a7865f299464b7c5a6d0b3823d57a..20cbf3880253b8b8b960be68fa343f08c5b4caa4 100644 (file)
@@ -15,13 +15,13 @@ 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;
 typedef struct Memcache        Memcache;
 typedef struct MMMU    MMMU;
 typedef struct Mach    Mach;
-typedef struct Notsave Notsave;
 typedef struct Page    Page;
 typedef struct PhysUart        PhysUart;
 typedef struct PMMU    PMMU;
@@ -56,14 +56,14 @@ struct Label
        uintptr pc;
 };
 
+/*
+ * emulated or vfp3 floating point
+ */
 enum {
        Maxfpregs       = 32,   /* could be 16 or 32, see Mach.fpnregs */
        Nfpctlregs      = 16,
 };
 
-/*
- * emulated or vfp3 floating point
- */
 struct FPsave
 {
        ulong   status;
@@ -78,9 +78,12 @@ struct FPsave
        uintptr pc;             /* of failed fp instr. */
 };
 
-/*
- * FPsave.fpstate
- */
+struct PFPU
+{
+       int     fpstate;
+       FPsave  fpsave[1];
+};
+
 enum
 {
        FPinit,
@@ -119,13 +122,6 @@ struct Conf
        int     monitor;        /* flag */
 };
 
-/*
- *  things saved in the Proc structure during a notify
- */
-struct Notsave {
-       int     emptiness;
-};
-
 /*
  *  MMU stuff in Mach.
  */