- Fix rare crashe in the intr_lapic_tlb_bcast() handler: save and setup
commit1e63ae6b49540e92dddbe6b168dbfe44dcc147a6
authorMindaugas Rasiukevicius <rmind@NetBSD.org>
Thu, 9 Jul 2009 21:43:17 +0000 (9 21:43 +0000)
committerMindaugas Rasiukevicius <rmind@NetBSD.org>
Thu, 9 Jul 2009 21:43:17 +0000 (9 21:43 +0000)
treef5eb064e7f175cfd86ef69072fee1d2ea4526788
parent26a5652fe11b21f7a96f01c7703432c9a9aef0d9
- Fix rare crashe in the intr_lapic_tlb_bcast() handler: save and setup
  %fs on i386, %gs on amd64 registers, before using them.  Otherwise, it
  might be invalid/garbage, eg. IPI can interrupt userspace.

- Explicitly initialize per-CPU emap generation number.

Thanks <drochner> for reporting and testing of patch.
sys/arch/amd64/amd64/vector.S
sys/arch/i386/i386/vector.S
sys/uvm/uvm_emap.c