freebsd-dev/sys/mips
Neel Natu 9dd3fbb0f2 Provide access to pcpu structures for SMP kernels.
The basic idea is to use a the same virtual address as a window onto
distinct physical memory locations - one per processor. The physical
address that you access through this mapping depends on which cpu you
are currently executing on. We can now use the same virtual address
on any processor to access its per-cpu area.

The details are:

- The virtual address for 'struct pcpu *pcpup' is obtained by
  stealing 2 pages worth of KVA in pmap_bootstrap().

- The mapping from the constant virtual address to a distinct
  physical page is done in cpu_pcpu_init() through a wired TLB entry.

- A side-effect of this is that we reserve 2 pages worth of memory
  for the pcpu but in reality it needs much less than that. The unused
  memory is now used as the boot stack for the BSP and APs.

Remove SMP-specific bits from locore.S. The plan is to use a separate
mpboot.S for AP bootstrap.

Discussed on: freebsd-mips

Approved by: imp (mentor)
2010-01-30 01:54:29 +00:00
..
adm5120 - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
alchemy - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
atheros - Increase timeouts to 100 milliseconds, 1 millisecond is definitely not 2010-01-28 21:55:56 +00:00
cavium Add Cavium's standard copyright to those files that are currently 2010-01-28 20:46:40 +00:00
compile
conf Comment out any reference to ALCHEMY.hints until it's committed, to unbreak 2010-01-28 14:59:16 +00:00
idt - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
include Provide access to pcpu structures for SMP kernels. 2010-01-30 01:54:29 +00:00
malta - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
mips Provide access to pcpu structures for SMP kernels. 2010-01-30 01:54:29 +00:00
rmi Its possible that our RMI box has memory extending 2010-01-29 04:05:17 +00:00
sentry5 - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
sibyte Install the XTLB exception handler for Sibyte processors. 2010-01-26 03:39:10 +00:00