Exclude the first page from I/O virtual address space, which is the NULL
authorpatrick <patrick@openbsd.org>
Sat, 3 Apr 2021 15:10:58 +0000 (15:10 +0000)
committerpatrick <patrick@openbsd.org>
Sat, 3 Apr 2021 15:10:58 +0000 (15:10 +0000)
commitab86b9020dc7a7e0f5e6f0a183513a03d13d2e53
treeb938b3d8eb0816576de5be191079980f482b8129
parente607590b1800c03620c336c7a92d35b683a46f39
Exclude the first page from I/O virtual address space, which is the NULL
pointer address.  Not allowing this one to be allocated might help find
driver bugs, where the device is programmed with a NULL pointer.  We have
plenty of address space anyway, so excluding this single page does not
hurt at all and can only have positive effects.

Idea from kettenis@
sys/arch/arm64/dev/smmu.c