Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 469 → Rev 470

/SPARTAN/trunk/arch/ia64/src/cpu/cpu.c
3,41 → 3,24
#include <panic.h>
#include <arch/types.h>
 
extern int IVT;
 
 
 
 
void cpu_arch_init(void)
{
 
 
 
int *p=&IVT;
volatile __u64 hlp,hlp2;
 
 
int psr = 0x2000;
int psr = 0x2000;
 
__asm__ volatile (
"mov cr2 = %0;;\n"
"{mov psr.l = %1;;}\n"
"{mov psr.l = %0 ;;}\n"
"{srlz.i;"
"srlz.d;;}"
"srlz.d ;;}"
:
: "r" (p), "r" (psr)
: "r" (psr)
);
 
 
 
/*Switch register bank of regs r16 .. r31 to 1 It is automaticly cleared on exception*/
/* Switch to register bank 1. */
__asm__ volatile
(
"bsw.1;;\n"
);
 
}