[okl4-developer] I have a question about OKL4 code

Josh Zhao joshsystem at gmail.com
Sun Oct 18 23:55:50 EST 2009


Thanks Gabi, I m new to OKL4,I really want to know how kernel works.For
me,reading source code is a good approach. Following your reply,I have
another question:
   The crt0.spp is only wrapper that initilizes the __sys_init(),so how does
initial_to_user function jump to crt0.spp ?

2009/10/17 Gabi Voiculescu <boy3dfx2 at yahoo.com>

> Hmmm.
>
> I google searched for your problem and found that the way it was supposed
> to work is:
>
> - the stack should be set up in crt0.spp under arch/arm/libs/c/crt (maybe
> this is the code you need)
> - after initial_to_user the system should go to _start in the rootserver
>
> I hope this helps. And if it does, a reply to clarify what was your problem
> and how you fixed it might help the community :;.
>
> I guess I should thank you too since this search pointed me to something
> that might explain why I get qemu: fatal: bad mode 0 in my board emulator..
>
> Gabi Voiculescu
>
> --- On *Sat, 10/17/09, Josh Zhao <joshsystem at gmail.com>* wrote:
>
>
> From: Josh Zhao <joshsystem at gmail.com>
> Subject: Re: [okl4-developer] I have a question about OKL4 code
> To: "Gabi Voiculescu" <boy3dfx2 at yahoo.com>
> Cc: developer at okl4.org
> Date: Saturday, October 17, 2009, 2:39 PM
>
>
> yes, the root server will set the inital stack up with user mode,but there
> is no code in user mode.so I don't understand what it is used for.
>
> 2009/10/17 Gabi Voiculescu <boy3dfx2 at yahoo.com<http://mc/compose?to=boy3dfx2@yahoo.com>
> >
>
>> I think (but am not sure) that this function is only supposed to change
>> cpu mode from SVC (supervisor) to USER.
>>
>> Somebody please correct me if i'm wrong.
>> Gabi Voiculescu
>>
>> --- On *Sat, 10/17/09, Josh Zhao <joshsystem at gmail.com<http://mc/compose?to=joshsystem@gmail.com>
>> >* wrote:
>>
>>
>> From: Josh Zhao <joshsystem at gmail..com<http://mc/compose?to=joshsystem@gmail.com>
>> >
>> Subject: [okl4-developer] I have a question about OKL4 code
>> To: developer at okl4.org <http://mc/compose?to=developer@okl4.org>
>> Date: Saturday, October 17, 2009, 12:13 PM
>>
>>
>> hi , I m reading the OKL4 version 2.1 for armv5 code, i have a qestion
>> that the idle kernel thread creates the root server thread,but its handler
>> function(initial_to_user) do nothing:
>>          BEGIN_PROC(initial_to_user)
>>         SET_USER_DACR
>>         RESTORE_ALL
>>         subs    pc,     lr,     #1
>>         END_PROC(initial_to_user)
>>
>> it seems run forever, because there is no thread except idle. So how I
>> create /delete other threads based L4?
>>
>> -----Inline Attachment Follows-----
>>
>> _______________________________________________
>> Developer mailing list
>> Developer at okl4.org <http://mc/compose?to=Developer@okl4.org>
>> https://lists.okl4.org/mailman/listinfo/developer
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20091018/a1c5737a/attachment.htm 


More information about the Developer mailing list