diff options
author | 2017-01-15 18:19:00 +0000 | |
---|---|---|
committer | 2017-01-15 18:19:00 +0000 | |
commit | d9cf8f95a5193196830db6e8074b9c3b49effc8b (patch) | |
tree | 0930c92271ce6c88c3163fbe1f08910c6f88cd64 | |
parent | When dropping to EL1 ensure we have written to all special registers by (diff) | |
download | wireguard-openbsd-d9cf8f95a5193196830db6e8074b9c3b49effc8b.tar.xz wireguard-openbsd-d9cf8f95a5193196830db6e8074b9c3b49effc8b.zip |
Make sure to also backup and restore the a4x bus space map function
so that we can initialize the console early.
-rw-r--r-- | sys/arch/arm64/arm64/machdep.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c index cac9895e73d..90bfb50398a 100644 --- a/sys/arch/arm64/arm64/machdep.c +++ b/sys/arch/arm64/arm64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.3 2017/01/13 09:18:11 fcambus Exp $ */ +/* $OpenBSD: machdep.c,v 1.4 2017/01/15 18:19:00 patrick Exp $ */ /* * Copyright (c) 2014 Patrick Wildt <patrick@blueri.se> * @@ -769,6 +769,8 @@ initarm(struct arm64_bootparams *abp) void *fdt = NULL; int (*map_func_save)(bus_space_tag_t, bus_addr_t, bus_size_t, int, bus_space_handle_t *); + int (*map_a4x_func_save)(bus_space_tag_t, bus_addr_t, bus_size_t, int, + bus_space_handle_t *); #if 0 gdb_w = 1; @@ -929,12 +931,16 @@ int pmap_bootstrap_bs_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, bus_space_handle_t *bshp); map_func_save = arm64_bs_tag._space_map; + map_a4x_func_save = arm64_a4x_bs_tag._space_map; + arm64_bs_tag._space_map = pmap_bootstrap_bs_map; + arm64_a4x_bs_tag._space_map = pmap_bootstrap_bs_map; // cninit consinit(); arm64_bs_tag._space_map = map_func_save; + arm64_a4x_bs_tag._space_map = map_a4x_func_save; /* XXX */ pmap_avail_fixup(); |