From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fKxmL-0002It-4X for barebox@lists.infradead.org; Tue, 22 May 2018 03:16:20 +0000 Received: by mail-pl0-x244.google.com with SMTP id c19-v6so9990222pls.6 for ; Mon, 21 May 2018 20:15:50 -0700 (PDT) From: Andrey Smirnov Date: Mon, 21 May 2018 20:14:57 -0700 Message-Id: <20180522031510.25505-17-andrew.smirnov@gmail.com> In-Reply-To: <20180522031510.25505-1-andrew.smirnov@gmail.com> References: <20180522031510.25505-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v4 16/29] ARM: mmu: Use PAGE_SIZE when specifying size of one page To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- arch/arm/cpu/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index de242e0d7..62425b828 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -271,7 +271,7 @@ static void create_vector_table(unsigned long adr) u32 *exc; int idx; - vectors_sdram = request_sdram_region("vector table", adr, SZ_4K); + vectors_sdram = request_sdram_region("vector table", adr, PAGE_SIZE); if (vectors_sdram) { /* * The vector table address is inside the SDRAM physical @@ -352,7 +352,7 @@ static void create_zero_page(void) struct resource *zero_sdram; u32 *zero; - zero_sdram = request_sdram_region("zero page", 0x0, SZ_4K); + zero_sdram = request_sdram_region("zero page", 0x0, PAGE_SIZE); if (zero_sdram) { /* * Here we would need to set the second level page table -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox