From: Ben Gras Date: Thu, 11 Dec 2008 15:33:43 +0000 (+0000) Subject: stacktrace feature. X-Git-Tag: v3.1.4~180 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.html?a=commitdiff_plain;h=5db1a042c2ea6d450185dd3533273382acbb8b6c;p=minix.git stacktrace feature. --- diff --git a/kernel/system/do_vmctl.c b/kernel/system/do_vmctl.c index 8517c57d7..bceeed639 100644 --- a/kernel/system/do_vmctl.c +++ b/kernel/system/do_vmctl.c @@ -26,11 +26,6 @@ register message *m_ptr; /* pointer to request message */ vm_init(); - if(m_ptr->m_source != VM_PROC_NR) { - kprintf("do_vmctl: source %d, not VM\n", m_ptr->m_source); - return ENOSYS; - } - if(!isokendpt(ep, &proc_nr)) { kprintf("do_vmctl: unexpected endpoint %d from VM\n", ep); return EINVAL; @@ -97,6 +92,10 @@ kprintf("SYSTEM: request %d:0x%lx-0x%lx, wrflag %d, failed\n", } #endif return OK; + case VMCTL_STACKTRACE: + kprintf("vmctl stacktrace "); + proc_stacktrace(p); + return OK; } /* Try architecture-specific vmctls. */