Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143180593
D23194.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23194.diff
View Options
Index: sys/arm64/arm64/machdep.c
===================================================================
--- sys/arm64/arm64/machdep.c
+++ sys/arm64/arm64/machdep.c
@@ -98,6 +98,10 @@
#include <dev/ofw/openfirm.h>
#endif
+#ifdef DDB
+#include <ddb/ddb.h>
+#endif
+
static void get_fpcontext(struct thread *td, mcontext_t *mcp);
static void set_fpcontext(struct thread *td, mcontext_t *mcp);
@@ -1072,6 +1076,24 @@
}
}
+static void
+arm64_kdb_init(caddr_t kmdp)
+{
+#ifdef DDB
+ vm_offset_t ksym_start;
+ vm_offset_t ksym_end;
+
+ 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);
+#endif
+ kdb_init();
+#ifdef KDB
+ if (boothowto & RB_KDB)
+ kdb_enter(KDB_WHY_BOOTFLAGS, "Boot flags requested debugger");
+#endif
+}
+
void
initarm(struct arm64_bootparams *abp)
{
@@ -1171,7 +1193,7 @@
init_param2(physmem);
dbg_init();
- kdb_init();
+ arm64_kdb_init(kmdp);
pan_enable();
kcsan_cpu_init(0);
@@ -1202,8 +1224,6 @@
}
#ifdef DDB
-#include <ddb/ddb.h>
-
DB_SHOW_COMMAND(specialregs, db_show_spregs)
{
#define PRINT_REG(reg) \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 28, 1:20 AM (14 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28061922
Default Alt Text
D23194.diff (1 KB)
Attached To
Mode
D23194: Add support for booting into kdb on arm64 platforms.
Attached
Detach File
Event Timeline
Log In to Comment