summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pcb.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-01-28 23:54:31 +0000
committerpeter <peter@FreeBSD.org>2004-01-28 23:54:31 +0000
commit5e45c69f41132d5a819ecab326491bcbd30b567d (patch)
tree1115639665e30511d19194342ed44ec6f676c7ed /sys/amd64/include/pcb.h
parent9ba1ee132deb530c3e9886e6482d14e12f89e8be (diff)
downloadFreeBSD-src-5e45c69f41132d5a819ecab326491bcbd30b567d.zip
FreeBSD-src-5e45c69f41132d5a819ecab326491bcbd30b567d.tar.gz
Add dbreg struct definitions for /proc/*/dbregs and a place to store the
registers in the pcb
Diffstat (limited to 'sys/amd64/include/pcb.h')
-rw-r--r--sys/amd64/include/pcb.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h
index 1d909cd..311c473 100644
--- a/sys/amd64/include/pcb.h
+++ b/sys/amd64/include/pcb.h
@@ -64,11 +64,18 @@ struct pcb {
u_int32_t pcb_es;
u_int32_t pcb_fs;
u_int32_t pcb_gs;
+ u_int64_t pcb_dr0;
+ u_int64_t pcb_dr1;
+ u_int64_t pcb_dr2;
+ u_int64_t pcb_dr3;
+ u_int64_t pcb_dr6;
+ u_int64_t pcb_dr7;
struct savefpu pcb_save;
u_long pcb_flags;
-#define PCB_FPUINITDONE 0x01 /* fpu state is initialized */
-#define PCB_FULLCTX 0x02 /* full context restore on sysret */
+#define PCB_DBREGS 0x02 /* process using debug registers */
+#define PCB_FPUINITDONE 0x08 /* fpu state is initialized */
+#define PCB_FULLCTX 0x80 /* full context restore on sysret */
caddr_t pcb_onfault; /* copyin/out fault recovery */
};
OpenPOWER on IntegriCloud