Pad out table manager structures so that all the members in the contiguous

table manager array allocated in pmap_startup() are properly aligned for
faster bus access.
This commit is contained in:
jeremy 1997-12-17 16:20:33 +00:00
parent a9f58b2ca8
commit 070bd37c1b
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap_pvt.h,v 1.6 1997/07/02 03:23:58 jeremy Exp $ */
/* $NetBSD: pmap_pvt.h,v 1.7 1997/12/17 16:20:33 jeremy Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -57,6 +57,7 @@ struct a_tmgr_struct {
mmu_long_dte_t *at_dtbl; /* the MMU table being managed */
u_char at_wcnt; /* no. of wired entries in this table */
u_char at_ecnt; /* no. of valid entries in this table */
u_int16_t at_dum1; /* structure padding */
TAILQ_ENTRY(a_tmgr_struct) at_link; /* list linker */
};
@ -72,6 +73,7 @@ struct b_tmgr_struct {
u_char bt_pidx; /* this table's index in the parent */
u_char bt_wcnt; /* no. of wired entries in table */
u_char bt_ecnt; /* no. of valid entries in table */
u_char bt_dum1; /* structure padding */
TAILQ_ENTRY(b_tmgr_struct) bt_link; /* list linker */
};
@ -92,6 +94,7 @@ struct c_tmgr_struct {
u_char ct_pidx; /* this table's index in the parent */
u_char ct_wcnt; /* no. of wired entries in table */
u_char ct_ecnt; /* no. of valid entries in table */
u_char ct_dum1; /* structure padding */
TAILQ_ENTRY(c_tmgr_struct) ct_link; /* list linker */
#define MMU_SHORT_PTE_WIRED MMU_SHORT_PTE_UN1
#define MMU_PTE_WIRED ((*pte)->attr.raw & MMU_SHORT_PTE_WIRED)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap_pvt.h,v 1.6 1997/07/02 03:23:58 jeremy Exp $ */
/* $NetBSD: pmap_pvt.h,v 1.7 1997/12/17 16:20:33 jeremy Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -57,6 +57,7 @@ struct a_tmgr_struct {
mmu_long_dte_t *at_dtbl; /* the MMU table being managed */
u_char at_wcnt; /* no. of wired entries in this table */
u_char at_ecnt; /* no. of valid entries in this table */
u_int16_t at_dum1; /* structure padding */
TAILQ_ENTRY(a_tmgr_struct) at_link; /* list linker */
};
@ -72,6 +73,7 @@ struct b_tmgr_struct {
u_char bt_pidx; /* this table's index in the parent */
u_char bt_wcnt; /* no. of wired entries in table */
u_char bt_ecnt; /* no. of valid entries in table */
u_char bt_dum1; /* structure padding */
TAILQ_ENTRY(b_tmgr_struct) bt_link; /* list linker */
};
@ -92,6 +94,7 @@ struct c_tmgr_struct {
u_char ct_pidx; /* this table's index in the parent */
u_char ct_wcnt; /* no. of wired entries in table */
u_char ct_ecnt; /* no. of valid entries in table */
u_char ct_dum1; /* structure padding */
TAILQ_ENTRY(c_tmgr_struct) ct_link; /* list linker */
#define MMU_SHORT_PTE_WIRED MMU_SHORT_PTE_UN1
#define MMU_PTE_WIRED ((*pte)->attr.raw & MMU_SHORT_PTE_WIRED)