x86: add PAGE_KERNEL_EXEC_NOCACHE
[wrt350n-kernel.git] / arch / powerpc / boot / reg.h
blobd3cd9ee98afb9fe1e6aeaaa8ea758db23230b523
1 #ifndef _PPC_BOOT_REG_H
2 #define _PPC_BOOT_REG_H
3 /*
4 * Copyright 2007 Davud Gibson, IBM Corporation.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
12 static inline u32 mfpvr(void)
14 u32 pvr;
15 asm volatile ("mfpvr %0" : "=r"(pvr));
16 return pvr;
19 register void *__stack_pointer asm("r1");
20 #define get_sp() (__stack_pointer)
22 #endif /* _PPC_BOOT_REG_H */