diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/sparc64/sparc64/machdep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index e19118210381..910654d0b376 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -130,8 +130,10 @@ cpu_startup(void *arg) { phandle_t child; phandle_t root; + char name[32]; char type[8]; u_int clock; + caddr_t p; root = OF_peer(0); for (child = OF_child(root); child != 0; child = OF_peer(child)) { @@ -141,6 +143,7 @@ cpu_startup(void *arg) } if (child == 0) panic("cpu_startup: no cpu\n"); + OF_getprop(child, "name", name, sizeof(name)); OF_getprop(child, "clock-frequency", &clock, sizeof(clock)); tick_tc.tc_get_timecount = tick_get_timecount; |
