diff options
author | jmallett <jmallett@FreeBSD.org> | 2010-04-18 22:32:07 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2010-04-18 22:32:07 +0000 |
commit | 4f9a815abecac01cf0fb2df739683c5cfb01c867 (patch) | |
tree | da5df1cb44611f0607de0cedd81f3d7d10512466 /sys/mips/include/proc.h | |
parent | 2c6900a254f8747c55019ef3c5fff96917c31b48 (diff) | |
download | FreeBSD-src-4f9a815abecac01cf0fb2df739683c5cfb01c867.zip FreeBSD-src-4f9a815abecac01cf0fb2df739683c5cfb01c867.tar.gz |
o) Add a VM find-space option, VMFS_TLB_ALIGNED_SPACE, which searches the
address space for an address as aligned by the new pmap_align_tlb()
function, which is for constraints imposed by the TLB. [1]
o) Add a kmem_alloc_nofault_space() function, which acts like
kmem_alloc_nofault() but allows the caller to specify which find-space
option to use. [1]
o) Use kmem_alloc_nofault_space() with VMFS_TLB_ALIGNED_SPACE to allocate the
kernel stack address on MIPS. [1]
o) Make pmap_align_tlb() on MIPS align addresses so that they do not start on
an odd boundary within the TLB, so that they are suitable for insertion as
wired entries and do not have to share a TLB entry with another mapping,
assuming they are appropriately-sized.
o) Eliminate md_realstack now that the kstack will be appropriately-aligned on
MIPS.
o) Increase the number of guard pages to 2 so that we retain the proper
alignment of the kstack address.
Reviewed by: [1] alc
X-MFC-after: Making sure alc has not come up with a better interface.
Diffstat (limited to 'sys/mips/include/proc.h')
-rw-r--r-- | sys/mips/include/proc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/mips/include/proc.h b/sys/mips/include/proc.h index 99dab78..0491b11 100644 --- a/sys/mips/include/proc.h +++ b/sys/mips/include/proc.h @@ -44,7 +44,7 @@ */ struct mdthread { int md_flags; /* machine-dependent flags */ - int md_upte[KSTACK_PAGES - 1]; /* ptes for mapping u pcb */ + int md_upte[KSTACK_PAGES]; /* ptes for mapping u pcb */ int md_ss_addr; /* single step address for ptrace */ int md_ss_instr; /* single step instruction for ptrace */ register_t md_saved_intr; @@ -53,7 +53,6 @@ struct mdthread { int md_pc_ctrl; /* performance counter control */ int md_pc_count; /* performance counter */ int md_pc_spill; /* performance counter spill */ - vm_offset_t md_realstack; void *md_tls; }; |