diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-16 19:38:31 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-16 19:38:31 +0000 |
commit | fdf894b938232176a4a60464199060bf8709ab15 (patch) | |
tree | 9c5f04c54fc4e89c8b9e8b826620952c587f03bc /sys/arch | |
parent | aa3118f630aa32cdfc5fbb5a21ee4de740e73fbf (diff) |
Correctly read the symbol table pointers passed by the boot code.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c index ff7229a4836..47006e5b0dd 100644 --- a/sys/arch/sgi/sgi/machdep.c +++ b/sys/arch/sgi/sgi/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.10 2004/09/09 22:11:39 pefo Exp $ */ +/* $OpenBSD: machdep.c,v 1.11 2004/09/16 19:38:30 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -185,8 +185,8 @@ mips_init(int argc, int32_t *argv) /* * Reserve symol table space. If invalid pointers no table. */ - ssym = (char *)(long)*(int *)end; - esym = (char *)(long)*((int *)end + 1); + ssym = (char *)*(u_int64_t *)end; + esym = (char *)*((u_int64_t *)end + 1); ekern = esym; if (((long)ssym - (long)end) < 0 || ((long)ssym - (long)end) > 0x1000 || |