acpi_wakecode.S (121603) | acpi_wakecode.S (121641) |
---|---|
1/*- 2 * Copyright (c) 2001 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2001 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <machine/asm.h> | 1/*- 2 * Copyright (c) 2001 Takanori Watanabe <takawata@jp.freebsd.org> 3 * Copyright (c) 2001 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <machine/asm.h> |
29__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_wakecode.S 121603 2003-10-27 06:26:51Z njl $"); | 29__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_wakecode.S 121641 2003-10-29 03:30:45Z iwasaki $"); |
30 31#define LOCORE 32 33#include <machine/specialreg.h> 34 35 .align 4 36 .code16 37wakeup_16: 38 nop 39 cli 40 41 /* Set up segment registers for real mode */ 42 movw %cs,%ax 43 movw %ax,%ds 44 movw %ax,%ss 45 | 30 31#define LOCORE 32 33#include <machine/specialreg.h> 34 35 .align 4 36 .code16 37wakeup_16: 38 nop 39 cli 40 41 /* Set up segment registers for real mode */ 42 movw %cs,%ax 43 movw %ax,%ds 44 movw %ax,%ss 45 |
46#ifndef ACPI_NO_RESET_VIDEO |
|
46 /* 47 * Re-initialize video BIOS. Restore DS and SS from CS in 48 * case the BIOS modified them. 49 */ 50 lcall $0xc000, $3 51 movw %cs, %ax 52 movw %ax, %ds 53 movw %ax, %ss | 47 /* 48 * Re-initialize video BIOS. Restore DS and SS from CS in 49 * case the BIOS modified them. 50 */ 51 lcall $0xc000, $3 52 movw %cs, %ax 53 movw %ax, %ds 54 movw %ax, %ss |
55#endif |
|
54 55 /* Load GDT for real mode */ 56 lgdt physical_gdt 57 58 /* Restore CR2, CR3 and CR4 */ 59 mov previous_cr2,%eax 60 mov %eax,%cr2 61 mov previous_cr3,%eax --- 166 unchanged lines hidden --- | 56 57 /* Load GDT for real mode */ 58 lgdt physical_gdt 59 60 /* Restore CR2, CR3 and CR4 */ 61 mov previous_cr2,%eax 62 mov %eax,%cr2 63 mov previous_cr3,%eax --- 166 unchanged lines hidden --- |