Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33983
b: refs/heads/master
c: ac7fb27
h: refs/heads/master
i:
  33981: 1ee705c
  33979: b8043c4
  33975: 7384516
  33967: c15be41
  33951: 4aae935
  33919: 2e0e789
v: v3
  • Loading branch information
Matthew Wilcox authored and Linus Torvalds committed Sep 19, 2006
1 parent 02daea4 commit b1699c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 020d8c063b4d850b53dfbaee843c8335b7a90d26
refs/heads/master: ac7fb273ca1d0b4fb354575bb6e101ffd09e0b54
18 changes: 5 additions & 13 deletions trunk/include/asm-parisc/page.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
#ifndef _PARISC_PAGE_H
#define _PARISC_PAGE_H

#if !defined(__KERNEL__)
/* this is for userspace applications (4k page size) */
# define PAGE_SHIFT 12 /* 4k */
# define PAGE_SIZE (1UL << PAGE_SHIFT)
# define PAGE_MASK (~(PAGE_SIZE-1))
#endif


#ifdef __KERNEL__

#if defined(CONFIG_PARISC_PAGE_SIZE_4KB)
# define PAGE_SHIFT 12 /* 4k */
# define PAGE_SHIFT 12
#elif defined(CONFIG_PARISC_PAGE_SIZE_16KB)
# define PAGE_SHIFT 14 /* 16k */
# define PAGE_SHIFT 14
#elif defined(CONFIG_PARISC_PAGE_SIZE_64KB)
# define PAGE_SHIFT 16 /* 64k */
# define PAGE_SHIFT 16
#else
# error "unknown default kernel page size"
#endif
Expand Down Expand Up @@ -188,9 +180,9 @@ extern int npmem_ranges;
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#endif /* __KERNEL__ */

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>

#endif /* __KERNEL__ */

#endif /* _PARISC_PAGE_H */

0 comments on commit b1699c2

Please sign in to comment.