diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-03-01 14:42:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-03-01 14:42:43 +0000 |
commit | 3b70190d9b69406fd85e7c0a1ae5fe306ed9c27a (patch) | |
tree | 34343b146f016c1cef8701b0430973d61076a25e /sys | |
parent | 7728c3d9c82ca53416fbcee881e9dc06f707982f (diff) |
Provide "reg" property when attaching cpu(4).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index dc7905ef334..09c9accca16 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.75 2007/11/16 23:27:28 kettenis Exp $ */ +/* $OpenBSD: autoconf.c,v 1.76 2008/03/01 14:42:42 kettenis Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -236,6 +236,7 @@ get_ncpus(void) return (1); #endif } + /* * locore.s code calls bootstrap() just before calling main(). * @@ -723,6 +724,8 @@ extern bus_space_tag_t mainbus_space_tag; if (strcmp(buf, "cpu") == 0) OF_getprop(node, "compatible", buf, sizeof(buf)); ma.ma_name = buf; + getprop(node, "reg", sizeof(*ma.ma_reg), + &ma.ma_nreg, (void **)&ma.ma_reg); config_found(dev, &ma, mbprint); ncpus++; } |