[okl4-developer] KD# exception delivery error
Jorge Torres
jorge.torres.maldonado at gmail.com
Mon Jul 30 10:46:00 EST 2007
Hi okl4.org,
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.................) threads, but when I do so i get "KD# exception
delivery error" message before jumping into KDB, what I'm doing is that
I've replaced the eas_create_thread 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 scheduler parameter, 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) 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:
.
.
.
.
hda: max request size: 1024KiB
hda: 96000 sectors (49 MB) w/256KiB Cache, CHS=95/255/63
hda: hda1
hdc: ATAPI 4X CD-ROM drive, 512kB Cache
Uniform CD-ROM driver Revision: 3.20
igms0: unknown partition table
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (ext2 filesystem) readonly.
--- "KD# exception delivery error" ---
--------------------------------- (eip=f0107b51, esp=e0008000) ---
> showqueue
[255]: (roottask) (IRQ 00) (IRQ 14) (IRQ 15)
[240]: (ig_timer)
[239]: (kbd_poll)
[201]: (ConcertM) (NEWSCHED) (Pers_6) (Tmpr_6) (Pers_4) (Tmpr_4)
[200]: (ig_namin) (MPSched)
[100]: (ig_seria) (L_timer)
[ 99]: (L_syscal)
[ 93]: L_1
idle : idle
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).
Anyways does somebudy knows why (where) is this exception delivery error
happening?
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's eas
code, i get:
make[1]: *** [vmlinux] Error 1
make: *** [_all] Error 2
so I have to remove the build directory and when I rebuild (no changes made
on code) things go fine!!.
Thank you very much for your help,
Jorge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20070729/5a0cd33c/attachment.html
More information about the Developer
mailing list