add swapgs.

This commit is contained in:
yamt 2008-01-01 21:24:17 +00:00
parent 8bb176858f
commit 13d9847b0a
1 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.10 2007/12/20 19:53:47 ad Exp $ */
/* $NetBSD: db_disasm.c,v 1.11 2008/01/01 21:24:17 yamt Exp $ */
/*
* Mach Operating System
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.10 2007/12/20 19:53:47 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.11 2008/01/01 21:24:17 yamt Exp $");
#ifndef _KERNEL
#include "stubs.h"
@ -1315,7 +1315,13 @@ db_disasm(loc, altfmt)
ip->i_extra == (const char *)db_Grp7 ||
ip->i_extra == (const char *)db_Grp8 ||
ip->i_extra == (const char *)db_Grp9) {
i_name = ((const char * const *)ip->i_extra)[f_reg(regmodrm)];
if (ip->i_extra == (const char *)db_Grp7 && regmodrm == 0xf8) {
i_name = "swapgs";
i_mode = 0;
} else {
i_name = ((const char * const *)ip->i_extra)
[f_reg(regmodrm)];
}
} else if (ip->i_extra == (const char *)db_Grp3) {
ip = (const struct inst *)ip->i_extra;
ip = &ip[f_reg(regmodrm)];