On Thu, 2016-05-26 at 18:25 +0200, Hauke Mehrtens wrote: > I like it in the ARM arch code that the SoC specific code does not > have > to take care of this stuff. The normal arch code provides the device > tree and so on. Well, MIPS bootloaders are strikingly more diverse than on ARM… > Can we at least add a function to mips which will read the device tree > and the kernel cmd, so I do not have to open code it for each SoC, but > only call this function. That would take a serious arch overhaul not unlike the migration to DT, and I suspect multiple targets would break. So far, this argc == -2 stuff has been used on only two targets that I could see, so I don't believe it belongs in head.S even with such an overhaul. That said, if _real_ UHI spec compliance gets in, the SoC-specific stuff could just be dropped. In the meantime, I propose this patch with the changes previously suggested.