Subversion Repositories HelenOS-historic

Rev

Rev 238 | 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.  
  5. extern int IVT;
  6.  
  7.  
  8.  
  9.  
  10. void cpu_arch_init(void)
  11. {
  12.  
  13.  
  14.  
  15.     int *p=&IVT;
  16.  
  17.  
  18.     __asm__ (
  19.         "mov r15 = %0;;"
  20.         "mov cr2 = r15;;"
  21.         :
  22.         : "r" (p)
  23.         : "r15"
  24.     );
  25.  
  26. }
  27.  
  28.  
  29. void gugux_pokus(void);
  30. void gugux_pokus(void)
  31. {
  32.     panic("\n\nGUGUX Exception\n\n");
  33. }
  34.  
  35.  
  36.  
  37.