2021-11-09 02:32:43 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
#ifndef _LINUX_INSTRUCTION_POINTER_H
|
|
|
|
|
#define _LINUX_INSTRUCTION_POINTER_H
|
|
|
|
|
|
2023-08-02 10:55:46 +00:00
|
|
|
#include <asm/linkage.h>
|
|
|
|
|
|
2021-11-09 02:32:43 +00:00
|
|
|
#define _RET_IP_ (unsigned long)__builtin_return_address(0)
|
2023-08-02 10:55:46 +00:00
|
|
|
|
|
|
|
|
#ifndef _THIS_IP_
|
2021-11-09 02:32:43 +00:00
|
|
|
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
|
2023-08-02 10:55:46 +00:00
|
|
|
#endif
|
2021-11-09 02:32:43 +00:00
|
|
|
|
|
|
|
|
#endif /* _LINUX_INSTRUCTION_POINTER_H */
|