Add the null implementation of stack_save and stack_save_td.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
andrew 2015-04-22 12:24:38 +00:00
parent 21227b55b3
commit 9e68017553

View File

@ -43,11 +43,18 @@ __FBSDID("$FreeBSD$");
void
stack_save_td(struct stack *st, struct thread *td)
{
panic("stack_save_td");
if (TD_IS_SWAPPED(td))
panic("stack_save_td: swapped");
if (TD_IS_RUNNING(td))
panic("stack_save_td: running");
stack_zero(st);
}
void
stack_save(struct stack *st)
{
panic("stack_save");
stack_zero(st);
}