syscalls: Remove get_stack_trace syscall again.
This reverts the other half of b959d46dbd.
This commit is contained in:
@@ -492,9 +492,6 @@ extern status_t _kern_system_profiler_stop();
|
|||||||
extern status_t _kern_system_profiler_recorded(
|
extern status_t _kern_system_profiler_recorded(
|
||||||
struct system_profiler_parameters* parameters);
|
struct system_profiler_parameters* parameters);
|
||||||
|
|
||||||
extern ssize_t _kern_get_stack_trace(size_t addressCount,
|
|
||||||
addr_t* adresses);
|
|
||||||
|
|
||||||
/* atomic_* ops (needed for CPUs that don't support them directly) */
|
/* atomic_* ops (needed for CPUs that don't support them directly) */
|
||||||
#ifdef ATOMIC_FUNCS_ARE_SYSCALLS
|
#ifdef ATOMIC_FUNCS_ARE_SYSCALLS
|
||||||
extern void _kern_atomic_set(int32 *value, int32 newValue);
|
extern void _kern_atomic_set(int32 *value, int32 newValue);
|
||||||
|
|||||||
@@ -3000,21 +3000,3 @@ _user_clear_debugger_breakpoint(void *address, bool watchpoint)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ssize_t
|
|
||||||
_user_get_stack_trace(size_t addressCount, addr_t* userReturnAddresses)
|
|
||||||
{
|
|
||||||
addr_t returnAddresses[addressCount];
|
|
||||||
int32 readCount = arch_debug_get_stack_trace(returnAddresses, addressCount,
|
|
||||||
1, 0, STACK_TRACE_KERNEL | STACK_TRACE_USER);
|
|
||||||
if (readCount < 0)
|
|
||||||
return readCount;
|
|
||||||
|
|
||||||
status_t copyResult = user_memcpy(userReturnAddresses, returnAddresses,
|
|
||||||
readCount * sizeof(addr_t));
|
|
||||||
if (copyResult != B_OK)
|
|
||||||
return copyResult;
|
|
||||||
|
|
||||||
return readCount;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user