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:
parent
d99a40e5ba
commit
03b3d7bbec
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user