diff options
author | Ed Maste <emaste@FreeBSD.org> | 2022-03-30 15:23:06 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2022-03-30 17:25:25 +0000 |
commit | 8299f9a5c167618416c21acd8a9fdd188f400172 (patch) | |
tree | 35f6f8fbda9c18e9d0f8d3d40d4e94ce14af11a9 /sys/compat/freebsd32 | |
parent | 27c2f016b86744aa5d4c6031b4ef2fc16bbf6546 (diff) | |
download | src-8299f9a5c167618416c21acd8a9fdd188f400172.tar.gz src-8299f9a5c167618416c21acd8a9fdd188f400172.zip |
compat32: add size CTASSERTs for non-amd64 cases
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34712
Diffstat (limited to 'sys/compat/freebsd32')
-rw-r--r-- | sys/compat/freebsd32/freebsd32_misc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 2b20170bfd2f..7be1dd8602a0 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -156,10 +156,17 @@ CTASSERT(sizeof(struct timeval32) == 8); CTASSERT(sizeof(struct timespec32) == 8); CTASSERT(sizeof(struct itimerval32) == 16); CTASSERT(sizeof(struct bintime32) == 12); +#else +CTASSERT(sizeof(struct timeval32) == 16); +CTASSERT(sizeof(struct timespec32) == 16); +CTASSERT(sizeof(struct itimerval32) == 32); +CTASSERT(sizeof(struct bintime32) == 16); #endif CTASSERT(sizeof(struct ostatfs32) == 256); #ifdef __amd64__ CTASSERT(sizeof(struct rusage32) == 72); +#else +CTASSERT(sizeof(struct rusage32) == 88); #endif CTASSERT(sizeof(struct sigaltstack32) == 12); #ifdef __amd64__ @@ -172,6 +179,9 @@ CTASSERT(sizeof(struct msghdr32) == 28); #ifdef __amd64__ CTASSERT(sizeof(struct stat32) == 208); CTASSERT(sizeof(struct freebsd11_stat32) == 96); +#else +CTASSERT(sizeof(struct stat32) == 224); +CTASSERT(sizeof(struct freebsd11_stat32) == 120); #endif CTASSERT(sizeof(struct sigaction32) == 24); |