moved stacktrace to sysctl, as vmctl is very privileged so can't

be used outside VM. IS code cleanup. added stacktrace feature to IS.
This commit is contained in:
Ben Gras
2009-01-27 12:54:33 +00:00
parent 3cc092ff06
commit c628f24bc2
12 changed files with 88 additions and 112 deletions

View File

@@ -12,3 +12,9 @@ PUBLIC int sys_sysctl(int code, char *arg1, int arg2)
return(_taskcall(SYSTASK, SYS_SYSCTL, &m));
}
PUBLIC int sys_sysctl_stacktrace(endpoint_t ep)
{
return sys_sysctl(SYSCTL_CODE_STACKTRACE, NULL, ep);
}

View File

@@ -60,7 +60,3 @@ PUBLIC int sys_vmctl_get_memreq(endpoint_t *who, vir_bytes *mem,
return r;
}
PUBLIC int sys_vmctl_stacktrace(endpoint_t who)
{
return sys_vmctl(who, VMCTL_STACKTRACE, 0);
}