X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff:/gen/stack_logging.c diff --git a/gen/stack_logging.c b/gen/stack_logging.c index 3f9da9c..cd96a7c 100644 --- a/gen/stack_logging.c +++ b/gen/stack_logging.c @@ -3,8 +3,6 @@ * * @APPLE_LICENSE_HEADER_START@ * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. - * * 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 @@ -36,6 +34,7 @@ extern void spin_lock(int *); +static inline void *allocate_pages(unsigned) __attribute__((always_inline)); static inline void *allocate_pages(unsigned bytes) { void *address; if (vm_allocate(mach_task_self(), (vm_address_t *)&address, bytes, @@ -46,10 +45,12 @@ static inline void *allocate_pages(unsigned bytes) { return (void *)address; } +static inline void deallocate_pages(void *, unsigned) __attribute__((always_inline)); static inline void deallocate_pages(void *ptr, unsigned bytes) { vm_deallocate(mach_task_self(), (vm_address_t)ptr, bytes); } +static inline void copy_pages(const void *, void *, unsigned) __attribute__((always_inline)); static inline void copy_pages(const void *source, void *dest, unsigned bytes) { if (vm_copy(mach_task_self(), (vm_address_t)source, bytes, (vm_address_t)dest)) memmove(dest, source, bytes); }