diff options
author | Michal Simek <monstr@monstr.eu> | 2009-05-26 10:30:20 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-05-26 10:45:19 -0400 |
commit | 23cfc369337fa106d08cbed0dc86527c67966ff2 (patch) | |
tree | 9970577867bc9c537385adfdef01ee6045c05590 /arch/microblaze/include/asm | |
parent | 627cef44f4f4dfc22bebf3a68378bf3e3bedd21e (diff) |
microblaze_mmu_v2: Add CURRENT_TASK for entry.S
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r-- | arch/microblaze/include/asm/current.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/current.h b/arch/microblaze/include/asm/current.h index 8375ea991e26..29303ed825cc 100644 --- a/arch/microblaze/include/asm/current.h +++ b/arch/microblaze/include/asm/current.h | |||
@@ -1,4 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> | ||
3 | * Copyright (C) 2008-2009 PetaLogix | ||
2 | * Copyright (C) 2006 Atmark Techno, Inc. | 4 | * Copyright (C) 2006 Atmark Techno, Inc. |
3 | * | 5 | * |
4 | * This file is subject to the terms and conditions of the GNU General Public | 6 | * This file is subject to the terms and conditions of the GNU General Public |
@@ -9,6 +11,12 @@ | |||
9 | #ifndef _ASM_MICROBLAZE_CURRENT_H | 11 | #ifndef _ASM_MICROBLAZE_CURRENT_H |
10 | #define _ASM_MICROBLAZE_CURRENT_H | 12 | #define _ASM_MICROBLAZE_CURRENT_H |
11 | 13 | ||
14 | /* | ||
15 | * Register used to hold the current task pointer while in the kernel. | ||
16 | * Any `call clobbered' register without a special meaning should be OK, | ||
17 | * but check asm/microblaze/kernel/entry.S to be sure. | ||
18 | */ | ||
19 | #define CURRENT_TASK r31 | ||
12 | # ifndef __ASSEMBLY__ | 20 | # ifndef __ASSEMBLY__ |
13 | /* | 21 | /* |
14 | * Dedicate r31 to keeping the current task pointer | 22 | * Dedicate r31 to keeping the current task pointer |