X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..2a1bd2d3eef5c7a7bb14f4bb9fdbca9a96ee4752:/osfmk/i386/hibernate_i386.c diff --git a/osfmk/i386/hibernate_i386.c b/osfmk/i386/hibernate_i386.c index d88bb1897..abfe74a22 100644 --- a/osfmk/i386/hibernate_i386.c +++ b/osfmk/i386/hibernate_i386.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2012 Apple Inc. All rights reserved. + * Copyright (c) 2004-2020 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -25,6 +25,10 @@ * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ +/*! + * i386/x86_64-specific functions required to support hibernation entry, and also to + * support hibernation exit after wired pages have already been restored. + */ #include #include @@ -41,6 +45,7 @@ #include #include +#include #include #include #include @@ -113,6 +118,7 @@ hibernate_page_list_allocate(boolean_t log) case kEfiACPIMemoryNVS: case kEfiPalCode: non_os_pagecount += num; + OS_FALLTHROUGH; // OS used dram case kEfiLoaderCode: @@ -166,6 +172,7 @@ hibernate_page_list_allocate(boolean_t log) } if (num_banks >= MAX_BANKS) { + HIBLOG("%s error, num_banks exceed MAX_BANKS(0x%x)\n", __FUNCTION__, MAX_BANKS); return NULL; } @@ -291,3 +298,8 @@ hibernate_vm_locks_are_safe(void) assert(FALSE == ml_get_interrupts_enabled()); return hibernate_vm_locks_safe; } + +void +pal_hib_write_hook(void) +{ +}