Remove md_bspstore from the MD fields of struct thread. Now that

the backing store is at a fixed address, there's no need for a
per-thread variable.
This commit is contained in:
Marcel Moolenaar 2003-10-21 01:13:49 +00:00
parent b6f0aad2fb
commit 9ee99eb496
3 changed files with 2 additions and 4 deletions

View file

@ -1217,7 +1217,7 @@ exec_setregs(struct thread *td, u_long entry, u_long stack, u_long ps_strings)
bzero(&tf->tf_scratch, sizeof(tf->tf_scratch));
bzero(&tf->tf_scratch_fp, sizeof(tf->tf_scratch_fp));
tf->tf_special.cfm = (1UL<<63) | (3UL<<7) | 3UL;
tf->tf_special.bspstore = td->td_md.md_bspstore;
tf->tf_special.bspstore = IA64_BACKINGSTORE;
/*
* Copy the arguments onto the kernel register stack so that
* they get loaded by the loadrs instruction. Skip over the
@ -1236,7 +1236,7 @@ exec_setregs(struct thread *td, u_long entry, u_long stack, u_long ps_strings)
tf->tf_special.ndirty = (ksttop - kst) << 3;
} else { /* epc syscalls (default). */
tf->tf_special.cfm = (3UL<<62) | (3UL<<7) | 3UL;
tf->tf_special.bspstore = td->td_md.md_bspstore + 24;
tf->tf_special.bspstore = IA64_BACKINGSTORE + 24;
/*
* Write values for out0, out1 and out2 to the user's backing
* store and arrange for them to be restored into the user's

View file

@ -37,7 +37,6 @@
struct mdthread {
u_long md_flags;
vm_offset_t md_bspstore; /* initial ar.bspstore */
register_t md_savecrit;
};

View file

@ -873,7 +873,6 @@ exec_new_vmspace(imgp, sv)
sv->sv_stackprot, VM_PROT_ALL, MAP_STACK_GROWS_UP);
if (error)
return (error);
FIRST_THREAD_IN_PROC(p)->td_md.md_bspstore = stack_addr;
#endif
/* vm_ssize and vm_maxsaddr are somewhat antiquated concepts in the