The pre-7 compat for both native and 32-bit code was already in
pci_user.c. Use this infrastructure to add implement 32-bit support.
Obtained from: CheriBSD
Differential D17324
Centralize compat support for PCIOCGETCONF. brooks on Sep 25 2018, 10:32 PM. Authored by Tags None Referenced Files
Subscribers
Details
The pre-7 compat for both native and 32-bit code was already in Obtained from: CheriBSD
Diff Detail
Event TimelineComment Actions Because I already had this code (pre-dating the pci bar mmap case's existence). I'm happy to move it, but would prefer to do it in a separate change. Comment Actions Ok. The move has more important consequence than just the code structure. Ioctl commands are specific to file descriptor, so the approach of freebsd32_ioctl() is flawed beyond repair. This is one of the reason of me asking about bar mmap. Comment Actions Agree with kib on the general point that all of freebsd32_ioctl is probably busted and should be moved to the actual ioctl handlers. |