|
From: David G. <dga...@gm...> - 2018-04-25 07:14:23
|
2018-04-25 0:21 GMT+02:00 Vincent Rivière <vin...@fr...>: > > In case of FireTOS, the _CPU cookie reflects what the *emulated* CPU is > supposed to be. Maybe it should be the same for Ssystem(), that would make > sense. Then provide new *documented* way to add information for ColdFire, > which can't clash with any 680x0 values. > The information given by this system call is independent from the machine you're running the kernel on, so it can be a bit confusing. It's the option it was used to compile the kernel. If you're using a 060 kernel with FireTOS it will return 68060 but if you are using a 5475 kernel it will return a ColdFire kernel with isa_b instruction set. >From the documentation: "This is not the same as the _CPU cookie value. The _CPU cookie specifies the CPU physically present in the machine, while the S_OSCOMPILE indicates the processor type selected at the time when the system was compiled. In other words, running a 68000-compiled kernel will return a 0x00 here, even if the machine is running 68040 or something." |