Port-i386 archive

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

fuswintr(9) implementation questions



I have a few questions about the implementation of fuswintr(9) in
sys/arch/i386/i386/copy.S:

1 Is it safe to call fuswintr(9) from NON-interrupt context?  The manual
  says that it is safe from interrupt context, but it is silent about
  non-interrupt context.

2 Will fuswintr(9) mistakenly reset the fault handler?  It does not
  check whether pcb_onfault is NULL or not before replacing it with
  fusuaddrfault, and it always restores pcb_onfault to NULL before it
  returns.  It seems that fuswintr(9) will reset its own fault handler
  if, while it already runs in a low-priority interrupt, it runs again
  in a high-priority interrupt.

3 How would a hypothetical fkswintr(9) routine differ from fuswintr(9)?
  That is, how would fetching from the kernel's address space look
  different?

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index