diff options
author | 2017-01-23 13:41:45 +0000 | |
---|---|---|
committer | 2017-01-23 13:41:45 +0000 | |
commit | f1361d19a5c7d8694a5ab2704f91e06e2334134e (patch) | |
tree | a8cefab3cfa7de0b865bbfe2508d520afd440752 | |
parent | In comparison to _start, where we only need the address of the (diff) | |
download | wireguard-openbsd-f1361d19a5c7d8694a5ab2704f91e06e2334134e.tar.xz wireguard-openbsd-f1361d19a5c7d8694a5ab2704f91e06e2334134e.zip |
Initialize DDB if compiled with option DDB.
ok kettenis@
-rw-r--r-- | sys/arch/arm64/arm64/machdep.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c index 6775a7f421a..5761d29942e 100644 --- a/sys/arch/arm64/arm64/machdep.c +++ b/sys/arch/arm64/arm64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.5 2017/01/20 08:03:21 patrick Exp $ */ +/* $OpenBSD: machdep.c,v 1.6 2017/01/23 13:41:45 patrick Exp $ */ /* * Copyright (c) 2014 Patrick Wildt <patrick@blueri.se> * @@ -44,6 +44,9 @@ #include <machine/bus.h> #include <arm64/arm64/arm64var.h> +#include <machine/db_machdep.h> +#include <ddb/db_extern.h> + char *boot_args = NULL; char *boot_file = ""; @@ -947,7 +950,15 @@ int pmap_bootstrap_bs_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, pmap_physload_avail(); - //early_boot = 0; +#ifdef DDB + db_machine_init(); + + /* Firmware doesn't load symbols. */ + ddb_init(); + + if (boothowto & RB_KDB) + Debugger(); +#endif softintr_init(); splraise(IPL_IPI); |