Date: Sun, 3 Nov 2013 10:01:54 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r257568 - projects/specific_leg/sys/arm/arm Message-ID: <201311031001.rA3A1sA2012505@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Sun Nov 3 10:01:53 2013 New Revision: 257568 URL: http://svnweb.freebsd.org/changeset/base/257568 Log: Remove more uses of PHYSADDR. It is still used when FLASHADDR and LOADERRAMADDR is set, and in the SMP code. The former use can be moved to a new file for legacy booting. The latter appears to be incorrect as the result of the calculation PHYSADDR is used in is not used. Modified: projects/specific_leg/sys/arm/arm/locore.S Modified: projects/specific_leg/sys/arm/arm/locore.S ============================================================================== --- projects/specific_leg/sys/arm/arm/locore.S Sun Nov 3 09:08:36 2013 (r257567) +++ projects/specific_leg/sys/arm/arm/locore.S Sun Nov 3 10:01:53 2013 (r257568) @@ -60,8 +60,6 @@ __FBSDID("$FreeBSD$"); .align 0 .globl kernbase .set kernbase,KERNBASE -.globl physaddr -.set physaddr,PHYSADDR /* * On entry for FreeBSD boot ABI: @@ -125,25 +123,7 @@ Lram_offset: .word from_ram-_C_LABEL(_st from_ram: nop #endif - adr r7, Lunmapped - bic r7, r7, #0xf0000000 - orr r7, r7, #PHYSADDR - -disable_mmu: - /* Disable MMU for a while */ - mrc p15, 0, r2, c1, c0, 0 - bic r2, r2, #(CPU_CONTROL_MMU_ENABLE | CPU_CONTROL_DC_ENABLE |\ - CPU_CONTROL_WBUF_ENABLE) - bic r2, r2, #(CPU_CONTROL_IC_ENABLE) - bic r2, r2, #(CPU_CONTROL_BPRD_ENABLE) - mcr p15, 0, r2, c1, c0, 0 - - nop - nop - nop - mov pc, r7 -Lunmapped: /* * Build page table from scratch. */ @@ -292,8 +272,6 @@ Lpagetable: Lvirtaddr: .word KERNVIRTADDR -Lphysaddr: - .word KERNPHYSADDR #if defined (FLASHADDR) && defined(LOADERRAMADDR) Lreal_start:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311031001.rA3A1sA2012505>