Skip to content

Commit e17362d

Browse files
linuswRussell King (Oracle)
authored andcommitted
ARM: 9097/1: mmu: Declare section start/end correctly
The kernel test robot reported an interesting bug: A debug print was using %08x with kernel_sec_start and kernel_sec_end being phys_addr_t which can be either u32 or u64 (possibly more). Actually these should just be declared as u32 to begin with: they are declared as such in the assembly in head.S and the kernel definitely boots in a 32 bit physical address space. Redeclare the kernel_sec_start and kernel_sec_end to rid the bug. Reported-by: kernel test robot <[email protected]> Fixes: 6e121df ("ARM: 9090/1: Map the lowmem and kernel separately") Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 33f0875 commit e17362d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/include/asm/memory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ extern unsigned long vectors_base;
162162
* Physical start and end address of the kernel sections. These addresses are
163163
* 2MB-aligned to match the section mappings placed over the kernel.
164164
*/
165-
extern phys_addr_t kernel_sec_start;
166-
extern phys_addr_t kernel_sec_end;
165+
extern u32 kernel_sec_start;
166+
extern u32 kernel_sec_end;
167167

168168
/*
169169
* Physical vs virtual RAM address space conversion. These are

0 commit comments

Comments
 (0)