freebsd-dev/sys/pc98/pc98
Mitsuru IWASAKI e3fd0bc1b2 Add SMP/i386 suspend/resume support.
Most part is merged from amd64.

- i386/acpica/acpi_wakecode.S
Replaced with amd64 code (from realmode to paging enabling code).

- i386/acpica/acpi_wakeup.c
Replaced with amd64 code (except for wakeup_pagetables stuff).

- i386/include/pcb.h
- i386/i386/genassym.c
Added PCB new members (CR0, CR2, CR4, DS, ED, FS, SS, GDT, IDT, LDT
and TR) needed for suspend/resume, not for context switch.

- i386/i386/swtch.s
Added suspendctx() and resumectx().
Note that savectx() was not changed and used for suspending (while
amd64 code uses it).
BSP and AP execute the same sequence, suspendctx(), acpi_wakecode()
and resumectx() for suspend/resume (in case of UP system also).

- i386/i386/apic_vector.s
Added cpususpend().

- i386/i386/mp_machdep.c
- i386/include/smp.h
Added cpususpend_handler().

- i386/include/apicvar.h
- kern/subr_smp.c
- sys/smp.h
Added IPI_SUSPEND and suspend_cpus().

- i386/i386/initcpu.c
- i386/i386/machdep.c
- i386/include/md_var.h
- pc98/pc98/machdep.c
Moved initializecpu() declarations to md_var.h.

MFC after:	3 days
2012-05-18 18:55:58 +00:00
..
busio.s
busiosubr.c Rename BUS_SPACE_IO and BUS_SPACE_MEM defines to BUS_SPACE_TAG_IO and 2010-10-31 03:03:20 +00:00
canbepm.c
canbus_if.m
canbus.c bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
canbus.h
canbusvars.h
machdep.c Add SMP/i386 suspend/resume support. 2012-05-18 18:55:58 +00:00
pc98_machdep.c Change ad_firmware_geom_adjust() to operate on a struct disk * only and 2010-05-20 12:46:19 +00:00
pc98_machdep.h Move the scsi_da_bios_params() prototype from pc98_machdep.h to md_var.h 2011-11-27 16:22:19 +00:00