Skip to content
Snippets Groups Projects
Commit aa296ddf authored by Tim Abbott's avatar Tim Abbott Committed by Chen Liqin
Browse files

score: Make PAGE_SIZE available to assembly.

parent 7fa07729
Branches
Tags
No related merge requests found
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
#define _ASM_SCORE_PAGE_H #define _ASM_SCORE_PAGE_H
#include <linux/pfn.h> #include <linux/pfn.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))
#ifdef __KERNEL__ #ifdef __KERNEL__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment