diff --git a/sys/arch/ofppc/stand/ofwboot/boot.c b/sys/arch/ofppc/stand/ofwboot/boot.c index db7cbe77d62d..05ebbf7d2a3c 100644 --- a/sys/arch/ofppc/stand/ofwboot/boot.c +++ b/sys/arch/ofppc/stand/ofwboot/boot.c @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.15 2005/12/11 12:18:30 christos Exp $ */ +/* $NetBSD: boot.c,v 1.16 2007/10/18 19:58:54 garbled Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -165,16 +165,15 @@ chain(boot_entry_t entry, char *args, void *ssym, void *esym) * strings. */ l = strlen(args) + 1; - l = (l + 3) & ~3; /* align */ - DPRINTF("magic @ %p\n", args + l); - memcpy(args + l, &magic, sizeof(magic)); - l += sizeof(magic); DPRINTF("ssym @ %p\n", args + l); memcpy(args + l, &ssym, sizeof(ssym)); l += sizeof(ssym); DPRINTF("esym @ %p\n", args + l); memcpy(args + l, &esym, sizeof(esym)); l += sizeof(esym); + DPRINTF("magic @ %p\n", args + l); + memcpy(args + l, &magic, sizeof(magic)); + l += sizeof(magic); DPRINTF("args + l -> %p\n", args + l); OF_chain((void *) RELOC, end - (char *)RELOC, entry, args, l);