Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 amd64: Handle __syscall trap frames spe...
details: https://anonhg.NetBSD.org/src/rev/f4dce201d7ee
branches: trunk
changeset: 368198:f4dce201d7ee
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Jun 27 23:36:48 2022 +0000
description:
amd64: Handle __syscall trap frames specially too.
diffstat:
sys/arch/amd64/amd64/db_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0a808b3bf426 -r f4dce201d7ee sys/arch/amd64/amd64/db_machdep.c
--- a/sys/arch/amd64/amd64/db_machdep.c Mon Jun 27 22:41:28 2022 +0000
+++ b/sys/arch/amd64/amd64/db_machdep.c Mon Jun 27 23:36:48 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.c,v 1.12 2022/06/26 22:31:12 riastradh Exp $ */
+/* $NetBSD: db_machdep.c,v 1.13 2022/06/27 23:36:48 riastradh Exp $ */
/*
* Mach Operating System
@@ -26,7 +26,7 @@
* rights to redistribute these changes.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.12 2022/06/26 22:31:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.13 2022/06/27 23:36:48 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -130,7 +130,7 @@
case SYSCALL:
tf = (struct trapframe *)argp;
syscallno = db_get_value((long)&tf->tf_rax, 8, false);
- if (syscallno == SYS_syscall) {
+ if (syscallno == SYS_syscall || syscallno == SYS___syscall) {
syscallno = db_get_value((long)&tf->tf_rdi, 8, false);
(*pr)("--- syscall (number %"DDB_EXPR_FMT"u"
" via SYS_syscall) ---\n",
Home |
Main Index |
Thread Index |
Old Index