Implement debugger OFW commands ofboot, ofenter and ofexit.
This commit is contained in:
parent
3d9f37a664
commit
27ed02bef1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_machdep.c,v 1.9 1998/06/02 20:41:47 mark Exp $ */
|
||||
/* $NetBSD: db_machdep.c,v 1.10 1998/06/17 19:31:44 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Mark Brinicombe
|
||||
|
@ -42,6 +42,10 @@
|
|||
|
||||
#include <machine/irqhandler.h>
|
||||
|
||||
#ifdef OFW
|
||||
#include <dev/ofw/openfirm.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Print out a description of a vnode.
|
||||
* Some parts borrowed from kern/vfs_subr.c
|
||||
|
@ -266,3 +270,37 @@ db_show_frame_cmd(addr, have_addr, count, modif)
|
|||
frame->tf_r12, frame->tf_usr_sp, frame->tf_usr_lr, frame->tf_pc);
|
||||
db_printf("slr=%08x\n", frame->tf_svc_lr);
|
||||
}
|
||||
|
||||
#ifdef OFW
|
||||
void
|
||||
db_of_boot_cmd(addr, have_addr, count, modif)
|
||||
db_expr_t addr;
|
||||
int have_addr;
|
||||
db_expr_t count;
|
||||
char *modif;
|
||||
{
|
||||
OF_boot("");
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
db_of_enter_cmd(addr, have_addr, count, modif)
|
||||
db_expr_t addr;
|
||||
int have_addr;
|
||||
db_expr_t count;
|
||||
char *modif;
|
||||
{
|
||||
OF_enter();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
db_of_exit_cmd(addr, have_addr, count, modif)
|
||||
db_expr_t addr;
|
||||
int have_addr;
|
||||
db_expr_t count;
|
||||
char *modif;
|
||||
{
|
||||
OF_exit();
|
||||
}
|
||||
#endif /* OFW */
|
||||
|
|
Loading…
Reference in New Issue