From 0966fead52f01db69f761858f479fce0d844d215 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 14 Oct 1998 05:07:23 +0000 Subject: 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). --- sys/kern/subr_module.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/kern/subr_module.c') 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 @@ -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; } } -- cgit v1.1