Alex Richardson c98013c0b1 RISC-V: Check that the DTB doesn't overlap with kernel
This can happen with very large kernels (e.g. ones embedding a root
filesystem). The DTB written by OpenSBI/BBL is quite small so this is
unlikely to hit important data, but if it does this can result in very
confusing and hard-to-debug crashes. Add a KASSERT() and a verbose print
to catch this problem with debug kernels.

While this will not print any output by default if it fails (that would
depend on EARLY_PRINTF), at least the kernel now halts reliably instead
of randomly crashing.

Reviewed By:	mhorne
Differential Revision: https://reviews.freebsd.org/D25153
2020-06-08 08:52:02 +00:00
..
2020-04-24 01:27:25 +00:00
2020-06-04 17:20:58 +00:00
2020-06-06 14:19:16 +00:00
2020-05-23 17:51:06 +00:00
2020-06-07 14:39:20 +00:00
2020-06-07 14:39:20 +00:00
2020-04-23 09:37:22 +00:00
2020-05-21 01:55:35 +00:00
2020-02-03 17:35:11 +00:00