call platform.softintr_init() only if it is non-NULL.

This allows NetBSD/ofppc to boot up to userland (i.e. to the point where init
will not launch properly) under psim.
This commit is contained in:
aymeric 2003-06-23 20:14:33 +00:00
parent 23cacb54a0
commit 8fe6b1b1db

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.84 2003/04/26 11:05:18 ragge Exp $ */
/* $NetBSD: machdep.c,v 1.85 2003/06/23 20:14:33 aymeric Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -186,7 +186,8 @@ cpu_startup()
*/
splhigh();
mtmsr(mfmsr() | PSL_EE | PSL_RI);
(*platform.softintr_init)();
if (platform.softintr_init != NULL)
platform.softintr_init();
}
void