Commit 8a3fb763 authored by Richard Henderson's avatar Richard Henderson

Fixes for premature thread_info changeset.

Minor warning removal.
parent 374eeee8
...@@ -14,9 +14,9 @@ void foo(void) ...@@ -14,9 +14,9 @@ void foo(void)
OUT("#define __ASM_OFFSETS_H__"); OUT("#define __ASM_OFFSETS_H__");
OUT(""); OUT("");
DEF("TI_TASK", offsetof(struct thread_struct, task)); DEF("TI_TASK", offsetof(struct thread_info, task));
DEF("TI_FLAGS", offsetof(struct thread_struct, flags)); DEF("TI_FLAGS", offsetof(struct thread_info, flags));
DEF("TI_CPU", offsetof(struct thread_struct, cpu)); DEF("TI_CPU", offsetof(struct thread_info, cpu));
DEF("PT_PTRACED", PT_PTRACED); DEF("PT_PTRACED", PT_PTRACED);
DEF("CLONE_VM", CLONE_VM); DEF("CLONE_VM", CLONE_VM);
......
...@@ -205,11 +205,10 @@ kernel_thread: ...@@ -205,11 +205,10 @@ kernel_thread:
stq $1, SP_OFF+8($30) /* pc */ stq $1, SP_OFF+8($30) /* pc */
stq $29, SP_OFF+16($30) /* gp */ stq $29, SP_OFF+16($30) /* gp */
stq $16, 136($30) /* $27; FN for child */ stq $16, 136($30) /* $27; FN for child */
stq $17, 160($30) /* $16; ARG for child */ stq $17, SP_OFF+24($30) /* $16; ARG for child */
stq $8, 64($30) /* $8 */ stq $8, 64($30) /* $8 */
stq $26, 128($30) /* $26 */ stq $26, 128($30) /* $26 */
/* Avoid the HAE being gratuitously wrong, which would cause us /* Avoid the HAE being gratuitously wrong, to avoid restoring it. */
to go off to restore it. */
ldq $2, alpha_mv+HAE_CACHE ldq $2, alpha_mv+HAE_CACHE
stq $2, 152($30) /* HAE */ stq $2, 152($30) /* HAE */
......
...@@ -776,7 +776,7 @@ asmlinkage unsigned long osf_getsysinfo(unsigned long op, void *buffer, ...@@ -776,7 +776,7 @@ asmlinkage unsigned long osf_getsysinfo(unsigned long op, void *buffer,
/* Return current software fp control & status bits. */ /* Return current software fp control & status bits. */
/* Note that DU doesn't verify available space here. */ /* Note that DU doesn't verify available space here. */
w = current_thread_info->ieee_state & IEEE_SW_MASK; w = current_thread_info()->ieee_state & IEEE_SW_MASK;
w = swcr_update_status(w, rdfpcr()); w = swcr_update_status(w, rdfpcr());
if (put_user(w, (unsigned long *) buffer)) if (put_user(w, (unsigned long *) buffer))
return -EFAULT; return -EFAULT;
......
...@@ -186,7 +186,8 @@ ptrace_set_bpt(struct task_struct * child) ...@@ -186,7 +186,8 @@ ptrace_set_bpt(struct task_struct * child)
displ = ((s32)(insn << 11)) >> 9; displ = ((s32)(insn << 11)) >> 9;
child->thread_info->bpt_addr[nsaved++] = pc + 4; child->thread_info->bpt_addr[nsaved++] = pc + 4;
if (displ) /* guard against unoptimized code */ if (displ) /* guard against unoptimized code */
child->thread.bpt_addr[nsaved++] = pc + 4 + displ; child->thread_info->bpt_addr[nsaved++]
= pc + 4 + displ;
DBG(DBG_BPT, ("execing branch\n")); DBG(DBG_BPT, ("execing branch\n"));
} else if (op_code == 0x1a) { } else if (op_code == 0x1a) {
reg_b = (insn >> 16) & 0x1f; reg_b = (insn >> 16) & 0x1f;
......
...@@ -131,7 +131,7 @@ dik_show_trace(unsigned long *sp) ...@@ -131,7 +131,7 @@ dik_show_trace(unsigned long *sp)
void show_trace_task(struct task_struct * tsk) void show_trace_task(struct task_struct * tsk)
{ {
struct thread_info *ti = &tsk->thread_info; struct thread_info *ti = tsk->thread_info;
unsigned long fp, sp = ti->pcb.ksp, base = (unsigned long) ti; unsigned long fp, sp = ti->pcb.ksp, base = (unsigned long) ti;
if (sp > base && sp+6*8 < base + 16*1024) { if (sp > base && sp+6*8 < base + 16*1024) {
...@@ -330,7 +330,7 @@ do_entIF(unsigned long type, unsigned long a1, ...@@ -330,7 +330,7 @@ do_entIF(unsigned long type, unsigned long a1,
FP registers, PAL_clrfen is not useful except for DoS FP registers, PAL_clrfen is not useful except for DoS
attacks. So turn the bleeding FPU back on and be done attacks. So turn the bleeding FPU back on and be done
with it. */ with it. */
current_thead_info()->pcb.flags |= 1; current_thread_info()->pcb.flags |= 1;
__reload_thread(&current_thread_info()->pcb); __reload_thread(&current_thread_info()->pcb);
return; return;
......
...@@ -236,7 +236,7 @@ end_b: ...@@ -236,7 +236,7 @@ end_b:
* entry point. * entry point.
*/ */
.align 4 .align 4
.ent __memset .ent __constant_c_memset
__constant_c_memset: __constant_c_memset:
.frame $30,0,$26,0 .frame $30,0,$26,0
.prologue 0 .prologue 0
......
...@@ -269,7 +269,7 @@ callback_init(void * kernel_end) ...@@ -269,7 +269,7 @@ callback_init(void * kernel_end)
/* Let vmalloc know that we've allocated some space. */ /* Let vmalloc know that we've allocated some space. */
console_remap_vm.flags = VM_ALLOC; console_remap_vm.flags = VM_ALLOC;
console_remap_vm.addr = VMALLOC_START; console_remap_vm.addr = (void *) VMALLOC_START;
console_remap_vm.size = vaddr - VMALLOC_START; console_remap_vm.size = vaddr - VMALLOC_START;
vmlist = &console_remap_vm; vmlist = &console_remap_vm;
} }
......
#ifndef __ASM_OFFSETS_H__
#define __ASM_OFFSETS_H__
#define TASK_STATE 0
#define TASK_FLAGS 8
#define TASK_SIGPENDING 16
#define TASK_ADDR_LIMIT 24
#define TASK_EXEC_DOMAIN 32
#define TASK_NEED_RESCHED 40
#define TASK_SIZE 1096
#define STACK_SIZE 16384
#define HAE_CACHE 0
#define HAE_REG 8
#endif /* __ASM_OFFSETS_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment