diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-21 19:39:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-21 19:39:20 +0000 |
commit | b4116ecee3343c347dc89ca15f7cf487f0511219 (patch) | |
tree | 7a99baa66a553dd3fc0185349f5cdce6d1029da4 /sys | |
parent | 762c8306d8612bdec5bb72181d2d5793bc2adc68 (diff) |
Fix registration of memory after 1GB on Octane. Found the hard way by martin@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sgi/sgi/ip30_machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c index e415d8d2a3e..d98b42b6cec 100644 --- a/sys/arch/sgi/sgi/ip30_machdep.c +++ b/sys/arch/sgi/sgi/ip30_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip30_machdep.c,v 1.17 2009/11/19 06:06:51 miod Exp $ */ +/* $OpenBSD: ip30_machdep.c,v 1.18 2009/11/21 19:39:19 miod Exp $ */ /* * Copyright (c) 2008, 2009 Miodrag Vallat. @@ -126,7 +126,8 @@ ip30_setup() if (end <= start) continue; - memrange_register(start, count, 0, VM_FREELIST_DEFAULT); + memrange_register(atop(start), atop(count), + 0, VM_FREELIST_DEFAULT); } } |