mirror of
https://github.com/opnsense/src.git
synced 2026-05-25 02:35:01 -04:00
riscv: implement db_show_mdpcpu()
This prints the machine-dependent members of struct pcpu when executing
the 'show pcpu' or 'show all pcpu' ddb(4) commands.
MFC after: 3 days
(cherry picked from commit 4fffc56c6e)
This commit is contained in:
parent
e554a6d0ce
commit
760fb765b5
2 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,7 @@
|
|||
|
||||
#define ALT_STACK_SIZE 128
|
||||
|
||||
/* Keep in sync with db_show_mdpcpu() */
|
||||
#define PCPU_MD_FIELDS \
|
||||
struct pmap *pc_curpmap; /* Currently active pmap */ \
|
||||
uint32_t pc_pending_ipis; /* IPIs pending to this CPU */ \
|
||||
|
|
|
|||
|
|
@ -106,6 +106,9 @@ struct db_variable *db_eregs = db_regs + nitems(db_regs);
|
|||
void
|
||||
db_show_mdpcpu(struct pcpu *pc)
|
||||
{
|
||||
db_printf("curpmap = %p\n", pc->pc_curpmap);
|
||||
db_printf("pending_ipis = %x\n", pc->pc_pending_ipis);
|
||||
db_printf("hart = %u\n", pc->pc_hart);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue