Hi <a href="http://okl4.org">okl4.org</a>,<br><br><br>I get this problem while trying to change the wombat threads scheduler register (not for L_Timer and L_syscall), but for (L_1, L_2, L_n.................)&nbsp; threads,&nbsp; but when I do so i get&nbsp; &quot;KD# exception delivery error&quot; message before jumping into KDB,&nbsp; what I&#39;m doing is that I&#39;ve replaced the eas_create_thread&nbsp; and L4_Set_Priority on linux/kernel/arch/l4/kernel/process.c with two new functions mpsched_eas_create_thread and mpsched_set_priority, the mpsched_eas_create_thread is the same as the original eas_create_thread but it has a default fixed value for the&nbsp; scheduler&nbsp; parameter,&nbsp; and what the mpsched_set_priority does is to send an IPC to a the NEW scheduler (say NEWSCHED) thread specifing target TID and priority. after receiving it(the NEWSCHED)&nbsp; simply performs an L4_Set_Priority based on that information. (it works=it changes threads priority), but as system runs a tiny bit more, it simply drops into such error message, here is the output:
<br>.<br>.<br>.<br>.<br>hda: max request size: 1024KiB<br>hda: 96000 sectors (49 MB) w/256KiB Cache, CHS=95/255/63<br>&nbsp;hda: hda1<br>hdc: ATAPI 4X CD-ROM drive, 512kB Cache<br>Uniform CD-ROM driver Revision: 3.20<br>&nbsp;igms0: unknown partition table
<br>NET: Registered protocol family 2<br>IP: routing cache hash table of 512 buckets, 4Kbytes<br>TCP: Hash tables configured (established 2048 bind 4096)<br>NET: Registered protocol family 1<br>NET: Registered protocol family 17
<br>VFS: Mounted root (ext2 filesystem) readonly.<br>--- &quot;KD# exception delivery error&quot; ---<br>--------------------------------- (eip=f0107b51, esp=e0008000) ---<br>&gt; showqueue<br><br>[255]: (roottask) (IRQ 00) (IRQ 14) (IRQ 15)
<br>[240]: (ig_timer)<br>[239]: (kbd_poll)<br>[201]: (ConcertM) (NEWSCHED) (Pers_6) (Tmpr_6) (Pers_4) (Tmpr_4)<br>[200]: (ig_namin) (MPSched)<br>[100]: (ig_seria) (L_timer)<br>[ 99]: (L_syscal)<br>[ 93]: L_1<br>idle : idle
<br><br><br>There L_1 with a 93 priority is just for proving that NEWSCHED is really capable of changing such priority, (leaving it 98 has the same error result).<br><br>Anyways does somebudy knows why (where) is this exception delivery error happening?
<br><br>Oh by the way, I dont know, why is it that every time I change some code on which linux kernel code depends on (arch/l4 code), forexample iguana&#39;s eas code,&nbsp; i get:<br><br>make[1]: *** [vmlinux] Error 1<br>make: *** [_all] Error 2
<br><br>so I have to remove the build directory and when I rebuild (no changes made on code) things go fine!!.<br><br>Thank you very much for your help,<br><br><br>Jorge<br>&nbsp;<br><br>