tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compat_netbsd32 swapctl
Hi
swapctl() netbsd32 emulation breaks for SWAP_STATS if there are multiple
swaps to report. The reason is that compiler padding is different
on i386 and amd64: struct swapent is 1049 bytes long, and it gets padded
to 1052 on i386 (4 bytes alignement) and 1056 on amd64 (8 bytes alignement)
The solution is for netbsd32_swapctl() to call sys_swapctl() for
each individual record, but it needs to know the i386 size for
struct swapent. I suspect there is a macro for that. Someone knows?
--
Emmanuel Dreyfus
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index