1/* 2 * CDDL HEADER START 3 * 4 * This file and its contents are supplied under the terms of the 5 * Common Development and Distribution License ("CDDL"), version 1.0. 6 * You may only use this file in accordance with the terms of version 7 * 1.0 of the CDDL. 8 * 9 * A full copy of the text of the CDDL should have accompanied this 10 * source. A copy of the CDDL is also available via the Internet at 11 * http://www.illumos.org/license/CDDL. 12 * 13 * CDDL HEADER END 14 */ 15/* 16 * Copyright (C) 2017 by Lawrence Livermore National Security, LLC. 17 */ 18 19#ifndef _SYS_FRAME_H 20#define _SYS_FRAME_H 21 22#ifdef __cplusplus 23extern "C" { 24#endif 25 26#if defined(__KERNEL__) && defined(HAVE_KERNEL_OBJTOOL) && \ 27 defined(HAVE_STACK_FRAME_NON_STANDARD) 28#if defined(HAVE_KERNEL_OBJTOOL_HEADER) 29#include <linux/objtool.h> 30#else 31#include <linux/frame.h> 32#endif 33#else 34#define STACK_FRAME_NON_STANDARD(func) 35#endif 36 37#ifdef __cplusplus 38} 39#endif 40 41#endif /* _SYS_FRAME_H */ 42