diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-06-22 20:06:12 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-06-22 20:06:12 +0000 |
commit | 4378f09f5e30e362ccec62784b09f8dcb1412046 (patch) | |
tree | bc091057c866c4c1df050bd74b35ebc82613a714 | |
parent | 1846105a39682b697de44a3ef9a9949dcf027e31 (diff) |
Add an #ifdef HIBERNATE to allow to build a kernel without hibernate but
with acpi.
OK mlarkin@
-rw-r--r-- | sys/arch/amd64/amd64/acpi_wakecode.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/acpi_wakecode.S b/sys/arch/amd64/amd64/acpi_wakecode.S index ab2903b4aa3..0f2626476a8 100644 --- a/sys/arch/amd64/amd64/acpi_wakecode.S +++ b/sys/arch/amd64/amd64/acpi_wakecode.S @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_wakecode.S,v 1.35 2014/12/08 07:12:37 mlarkin Exp $ */ +/* $OpenBSD: acpi_wakecode.S,v 1.36 2015/06/22 20:06:11 bluhm Exp $ */ /* * Copyright (c) 2001 Takanori Watanabe <takawata@jp.freebsd.org> * Copyright (c) 2001 Mitsuru IWASAKI <iwasaki@jp.freebsd.org> @@ -627,12 +627,14 @@ _ACPI_TRMP_DATA_LABEL(acpi_saved_sfmask) .align 4 _ACPI_TRMP_DATA_LABEL(acpi_pdirpa) .long 0 +#ifdef HIBERNATE _ACPI_TRMP_DATA_LABEL(hibernate_indirect_16) .long hibernate_resume_vector_3 .word 0x18 _ACPI_TRMP_DATA_LABEL(hibernate_indirect_16b) .long hibernate_resume_vector_3b .word 0x18 +#endif /* HIBERNATE */ _C_LABEL(acpi_tramp_data_end): |