Thread (4 messages) flat view 4 messages, 2 authors, 2019-09-16

Re: [PATCH v2 2/2] powerpc/83xx: map IMMR with a BAT.

From: Scott Wood <oss@buserror.net>
Date: 2019-09-16 15:06:51
Also in: lkml

On Mon, 2019-09-16 at 06:42 +0000, Christophe Leroy wrote:
quoted hunk ↗ jump to hunk
@@ -145,6 +147,15 @@ void __init mpc83xx_setup_arch(void)
 	if (ppc_md.progress)
 		ppc_md.progress("mpc83xx_setup_arch()", 0);
 
+	if (!__map_without_bats) {
+		phys_addr_t immrbase = get_immrbase();
+		int immrsize = IS_ALIGNED(immrbase, SZ_2M) ? SZ_2M : SZ_1M;
+		unsigned long va = __fix_to_virt(FIX_IMMR_BASE);
Why __fix_to_virt() and not fix_to_virt()?

-Scott

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help