Skip to content

Commit

Permalink
m32r: make PAGE_SIZE available to assembly.
Browse files Browse the repository at this point in the history
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: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
  • Loading branch information
Tim Abbott authored and Hirokazu Takata committed Sep 22, 2009
1 parent 43c1266 commit 8b1c9be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/m32r/include/asm/page.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#ifndef _ASM_M32R_PAGE_H
#define _ASM_M32R_PAGE_H

#include <linux/const.h>

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

#ifndef __ASSEMBLY__
Expand Down

0 comments on commit 8b1c9be

Please sign in to comment.