Make procstat -k work on PowerPC by avoiding mistakenly using signed
compares with a low address (0x1000) and a high address (the KVA kernel stack).
This commit is contained in:
parent
2bc706c648
commit
ff301ae2af
@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <machine/trap.h>
|
||||
|
||||
static void
|
||||
stack_capture(struct stack *st, register_t frame)
|
||||
stack_capture(struct stack *st, vm_offset_t frame)
|
||||
{
|
||||
vm_offset_t callpc;
|
||||
|
||||
@ -76,7 +76,7 @@ stack_capture(struct stack *st, register_t frame)
|
||||
void
|
||||
stack_save_td(struct stack *st, struct thread *td)
|
||||
{
|
||||
register_t frame;
|
||||
vm_offset_t frame;
|
||||
|
||||
if (TD_IS_SWAPPED(td))
|
||||
panic("stack_save_td: swapped");
|
||||
|
Loading…
Reference in New Issue
Block a user