Subversion Repositories HelenOS

Rev

Rev 272 | Rev 473 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include <cpu.h>
  2. #include <print.h>
  3. #include <panic.h>
  4. #include <arch/types.h>
  5.  
  6. void cpu_arch_init(void)
  7. {
  8.     int psr = 0x2000;
  9.    
  10.     __asm__  volatile (
  11.         "{mov psr.l = %0 ;;}\n"
  12.         "{srlz.i;"
  13.         "srlz.d ;;}"
  14.         :
  15.         : "r" (psr)
  16.     );
  17.  
  18.     /* Switch to register bank 1. */
  19.     __asm__ volatile
  20.     (
  21.         "bsw.1;;\n"
  22.     );            
  23.    
  24. }
  25.  
  26.  
  27.