All of lore.kernel.org
 help / color / mirror / Atom feed
* help about trap_setup..
@ 2008-12-11  3:17 Bob
  2008-12-12  9:02 ` Bob
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bob @ 2008-12-11  3:17 UTC (permalink / raw)
  To: sparclinux


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-13  6:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11  3:17 help about trap_setup Bob
2008-12-12  9:02 ` Bob
2008-12-12 10:55 ` Sam Ravnborg
2008-12-13  4:44 ` David Miller
2008-12-13  6:01 ` Bob

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.