Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b1c9bef authored by Tim Abbott's avatar Tim Abbott Committed by Hirokazu Takata
Browse files

m32r: make PAGE_SIZE available to assembly.



page.h includes ifndef __ASSEMBLY__ guards, but PAGE_SIZE is defined
using "1UL", which the assembler does not support. Use the _AC macro
from const.h to make it available to assembly (and linker scripts).

Signed-off-by: default avatarTim Abbott <tabbott@ksplice.com>
Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
parent 43c1266c
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
#ifndef _ASM_M32R_PAGE_H
#ifndef _ASM_M32R_PAGE_H
#define _ASM_M32R_PAGE_H
#define _ASM_M32R_PAGE_H


#include <linux/const.h>

/* PAGE_SHIFT determines the page size */
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT	12
#define PAGE_SHIFT	12
#define PAGE_SIZE	(1UL << PAGE_SHIFT)
#define PAGE_SIZE	(_AC(1, UL) << PAGE_SHIFT)
#define PAGE_MASK	(~(PAGE_SIZE-1))
#define PAGE_MASK	(~(PAGE_SIZE-1))


#ifndef __ASSEMBLY__
#ifndef __ASSEMBLY__