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

Gabi Voiculescu boy3dfx2 at yahoo.com
Sat Oct 17 23:39:32 EST 2009


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>


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> wrote:


From: Josh Zhao <joshsystem at gmail.com>
Subject: [okl4-developer] I have a question about OKL4 code

To: developer at 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

https://lists.okl4.org/mailman/listinfo/developer





      




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20091017/856b9c37/attachment.htm 


More information about the Developer mailing list