projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maps4: rework TASK_SIZE macros
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git]
/
include
/
asm-powerpc
/
processor.h
diff --git
a/include/asm-powerpc/processor.h
b/include/asm-powerpc/processor.h
index e28b108051592d443c9f6da8982c2740be780424..1f4765d6546fe0313b6bbc150ff38b509d6811ba 100644
(file)
--- a/
include/asm-powerpc/processor.h
+++ b/
include/asm-powerpc/processor.h
@@
-99,8
+99,9
@@
extern struct task_struct *last_task_used_spe;
*/
#define TASK_SIZE_USER32 (0x0000000100000000UL - (1*PAGE_SIZE))
*/
#define TASK_SIZE_USER32 (0x0000000100000000UL - (1*PAGE_SIZE))
-#define TASK_SIZE
(test_thread_flag(
TIF_32BIT) ? \
+#define TASK_SIZE
_OF(tsk) (test_tsk_thread_flag(tsk,
TIF_32BIT) ? \
TASK_SIZE_USER32 : TASK_SIZE_USER64)
TASK_SIZE_USER32 : TASK_SIZE_USER64)
+#define TASK_SIZE TASK_SIZE_OF(current)
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
@@
-145,9
+146,9
@@
struct thread_struct {
unsigned long dabr; /* Data address breakpoint register */
#ifdef CONFIG_ALTIVEC
/* Complete AltiVec register set */
unsigned long dabr; /* Data address breakpoint register */
#ifdef CONFIG_ALTIVEC
/* Complete AltiVec register set */
- vector128 vr[32] __attribute((aligned(16)));
+ vector128 vr[32] __attribute
__
((aligned(16)));
/* AltiVec status */
/* AltiVec status */
- vector128 vscr __attribute((aligned(16)));
+ vector128 vscr __attribute
__
((aligned(16)));
unsigned long vrsave;
int used_vr; /* set if process has used altivec */
#endif /* CONFIG_ALTIVEC */
unsigned long vrsave;
int used_vr; /* set if process has used altivec */
#endif /* CONFIG_ALTIVEC */