summaryrefslogtreecommitdiffstats
path: root/sys/sun4v/include
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-01-18 13:04:38 +0000
committermarius <marius@FreeBSD.org>2009-01-18 13:04:38 +0000
commitc077ce04298ff9cb8b9b86a3397e92713f8eca32 (patch)
treed2522fc6abce19dcfa52374ab04325af6348fd2c /sys/sun4v/include
parentfacc5c0f6107fdae26bbc72af0cfdf5d8d8eb321 (diff)
downloadFreeBSD-src-c077ce04298ff9cb8b9b86a3397e92713f8eca32.zip
FreeBSD-src-c077ce04298ff9cb8b9b86a3397e92713f8eca32.tar.gz
Adjust the padding of struct pcpu to r187357.
Diffstat (limited to 'sys/sun4v/include')
-rw-r--r--sys/sun4v/include/pcpu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/sun4v/include/pcpu.h b/sys/sun4v/include/pcpu.h
index b88ddbb..434f1cd 100644
--- a/sys/sun4v/include/pcpu.h
+++ b/sys/sun4v/include/pcpu.h
@@ -38,6 +38,12 @@
struct pmap;
+#ifdef KTR
+#define PCPU_MD_FIELDS_PAD (4 - (PCPU_NAME_LEN + 7) / 8)
+#else
+#define PCPU_MD_FIELDS_PAD 4
+#endif
+
/*
* Inside the kernel, the globally reserved register g7 is used to
* point at the globaldata structure.
@@ -72,7 +78,7 @@ struct pmap;
u_int pc_kwbuf_full; \
struct rwindow pc_tsbwbuf[2]; \
uint16_t pc_cpulist[MAXCPU]; \
- uint64_t pad[4];
+ uint64_t pad[PCPU_MD_FIELDS_PAD];
/* XXX SUN4V_FIXME - as we access the *_ra and *_size fields in quick
* succession we _really_ want them to be L1 cache line size aligned
OpenPOWER on IntegriCloud