X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..4ba76501152d51ccb5647018f3192c6096367d48:/osfmk/kern/page_decrypt.c diff --git a/osfmk/kern/page_decrypt.c b/osfmk/kern/page_decrypt.c index 9914fe9d0..c95ce3e7f 100644 --- a/osfmk/kern/page_decrypt.c +++ b/osfmk/kern/page_decrypt.c @@ -2,7 +2,7 @@ * Copyright (c) 2005-2006 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ - * + * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in @@ -11,10 +11,10 @@ * unlawful or unlicensed copies of an Apple operating system, or to * circumvent, violate, or enable the circumvention or violation of, any * terms of an Apple operating system software license agreement. - * + * * Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this file. - * + * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, @@ -22,7 +22,7 @@ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. - * + * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ @@ -37,7 +37,6 @@ static dsmos_page_transform_hook_t dsmos_hook = NULL; void dsmos_page_transform_hook(dsmos_page_transform_hook_t hook) { - printf("DSMOS has arrived\n"); /* set the hook now - new callers will run with it */ dsmos_hook = hook; @@ -55,12 +54,13 @@ dsmos_page_transform(const void* from, void *to, unsigned long long src_offset, } return KERN_ABORTED; } - return (*dsmos_hook) (from, to, src_offset, ops); + return (*dsmos_hook)(from, to, src_offset, ops); } -text_crypter_create_hook_t text_crypter_create=NULL; -void text_crypter_create_hook_set(text_crypter_create_hook_t hook) +text_crypter_create_hook_t text_crypter_create = NULL; +void +text_crypter_create_hook_set(text_crypter_create_hook_t hook) { - text_crypter_create=hook; + text_crypter_create = hook; }