mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
riscv: Add missing includes for DDB
The #ifdef DDB code in parse_metadata was dead code without opt_ddb.h.
While here, update the call to db_fetch_ksymtab for changes in commit
02bc014a20
.
Reviewed by: mhorne
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D43919
This commit is contained in:
parent
53670ee165
commit
962b0bcbd9
|
@ -33,6 +33,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kstack_pages.h"
|
||||
#include "opt_platform.h"
|
||||
|
||||
|
@ -91,6 +92,10 @@
|
|||
#include <machine/trap.h>
|
||||
#include <machine/vmparam.h>
|
||||
|
||||
#ifdef DDB
|
||||
#include <ddb/ddb.h>
|
||||
#endif
|
||||
|
||||
#ifdef FDT
|
||||
#include <contrib/libfdt/libfdt.h>
|
||||
#include <dev/fdt/fdt_common.h>
|
||||
|
@ -455,7 +460,7 @@ parse_metadata(void)
|
|||
#ifdef DDB
|
||||
ksym_start = MD_FETCH(kmdp, MODINFOMD_SSYM, uintptr_t);
|
||||
ksym_end = MD_FETCH(kmdp, MODINFOMD_ESYM, uintptr_t);
|
||||
db_fetch_ksymtab(ksym_start, ksym_end);
|
||||
db_fetch_ksymtab(ksym_start, ksym_end, 0);
|
||||
#endif
|
||||
#ifdef FDT
|
||||
try_load_dtb(kmdp);
|
||||
|
|
Loading…
Reference in a new issue