From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJ2cC-00061v-F1 for barebox@lists.infradead.org; Wed, 16 May 2018 20:01:38 +0000 Received: by mail-pg0-x241.google.com with SMTP id z70-v6so762322pgz.3 for ; Wed, 16 May 2018 13:01:26 -0700 (PDT) From: Andrey Smirnov Date: Wed, 16 May 2018 13:00:24 -0700 Message-Id: <20180516200036.29829-17-andrew.smirnov@gmail.com> In-Reply-To: <20180516200036.29829-1-andrew.smirnov@gmail.com> References: <20180516200036.29829-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 v2 16/28] 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 228fef433..b4cc474d8 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