]> rtime.felk.cvut.cz Git - l4.git/blobdiff - kernel/fiasco/src/kern/sparc/thread-jdb.cpp
update
[l4.git] / kernel / fiasco / src / kern / sparc / thread-jdb.cpp
index cb839915a02199ceb5b14c2239fa5a94ba34749c..ce17d12e70f054bc9c2f4bd7bc6d6f3d36d6eb82 100644 (file)
@@ -25,7 +25,7 @@ extern "C" void sys_kdb_ke()
   Thread *t = current_thread();
 
   //arriving from outx function
-  unsigned *x = (unsigned *)t->regs()->ip();
+  //unsigned *x = (unsigned *)t->regs()->ip();
   if(t->regs()->r[29] == (Mword)-0x24 && t->regs()->r[2] & (1 << 31)) //ip && r3
     {
       NOT_IMPL_PANIC;
@@ -50,10 +50,10 @@ extern "C" void sys_kdb_ke()
 
 IMPLEMENT
 int
-Thread::call_nested_trap_handler(Trap_state *ts)
+Thread::call_nested_trap_handler(Trap_state * /*ts*/)
 {
   unsigned phys_cpu = Proc::cpu_id();
-  unsigned log_cpu = Cpu::p2l(phys_cpu);
+  unsigned log_cpu = Cpu::cpus.find_cpu(Cpu::By_phys_id(phys_cpu));
   if (log_cpu == ~0U)
     {
       printf("Trap on unknown CPU phys_id=%x\n", phys_cpu);