Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

netbsd-5.1 cpu probe/attach for 11/7xx?



I've recently been building 5.1 and -current for 11/780 and adding in 11/730 support. I don't think the
cpu probe wiring for the 11/7xx line is correct.

If I use a reasonably stock simh and boot a 5.1 kernel it doesn't seem to call the attach_cpu
function.  It does boot and run (in sim), so that's something.

I'm not exactly sure how the cpu should be attached to be honest. The bus structure has
always been slightly confusing to me (a picture would sure help).

I ended up adding it on mainbus0 by adding the line "cpu* at mainbus0" to the kernel config file. That seemed to work. That appears to be the simplest thing. I did have to change the match function
in autoconf.c to look for "cpu", however.

Index: autoconf.c
===================================================================
RCS file: /cvsroot/src/sys/arch/vax/vax/autoconf.c,v
retrieving revision 1.90
diff -u -r1.90 autoconf.c
--- autoconf.c  11 Mar 2008 05:34:03 -0000      1.90
+++ autoconf.c  25 Jun 2011 16:59:21 -0000
@@ -121,7 +121,7 @@
{
       struct mainbus_attach_args * const ma = aux;
       if (name)
-               aprint_normal("%s at %s", ma->ma_type, name);
+               aprint_normal("%s at %s ", ma->ma_type, name);
       return UNCONF;
}

@@ -173,7 +173,7 @@
{
       struct mainbus_attach_args *ma = aux;

-       return strcmp(cpu_cd.cd_name, ma->ma_type) == 0;
+       return strcmp("cpu", ma->ma_type) == 0;
}

void

I have diffs for 11/730 booting (in sim) for 3.1.1, 5.1 and -current if anyone wants them. I've recently moved and dusted off my 11/730 so I hope to try them on real iron in the next few weeks.

-brad





Home | Main Index | Thread Index | Old Index