| 1 | /*- |
| 2 | * SPDX-License-Identifier: BSD-2-Clause |
| 3 | * |
| 4 | * Copyright (c) 2024 Mark Johnston <markj@FreeBSD.org> |
| 5 | */ |
| 6 | |
| 7 | #ifndef _SYS_SDT_MACHDEP_H_ |
| 8 | #define	_SYS_SDT_MACHDEP_H_ |
| 9 | |
| 10 | #define	_SDT_ASM_PATCH_INSTR		"nop; nop; nop; nop; nop" |
| 11 | |
| 12 | /* |
| 13 | * Work around an apparent clang bug or limitation which prevents the use of the |
| 14 | * "i" (immediate) constraint with the probe structure. |
| 15 | */ |
| 16 | #define	_SDT_ASM_PROBE_CONSTRAINT	"Ws" |
| 17 | #define	_SDT_ASM_PROBE_OPERAND		"p" |
| 18 | |
| 19 | #endif |