aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2006-12-18 07:46:59 +0000
committerKip Macy <kmacy@FreeBSD.org>2006-12-18 07:46:59 +0000
commitde87749b4a65aa291de3c1778e44f1cfd0a2aaaa (patch)
tree7d3d3f98373dfd6107921f7c93594c80d1caa2de
parent2d74924b65a66209105932d2ef5fc30d3a713c8a (diff)
downloadsrc-de87749b4a65aa291de3c1778e44f1cfd0a2aaaa.tar.gz
src-de87749b4a65aa291de3c1778e44f1cfd0a2aaaa.zip
remove unneeded operations in tsb_set_tte_real - the function is
only used early in initialization so SMP safeness isn't really an issue
Notes
Notes: svn path=/head/; revision=165326
-rw-r--r--sys/sun4v/sun4v/tsb.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/sun4v/sun4v/tsb.c b/sys/sun4v/sun4v/tsb.c
index 65724dbb073c..7ea8d0442645 100644
--- a/sys/sun4v/sun4v/tsb.c
+++ b/sys/sun4v/sun4v/tsb.c
@@ -133,25 +133,21 @@ tsb_set_tte_real(hv_tsb_info_t *tsb, vm_offset_t index_va, vm_offset_t tag_va,
{
vm_paddr_t tsb_store_pa;
uint64_t tsb_index, tsb_shift, tte_tag;
- DPRINTF("tsb_set_tte va: 0x%lx idxpgsz: %x\n", tag_va, tsb->hti_idxpgsz);
+ DPRINTF("tsb_set_tte index_va: 0x%lx tag_va: 0x%lx idxpgsz: %x ",
+ index_va, tag_va, tsb->hti_idxpgsz);
tsb_shift = TTE_PAGE_SHIFT(tsb->hti_idxpgsz);
- DPRINTF("tsb_shift: 0x%lx\n", tsb_shift);
tsb_index = (index_va >> tsb_shift) & TSB_MASK(tsb);
DPRINTF("tsb_index_absolute: 0x%lx tsb_index: 0x%lx\n", (index_va >> tsb_shift), tsb_index);
tsb_store_pa = tsb->hti_ra + 2*tsb_index*sizeof(uint64_t);
- tte_data &= ~VTD_V;
/* store new value with valid bit cleared
* to avoid invalid intermediate value;
*/
store_real(tsb_store_pa + sizeof(uint64_t), tte_data);
- tte_data |= VTD_V;
-
tte_tag = (ctx << TTARGET_CTX_SHIFT) | (tag_va >> TTARGET_VA_SHIFT);
- store_real(tsb_store_pa, tte_tag);
- store_real(tsb_store_pa + sizeof(uint64_t), tte_data);
+ store_real(tsb_store_pa, tte_tag);
}