188cc0b97SApple OSS Distributions/* 288cc0b97SApple OSS Distributions * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 388cc0b97SApple OSS Distributions * 488cc0b97SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 588cc0b97SApple OSS Distributions * 688cc0b97SApple OSS Distributions * This file contains Original Code and/or Modifications of Original Code 788cc0b97SApple OSS Distributions * as defined in and that are subject to the Apple Public Source License 888cc0b97SApple OSS Distributions * Version 2.0 (the 'License'). You may not use this file except in 988cc0b97SApple OSS Distributions * compliance with the License. The rights granted to you under the License 1088cc0b97SApple OSS Distributions * may not be used to create, or enable the creation or redistribution of, 1188cc0b97SApple OSS Distributions * unlawful or unlicensed copies of an Apple operating system, or to 1288cc0b97SApple OSS Distributions * circumvent, violate, or enable the circumvention or violation of, any 1388cc0b97SApple OSS Distributions * terms of an Apple operating system software license agreement. 1488cc0b97SApple OSS Distributions * 1588cc0b97SApple OSS Distributions * Please obtain a copy of the License at 1688cc0b97SApple OSS Distributions * http://www.opensource.apple.com/apsl/ and read it before using this file. 1788cc0b97SApple OSS Distributions * 1888cc0b97SApple OSS Distributions * The Original Code and all software distributed under the License are 1988cc0b97SApple OSS Distributions * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2088cc0b97SApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2188cc0b97SApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2288cc0b97SApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2388cc0b97SApple OSS Distributions * Please see the License for the specific language governing rights and 2488cc0b97SApple OSS Distributions * limitations under the License. 2588cc0b97SApple OSS Distributions * 2688cc0b97SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2788cc0b97SApple OSS Distributions */ 2888cc0b97SApple OSS Distributions 2988cc0b97SApple OSS Distributions#include "SYS.h" 3088cc0b97SApple OSS Distributions 3188cc0b97SApple OSS Distributions#if defined(__x86_64__) 3288cc0b97SApple OSS Distributions 3388cc0b97SApple OSS Distributions__SYSCALL(___kdebug_trace_string, kdebug_trace_string, 3) 3488cc0b97SApple OSS Distributions 3588cc0b97SApple OSS Distributions#elif defined(__i386__) 3688cc0b97SApple OSS Distributions 3788cc0b97SApple OSS Distributions__SYSCALL_INT(___kdebug_trace_string, kdebug_trace_string, 3) 3888cc0b97SApple OSS Distributions 39*76e12aa3SApple OSS Distributions#elif defined(__arm__) 40*76e12aa3SApple OSS Distributions 41*76e12aa3SApple OSS Distributions__SYSCALL(___kdebug_trace_string, kdebug_trace_string, 4) 42*76e12aa3SApple OSS Distributions 43*76e12aa3SApple OSS Distributions#elif defined(__arm64__) 44*76e12aa3SApple OSS Distributions 45*76e12aa3SApple OSS Distributions__SYSCALL(___kdebug_trace_string, kdebug_trace_string, 3) 46*76e12aa3SApple OSS Distributions 4788cc0b97SApple OSS Distributions#else 4888cc0b97SApple OSS Distributions#error Unsupported architecture 4988cc0b97SApple OSS Distributions#endif 50