ia64/xen-unstable

changeset 4481:835fa5f22345

bitkeeper revision 1.1236.59.3 (4252b590LO54UKkVePo_Yhb6PbX72g)

ia64: Minor cleanup
author djm@djmnc4000.(none)
date Tue Apr 05 15:58:08 2005 +0000 (2005-04-05)
parents 47a052edfe9f
children ae3b1e86f62d
files xen/arch/ia64/domain.c xen/include/asm-ia64/vhpt.h
line diff
     1.1 --- a/xen/arch/ia64/domain.c	Tue Apr 05 15:54:09 2005 +0000
     1.2 +++ b/xen/arch/ia64/domain.c	Tue Apr 05 15:58:08 2005 +0000
     1.3 @@ -246,13 +246,14 @@ void new_thread(struct exec_domain *ed,
     1.4  #endif
     1.5  	regs = (struct pt_regs *) ((unsigned long) ed + IA64_STK_OFFSET) - 1;
     1.6  	sw = (struct switch_stack *) regs - 1;
     1.7 +	memset(sw,0,sizeof(struct switch_stack)+sizeof(struct pt_regs));
     1.8  	new_rbs = (unsigned long) ed + IA64_RBS_OFFSET;
     1.9  	regs->cr_ipsr = ia64_getreg(_IA64_REG_PSR)
    1.10  		| IA64_PSR_BITS_TO_SET | IA64_PSR_BN
    1.11  		& ~(IA64_PSR_BITS_TO_CLEAR | IA64_PSR_RI | IA64_PSR_IS);
    1.12  	regs->cr_ipsr |= 2UL << IA64_PSR_CPL0_BIT; // domain runs at PL2
    1.13  	regs->cr_iip = start_pc;
    1.14 -	regs->ar_rsc = 0xf;		/* eager mode, privilege level 1 */
    1.15 +	regs->ar_rsc = 0;		/* lazy mode */
    1.16  	regs->ar_rnat = 0;
    1.17  	regs->ar_fpsr = sw->ar_fpsr = FPSR_DEFAULT;
    1.18  	regs->loadrs = 0;
     2.1 --- a/xen/include/asm-ia64/vhpt.h	Tue Apr 05 15:54:09 2005 +0000
     2.2 +++ b/xen/include/asm-ia64/vhpt.h	Tue Apr 05 15:58:08 2005 +0000
     2.3 @@ -135,7 +135,7 @@ struct vhpt_lf_entry {
     2.4  // VHPT_CCHAIN_LOOKUP is intended to run with psr.i+ic off
     2.5  #define VHPT_CCHAIN_LOOKUP(Name, i_or_d) 			\
     2.6  								\
     2.7 -Name:;								\
     2.8 +CC_##Name:;							\
     2.9  	mov r31 = pr;						\
    2.10  	mov r16 = cr.ifa;					\
    2.11  	movl r30 = int_counts;					\