Kermit the Frog <kermit(a)tower.com.ar> writes:
>
> Hello,
> lets see if I have this thing right.
>
> Lets say that main() creates a thread that will act as a scheduler. We'll
> call it sched. Now main() creates antoher thread that will have sched as
> its scheduler. sche() enters an infinite loop with a l4_i386_ipc_wait in
> it. Of course, it waits for an preemption RPC message.
Currently external and internal preempters are not implemented. They
may be …
[View More]released in a future version but I'm not sure about that.
Jean
--
I get up each morning, gather my wits.
Pick up the paper, read the obits.
if I'm not there I know I'm not dead.
So I eat a good breakfast and go back to bed. Peete Seeger
[View Less]
Hello,
lets see if I have this thing right.
Lets say that main() creates a thread that will act as a scheduler. We'll
call it sched. Now main() creates antoher thread that will have sched as
its scheduler. sche() enters an infinite loop with a l4_i386_ipc_wait in
it. Of course, it waits for an preemption RPC message.
Now, when creating the second thread (lets call it task) with
l4_thread_ex_regs, I put sched to be its preempter, anyway, sched() never
gets the IPC and task() runs as if it …
[View More]never had any preempter asociated.
Theres another thing, if inside main we put l4_thread_ex_regs to change
task()'s eip and esp to (dword_t) -1 (this would likely stop
task()) nothing happens, task() just runs normally.
Any ideas ??
Cheers.
PS: I didnt send any source code because its kind of long and I dont want
to bother people w/unsolicited mail ;-), if anyone wants it please email me
and ill be happy to send it
Cervi~no Ulises <kermit(a)tower.com.ar> <ulises(a)rosario.linux.org.ar>
...............................................................................
"Contrary to popular opinion, Unix is user friendly, It just happens to be
very selective about who it makes friends with."
[View Less]
Hello, Ive been having some problems while trying to request a page from
sigma0. I have included the source code ... any help ?
many thanks!
------[ source begins here ]------
#include <l4/types.h>
#include <l4/syscalls.h>
#include <l4/ipc.h>
#include <stdio.h>
#define SIGMA0_ID 4
void main(void)
{
l4_threadid_t sigma0;
l4_msgdope_t msg, result;
dword_t addr, type, foo, *r_add;
addr = 0x80000;
type = L4_IPC_SHORT_MSG;
sigma0.id.task = SIGMA0_ID;
…
[View More]sigma0.id.lthread = 0;
r_add = 0x0;
while(r_add == 0x0) {
addr += 4096; /* pasamos a la siguiente pagina de 4K */
printf("Vamos a pedir la region de memoria 0x%x\n", addr);
l4_i386_ipc_send(sigma0,(void *) type, addr, addr, L4_IPC_NEVER, &result);
printf("ipc enviado ...");
l4_i386_ipc_receive(sigma0, L4_IPC_MAPMSG(addr, 4096), r_add, &foo, L4_IPC_NEVER, &result);
printf("%p recivido\n", r_add);
}
*r_add = 'a';
r_add++;
*r_add = 0x7;
r_add --;
if(*r_add == 'a')
printf("BINGO!\n");
printf("Done!\n");
}
Cervi~no Ulises <kermit(a)tower.com.ar> <ulises(a)rosario.linux.org.ar>
...............................................................................
"Contrary to popular opinion, Unix is user friendly, It just happens to be
very selective about who it makes friends with."
[View Less]
Is it possible to compile fiasco based on oskit10? I think
there are some files missing (flux/*/*)??
When compiling l4/pkg/oskit_support/lib/src/
I get an error message:
---
... Making rmgr_stubs.o
{standard input}: Assembler messages:
{standard input}: Error: Symbol 'rmgr_pager_id' can not be both weak and common
---
If I remove '__attribute__ ((weak))' it works. Is this a bug?
I use egcs-2.91.66.
-Chris-
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Christian Stueble....…
[View More]........stueble(a)ls6.cs.uni-dortmund.de
PubKey[BF7104F5].......fp=8678C5D3CAD9CD8C F1DDB8EC202F116A
To be or not to be is true... (apocrypha of George Boole)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[View Less]