--- - branch: MAIN date: Thu Jun 25 22:50:56 UTC 2020 files: - new: '1.38' old: '1.37' path: src/sys/dev/ofw/ofw_subr.c pathrev: src/sys/dev/ofw/ofw_subr.c@1.38 type: modified id: 20200625T225056Z.3210b192cb09fe5e4ef82ec05c5d1946dfaa5296 log: | Fix fallout from migration from alloca() to malloc() in the previous. of_compatible() is used at least for macppc in very early boot stage where malloc() is still not available. Therefore, for small (<= OFW_MAX_STACK_BUF_SIZE = 256) buffer, use statically allocated one in the stack. For larger one, we continue to use malloc() but KASSERT(!cold) is added for sure. Fix boot failure for macppc reported by martin: http://mail-index.netbsd.org/port-macppc/2020/06/25/msg002756.html module: src subject: 'CVS commit: src/sys/dev/ofw' unixtime: '1593125456' user: rin