opnsense-src/sys/compat/linuxkpi/common/include/linux/instruction_pointer.h
Jean-Sébastien Pédron fb16a42610 linuxkpi: Define _THIS_IP_
For now, the macro is not implemented and it returns 0.

The DRM generic code started to use it in Linux 6.11.

Reviewed by:	bz, emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55731

(cherry picked from commit 56251304258a50fe31bac5cd7da74a4d25497606)
2026-04-22 20:57:00 +00:00

15 lines
404 B
C

/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2021 Neel Chauhan
* Copyright (c) 2026 The FreeBSD Foundation
*/
#ifndef _LINUXKPI_LINUX_INSTRUCTION_POINTER_H_
#define _LINUXKPI_LINUX_INSTRUCTION_POINTER_H_
#define _RET_IP_ __builtin_return_address(0)
#define _THIS_IP_ ((unsigned long)0) /* TODO: _THIS_IP_ not implemented. */
#endif /* _LINUXKPI_LINUX_INSTRUCTION_POINTER_H_ */