NetBSD/sys/arch/macppc
rin 994167df5a macppc/cardbus: Belatedly catch up with battable resolution change
Fix pmap_extract() failures on models with cardslot, for direct-mapped
buffers allocated by PMAP_ALLOC_POOLPAGE().

This driver had corrupted battable[] over 11 years, since resolution of
battable was changed from 256MB to 8MB:

413fb4c3c5

Now, indexes for battable[] should be calculated by (va >> 23), but
rather, use oea_iobat_add() instead of directly modifying battable[].

TODO:
- Add some consistency checks to oea_iobat_add().
- Map reasonable VA space for cardbus(4), if OFW does not. Note that
  hardcoded value of 0x90000000-0x9fffffff should be safe for now, not
  that elegant although. For macppc models, IIUC, RAM is *not* mapped to
  0x80000000-0xffffffff, and VA reserved for kernel and copy{in,out} is
  0xc0000000-0xefffffff.
2023-12-28 04:43:55 +00:00
..
compile
conf add xhci 2023-10-03 08:23:07 +00:00
dev Remove unnecessary <sys/malloc.h>. 2023-12-20 15:29:04 +00:00
include Define preprocessor symbols (__HAVE_OPENFIRMWARE_VARIANT_AAPL and 2021-08-08 00:53:39 +00:00
macppc macppc/cardbus: Belatedly catch up with battable resolution change 2023-12-28 04:43:55 +00:00
pci Don't bother with devhandle_from_of() if we're just forwarding along 2022-01-21 19:12:28 +00:00
stand adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} 2023-06-03 21:26:27 +00:00
Makefile