diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-31 23:41:53 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-31 23:41:53 -0400 |
| commit | d6dd9e93c7531fa31370e27d053a3940d8d662fb (patch) | |
| tree | afab573031b3f0b9bbe5e417a890f7cae09a7224 /include/asm-mips/processor.h | |
| parent | dd9cd6d4351076c78bb8c0f9146d1904b481fdbb (diff) | |
| parent | b4b2917cc8babe8eaf4bc133bca31b11ed7dac13 (diff) | |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (50 commits)
[MIPS] Add smp_call_function_single()
[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc
[MIPS] Kexec: Fix several 64-bit bugs.
[MIPS] Kexec: Fix several warnings.
[MIPS] DDB5477: Remove support
[MIPS] Fulong: Remove unneeded header file
[MIPS] Cobalt: Enable UART on RaQ1
[MIPS] Remove unused GROUP_TOSHIBA_NAMES
[MIPS] remove some duplicate includes
[MIPS] Oprofile: Fix rm9000 performance counter handler
[MIPS] Use -Werror on subdirectories which build cleanly.
[MIPS] Yosemite: Fix warning.
[MIPS] PMON: Fix cpustart declaration.
[MIPS] Yosemite: Only build ll_ht_smp_irq_handler() if HYPERTRANSPORT.
[MIPS] Yosemite: Fix build error due to undeclared titan_mailbox_irq().
[MIPS] Yosemite: Don't declare titan_mailbox_irq() as asmlinkage.
[MIPS] Yosemite: Fix warnings in i2c-yoesmite by deleting the unused code.
[MIPS] Delete unused arch/mips/gt64120/common/
[MIPS] Fix build warning in unaligned load/store emulator.
[MIPS] IP32: Don't ignore request_irq's return value.
...
Diffstat (limited to 'include/asm-mips/processor.h')
| -rw-r--r-- | include/asm-mips/processor.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/include/asm-mips/processor.h b/include/asm-mips/processor.h index 1d8b9a8ae324..83bc94534084 100644 --- a/include/asm-mips/processor.h +++ b/include/asm-mips/processor.h | |||
| @@ -62,8 +62,9 @@ extern unsigned int vced_count, vcei_count; | |||
| 62 | * This decides where the kernel will search for a free chunk of vm | 62 | * This decides where the kernel will search for a free chunk of vm |
| 63 | * space during mmap's. | 63 | * space during mmap's. |
| 64 | */ | 64 | */ |
| 65 | #define TASK_UNMAPPED_BASE ((current->thread.mflags & MF_32BIT_ADDR) ? \ | 65 | #define TASK_UNMAPPED_BASE \ |
| 66 | PAGE_ALIGN(TASK_SIZE32 / 3) : PAGE_ALIGN(TASK_SIZE / 3)) | 66 | (test_thread_flag(TIF_32BIT_ADDR) ? \ |
| 67 | PAGE_ALIGN(TASK_SIZE32 / 3) : PAGE_ALIGN(TASK_SIZE / 3)) | ||
| 67 | #endif | 68 | #endif |
| 68 | 69 | ||
| 69 | #define NUM_FPU_REGS 32 | 70 | #define NUM_FPU_REGS 32 |
| @@ -132,22 +133,11 @@ struct thread_struct { | |||
| 132 | unsigned long cp0_baduaddr; /* Last kernel fault accessing USEG */ | 133 | unsigned long cp0_baduaddr; /* Last kernel fault accessing USEG */ |
| 133 | unsigned long error_code; | 134 | unsigned long error_code; |
| 134 | unsigned long trap_no; | 135 | unsigned long trap_no; |
| 135 | #define MF_FIXADE 1 /* Fix address errors in software */ | ||
| 136 | #define MF_LOGADE 2 /* Log address errors to syslog */ | ||
| 137 | #define MF_32BIT_REGS 4 /* also implies 16/32 fprs */ | ||
| 138 | #define MF_32BIT_ADDR 8 /* 32-bit address space (o32/n32) */ | ||
| 139 | #define MF_FPUBOUND 0x10 /* thread bound to FPU-full CPU set */ | ||
| 140 | unsigned long mflags; | ||
| 141 | unsigned long irix_trampoline; /* Wheee... */ | 136 | unsigned long irix_trampoline; /* Wheee... */ |
| 142 | unsigned long irix_oldctx; | 137 | unsigned long irix_oldctx; |
| 143 | struct mips_abi *abi; | 138 | struct mips_abi *abi; |
| 144 | }; | 139 | }; |
| 145 | 140 | ||
| 146 | #define MF_ABI_MASK (MF_32BIT_REGS | MF_32BIT_ADDR) | ||
| 147 | #define MF_O32 (MF_32BIT_REGS | MF_32BIT_ADDR) | ||
| 148 | #define MF_N32 MF_32BIT_ADDR | ||
| 149 | #define MF_N64 0 | ||
| 150 | |||
| 151 | #ifdef CONFIG_MIPS_MT_FPAFF | 141 | #ifdef CONFIG_MIPS_MT_FPAFF |
| 152 | #define FPAFF_INIT \ | 142 | #define FPAFF_INIT \ |
| 153 | .emulated_fp = 0, \ | 143 | .emulated_fp = 0, \ |
| @@ -200,10 +190,6 @@ struct thread_struct { | |||
| 200 | .cp0_baduaddr = 0, \ | 190 | .cp0_baduaddr = 0, \ |
| 201 | .error_code = 0, \ | 191 | .error_code = 0, \ |
| 202 | .trap_no = 0, \ | 192 | .trap_no = 0, \ |
| 203 | /* \ | ||
| 204 | * For now the default is to fix address errors \ | ||
| 205 | */ \ | ||
| 206 | .mflags = MF_FIXADE, \ | ||
| 207 | .irix_trampoline = 0, \ | 193 | .irix_trampoline = 0, \ |
| 208 | .irix_oldctx = 0, \ | 194 | .irix_oldctx = 0, \ |
| 209 | } | 195 | } |
