Multi-threading: Difference between revisions
→CreateThread: ....oops |
|||
Line 38: | Line 38: | ||
With the Old3DS kernel, the s32 processorid must be <=2(for the processorid validation check in the kernel). | With the Old3DS kernel, the s32 processorid must be <=2(for the processorid validation check in the kernel). | ||
With the New3DS kernel: processorid must be less than or equal to <total cores(MPCore "SCU Configuration Register" CPU number value + 1)>(for the processorid validation check in the kernel). When processorid==0x2 and the process is not an | With the New3DS kernel: processorid must be less than or equal to <total cores(MPCore "SCU Configuration Register" CPU number value + 1)>(for the processorid validation check in the kernel). When processorid==0x2 and the process is not an BASE mem-region process, exheader kernel-flags bitmask 0x2000 must be set otherwise error 0xD9001BEA is returned. When processorid==0x3 and the process is not an BASE mem-region process, error 0xD9001BEA is returned. These are the only restriction checks done by the kernel for processorid. | ||
The thread priority value must be in the following range, otherwise error 0xE0E01BFD is returned: 0x0..0x3F. | The thread priority value must be in the following range, otherwise error 0xE0E01BFD is returned: 0x0..0x3F. |