diff options
author | peter <peter@FreeBSD.org> | 1998-10-14 05:07:23 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-10-14 05:07:23 +0000 |
commit | 0966fead52f01db69f761858f479fce0d844d215 (patch) | |
tree | 3ff915c7dc33aaa76519ff9d6f3bae339b75bc42 /sys/kern/subr_module.c | |
parent | 2a0b7f6488a31550d79e9b15ae724656c767c8dd (diff) | |
download | FreeBSD-src-0966fead52f01db69f761858f479fce0d844d215.zip FreeBSD-src-0966fead52f01db69f761858f479fce0d844d215.tar.gz |
Align to sizeof(long) rather than sizeof(int32_t). It needs to be
long because this code is shared with the alpha. I hope the alpha can
read 32 bit ints at 32 bit alignment (vs. 64 bit alignment).
Diffstat (limited to 'sys/kern/subr_module.c')
-rw-r--r-- | sys/kern/subr_module.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/subr_module.c b/sys/kern/subr_module.c index 2d58c8a..7eb635a 100644 --- a/sys/kern/subr_module.c +++ b/sys/kern/subr_module.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: subr_module.c,v 1.2 1998/10/09 23:59:01 peter Exp $ + * $Id: subr_module.c,v 1.3 1998/10/12 09:03:48 peter Exp $ */ #include <sys/param.h> @@ -62,7 +62,7 @@ preload_search_by_name(const char *name) /* skip to next field */ next = sizeof(u_int32_t) * 2 + hdr[1]; - next = roundup(next, sizeof(u_int32_t)); + next = roundup(next, sizeof(u_long)); curp += next; } } @@ -99,7 +99,7 @@ preload_search_by_type(const char *type) /* skip to next field */ next = sizeof(u_int32_t) * 2 + hdr[1]; - next = roundup(next, sizeof(u_int32_t)); + next = roundup(next, sizeof(u_long)); curp += next; } } @@ -124,7 +124,7 @@ preload_search_next_name(caddr_t base) curp = base; hdr = (u_int32_t *)curp; next = sizeof(u_int32_t) * 2 + hdr[1]; - next = roundup(next, sizeof(u_int32_t)); + next = roundup(next, sizeof(u_long)); curp += next; } else curp = preload_metadata; @@ -140,7 +140,7 @@ preload_search_next_name(caddr_t base) /* skip to next field */ next = sizeof(u_int32_t) * 2 + hdr[1]; - next = roundup(next, sizeof(u_int32_t)); + next = roundup(next, sizeof(u_long)); curp += next; } } @@ -186,7 +186,7 @@ preload_search_info(caddr_t mod, int inf) /* skip to next field */ next = sizeof(u_int32_t) * 2 + hdr[1]; - next = roundup(next, sizeof(u_int32_t)); + next = roundup(next, sizeof(u_long)); curp += next; } return(NULL); @@ -224,7 +224,7 @@ preload_delete_name(const char *name) /* skip to next field */ next = sizeof(u_int32_t) * 2 + hdr[1]; - next = roundup(next, sizeof(u_int32_t)); + next = roundup(next, sizeof(u_long)); curp += next; } } @@ -260,7 +260,7 @@ preload_bootstrap_relocate(vm_offset_t offset) /* skip to next field */ next = sizeof(u_int32_t) * 2 + hdr[1]; - next = roundup(next, sizeof(u_int32_t)); + next = roundup(next, sizeof(u_long)); curp += next; } } |