x86: remove unused T_USER flag

It stopped being used in 3c256f5395, when trap() was reorganized to
have separate switch statements for user and kernel traps. Remove the
two leftover references and the flag itself.

Reviewed by:	kib
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D33253
This commit is contained in:
Mitchell Horne 2021-12-05 11:11:55 -04:00
parent d99a40e5ba
commit 03b3d7bbec
3 changed files with 2 additions and 5 deletions

View File

@ -136,7 +136,7 @@ int
gdb_cpu_signal(int type, int code)
{
switch (type & ~T_USER) {
switch (type) {
case T_BPTFLT: return (SIGTRAP);
case T_ARITHTRAP: return (SIGFPE);
case T_PROTFLT: return (SIGSEGV);

View File

@ -100,7 +100,7 @@ int
gdb_cpu_signal(int type, int code)
{
switch (type & ~T_USER) {
switch (type) {
case T_BPTFLT: return (SIGTRAP);
case T_ARITHTRAP: return (SIGFPE);
case T_PROTFLT: return (SIGSEGV);

View File

@ -66,7 +66,4 @@
#define T_RESERVED 30 /* reserved (unknown) */
#define T_DTRACE_RET 32 /* DTrace pid return */
/* Trap's coming from user mode */
#define T_USER 0x100
#endif /* !_MACHINE_TRAP_H_ */