swapon: add swapflags definitions
[trinity.git] / include / arch-ppc.h
blob00dfe589ea3b9cde9cc5d6f17317cd7e94076dee
1 #pragma once
3 #ifdef __powerpc64__
4 #define KERNEL_ADDR 0xc000000000000000UL
5 #define MODULE_ADDR 0xd000000000000000UL
6 #define PAGE_OFFSET 0xc000000000000000UL
7 #define TASK_SIZE (PAGE_OFFSET)
9 #define PAGE_SHIFT 12
10 #define BITS_PER_LONG 64
11 #define PTE_RPN_SHIFT (PAGE_SHIFT)
12 #define PTE_FILE_MAX_BITS (BITS_PER_LONG - PTE_RPN_SHIFT)
14 #else /* __powerpc64__ */
16 #define KERNEL_ADDR 0xc0000000
17 #define MODULE_ADDR 0xd0000000
18 #define PAGE_OFFSET 0xc0000000
19 #define TASK_SIZE (PAGE_OFFSET)
21 #define PAGE_SHIFT 12
22 #define BITS_PER_LONG 32
23 #define PTE_RPN_SHIFT (PAGE_SHIFT)
24 #define PTE_FILE_MAX_BITS (BITS_PER_LONG - PTE_RPN_SHIFT)
26 #endif /* __powerpc64__ */
28 #define SYSCALLS syscalls_ppc