Date: Fri, 31 Mar 2006 08:28:49 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94349 for review Message-ID: <200603310828.k2V8SnLq044699@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94349 Change 94349 by kmacy@kmacy_storage:sun4v_work on 2006/03/31 08:28:15 quick workaround for TSB alignment errors Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#34 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#34 (text+ko) ==== @@ -471,7 +471,13 @@ * Set up TSB descriptors for the hypervisor * */ +#ifdef notyet tsb_8k_size = virtsz >> (PAGE_SHIFT - TTE_SHIFT); + DPRINTF("tsb_8k_size is 0x%lx\n", tsb_8k_size); +#else + /* avoid alignment complaints from the hypervisor */ + tsb_8k_size = PAGE_SIZE_4M; +#endif pa = pmap_bootstrap_alloc(tsb_8k_size); if (pa & PAGE_MASK_4M) @@ -506,6 +512,7 @@ tsb_4m_size = virtsz >> (PAGE_SHIFT_4M - TTE_SHIFT); pa = pmap_bootstrap_alloc(tsb_4m_size); + DPRINTF("tsb_4m_pa is 0x%lx tsb_4m_size is 0x%lx\n", pa, tsb_4m_size); kernel_td[TSB4M_INDEX].hvtsb_idxpgsz = TTE4M; kernel_td[TSB4M_INDEX].hvtsb_assoc = 1; kernel_td[TSB4M_INDEX].hvtsb_ntte = (tsb_4m_size >> TTE_SHIFT); @@ -635,7 +642,7 @@ PMAP_LOCK_INIT(kernel_pmap); TAILQ_INIT(&kernel_pmap->pm_pvlist); - + error = hv_set_ctx0(MAX_TSB_INFO, vtophys((vm_offset_t)&kernel_td)); if (error != H_EOK) panic("failed to set ctx0 TSBs error: %ld", error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603310828.k2V8SnLq044699>