svn commit: r268333 - projects/arm64/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Sun Jul 6 22:08:07 UTC 2014


Author: andrew
Date: Sun Jul  6 22:08:06 2014
New Revision: 268333
URL: http://svnweb.freebsd.org/changeset/base/268333

Log:
  Add more useful offsets

Modified:
  projects/arm64/sys/arm64/arm64/genassym.c

Modified: projects/arm64/sys/arm64/arm64/genassym.c
==============================================================================
--- projects/arm64/sys/arm64/arm64/genassym.c	Sun Jul  6 22:00:04 2014	(r268332)
+++ projects/arm64/sys/arm64/arm64/genassym.c	Sun Jul  6 22:08:06 2014	(r268333)
@@ -30,7 +30,21 @@
 __FBSDID("$FreeBSD$");
 #include <sys/param.h>
 #include <sys/assym.h>
+#include <sys/pcpu.h>
+#include <sys/proc.h>
 
+#include <machine/pcb.h>
 #include <machine/vmparam.h>
 
 ASSYM(KERNBASE, KERNBASE);
+
+ASSYM(PCPU_SIZE, sizeof(struct pcpu));
+ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
+ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
+
+ASSYM(PCB_REGS, offsetof(struct pcb, pcb_x));
+ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp));
+
+ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
+ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
+


More information about the svn-src-projects mailing list