162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci#ifndef __UAPI_ASM_BREAK_H
662306a36Sopenharmony_ci#define __UAPI_ASM_BREAK_H
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#define BRK_DEFAULT		0	/* Used as default */
962306a36Sopenharmony_ci#define BRK_BUG			1	/* Used by BUG() */
1062306a36Sopenharmony_ci#define BRK_KDB			2	/* Used in KDB_ENTER() */
1162306a36Sopenharmony_ci#define BRK_MATHEMU		3	/* Used by FPU emulator */
1262306a36Sopenharmony_ci#define BRK_USERBP		4	/* User bp (used by debuggers) */
1362306a36Sopenharmony_ci#define BRK_SSTEPBP		5	/* User bp (used by debuggers) */
1462306a36Sopenharmony_ci#define BRK_OVERFLOW		6	/* Overflow check */
1562306a36Sopenharmony_ci#define BRK_DIVZERO		7	/* Divide by zero check */
1662306a36Sopenharmony_ci#define BRK_RANGE		8	/* Range error check */
1762306a36Sopenharmony_ci#define BRK_MULOVFL		9	/* Multiply overflow */
1862306a36Sopenharmony_ci#define BRK_KPROBE_BP		10	/* Kprobe break */
1962306a36Sopenharmony_ci#define BRK_KPROBE_SSTEPBP	11	/* Kprobe single step break */
2062306a36Sopenharmony_ci#define BRK_UPROBE_BP		12	/* See <asm/uprobes.h> */
2162306a36Sopenharmony_ci#define BRK_UPROBE_XOLBP	13	/* See <asm/uprobes.h> */
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci#endif /* __UAPI_ASM_BREAK_H */
24