lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAHkaATTjqpySW2jH-X3g38BpP0AM-+xLsia-G7riit55WeCP8g@mail.gmail.com>
Date:	Fri, 31 Oct 2014 00:34:31 +0800
From:	Min-Hua Chen <orca.chen@...il.com>
To:	Russell King <linux@....linux.org.uk>,
	Laura Abbott <lauraa@...eaurora.org>,
	Catalin Marinas <catalin.marinas@....com>,
	Will Deacon <will.deacon@....com>,
	Santosh Shilimkar <santosh.shilimkar@...com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	linux-arm-kernel@...ts.infradead.org
Subject: [PATCH] arm: use phys_addr_t to describe physical address

Hi,

Use phys_addr_t to describe physical_address. When LPAE
is enabled, physical address can be more than 32 bits, so
we have to use phys_addr_t to handle the case.

Signed-off-by: Min-Hua Chen <orca.chen@...il.com>
---
 arch/arm/mm/mmu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 9f98cec..858aa11 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -1335,8 +1335,8 @@ static void __init kmap_init(void)
 static void __init map_lowmem(void)
 {
     struct memblock_region *reg;
-    unsigned long kernel_x_start = round_down(__pa(_stext), SECTION_SIZE);
-    unsigned long kernel_x_end = round_up(__pa(__init_end), SECTION_SIZE);
+    phys_addr_t kernel_x_start = round_down(__pa(_stext), SECTION_SIZE);
+    phys_addr_t kernel_x_end = round_up(__pa(__init_end), SECTION_SIZE);

     /* Map all the lowmem memory banks. */
     for_each_memblock(memory, reg) {
--
1.7.10.4

thanks,
Min-Hua
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ