help about trap_setup..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In trap path "trap_setup", if in trap window we will jmp to "trap_setup_kernel_spill". 
 
  /* See if we are in the trap window. */
  93        andcc   %t_twinmask, %t_wim, %g0
  94        bne     trap_setup_kernel_spill         ! in trap window, clean up
  95         nop
  96
  97        /* Trap from kernel with a window available.
  98         * Just do it...
  99         */
 100        jmpl    %t_retpc + 0x8, %g0     ! return to caller
 101         mov    %t_kstack, %sp          ! jump onto new stack
 102
 103trap_setup_kernel_spill:
 104        ld      [%curptr + TI_UWINMASK], %g1
 105        orcc    %g0, %g1, %g0
 106        bne     trap_setup_user_spill   ! there are some user windows, yuck

But where is the %curptr in line 104 is setted? 
 
the comment said   #define curptr g6 /* Set after pt_regs frame is built */ 
 
but i can't find the code set %g6 in these scene. 
 
what'more, what are "user windows" like the line 106 said meaning. There need a lot of particular dealing, 
 
I am still reading it. 
 
Thanks! 

---
Best regards

Bob Liu
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux