Quote:
Code:
ltr(0x18);
__asm__ __volatile__ ("ljmp $0x18,$0x0");
Code:
[CPU ] jump_protected: JUMP to busy 386 TSS unsupported.
I just want to jump to my idle task... What am I doing so wrong??
Well, if you want to jump to your new task, you need to give the new task a TSS. You did.
You also need a TSS for the CURRENT task. You don't have one (you load only the current tasks TSS with ltr). So, when the CPU wants to switch from your current task to your new task, it found out that your new task was already running (you selected it as store for the current data too, so it was active). Solution: make 2 TSSes and load one for the current data, one for the new thread.
PS, why do you want to kickstart the idle thread?