Minor warning removal.
OUT("#define __ASM_OFFSETS_H__");
OUT("");
- DEF("TI_TASK", offsetof(struct thread_struct, task));
- DEF("TI_FLAGS", offsetof(struct thread_struct, flags));
- DEF("TI_CPU", offsetof(struct thread_struct, cpu));
+ DEF("TI_TASK", offsetof(struct thread_info, task));
+ DEF("TI_FLAGS", offsetof(struct thread_info, flags));
+ DEF("TI_CPU", offsetof(struct thread_info, cpu));
DEF("PT_PTRACED", PT_PTRACED);
DEF("CLONE_VM", CLONE_VM);
stq $1, SP_OFF+8($30) /* pc */
stq $29, SP_OFF+16($30) /* gp */
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 $26, 128($30) /* $26 */
- /* Avoid the HAE being gratuitously wrong, which would cause us
- to go off to restore it. */
+ /* Avoid the HAE being gratuitously wrong, to avoid restoring it. */
ldq $2, alpha_mv+HAE_CACHE
stq $2, 152($30) /* HAE */
/* Return current software fp control & status bits. */
/* 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());
if (put_user(w, (unsigned long *) buffer))
return -EFAULT;
displ = ((s32)(insn << 11)) >> 9;
child->thread_info->bpt_addr[nsaved++] = pc + 4;
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"));
} else if (op_code == 0x1a) {
reg_b = (insn >> 16) & 0x1f;
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;
if (sp > base && sp+6*8 < base + 16*1024) {
FP registers, PAL_clrfen is not useful except for DoS
attacks. So turn the bleeding FPU back on and be done
with it. */
- current_thead_info()->pcb.flags |= 1;
+ current_thread_info()->pcb.flags |= 1;
__reload_thread(¤t_thread_info()->pcb);
return;
* entry point.
*/
.align 4
- .ent __memset
+ .ent __constant_c_memset
__constant_c_memset:
.frame $30,0,$26,0
.prologue 0
/* Let vmalloc know that we've allocated some space. */
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;
vmlist = &console_remap_vm;
}
+++ /dev/null
-#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__ */