|
From: Thorsten O. <ad...@th...> - 2018-04-23 17:03:10
|
On Montag, 23. April 2018 18:22:05 CEST David Gálvez wrote: > We have a system call that gives this information and now it's giving > it wrong for the ColdFire Maybe. But then it was wrong also before the patch i guess. The problem with OS_OSCOMPILE is that it can return only a 32bit value, so you won't be able to squeeze all the possible isa names/cpu types/whatever for coldfire into it. The best thing would maybe to set the major cpu id to 1, as that, according to the documentation, would indicate a non-m68k processor. And maybe the core version (mcf_v1 etc.) into the minor id. But i would leave the remaining bits out, after all all that information is not really very useful for applications, as it only tells how the kernel was compiled, but nothing about the running system. And it also does not guarantee that all the drivers for example were compiled the same way. |