Send l4-hackers mailing list submissions to
l4-hackers@os.inf.tu-dresden.de
To subscribe or unsubscribe via the World Wide Web, visit
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
or, via email, send a message with subject or body 'help' to
l4-hackers-request@os.inf.tu-dresden.de
You can reach the person managing the list at
l4-hackers-owner@os.inf.tu-dresden.de
When replying, please edit your Subject line so it is more specific
than "Re: Contents of l4-hackers digest..."
Today's Topics:
1. Re: vcpu example problem (Adam Lackorzynski)
----------------------------------------------------------------------
Message: 1
Date: Thu, 2 Aug 2012 22:14:21 +0200
From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
To: l4-hackers@os.inf.tu-dresden.de
Subject: Re: vcpu example problem
Message-ID: <20120802201421.GA7129@os.inf.tu-dresden.de>
Content-Type: text/plain; charset=iso-8859-1
Hi,
On Thu Aug 02, 2012 at 11:14:34 +0800, ?????? wrote:
> Hi,
> I am trying to modify the vcpu example of l4re-snapshot to
> switch registers to execute my C function.But It doesn't work.
> I have read some papers about l4linux tranplantion.and follow it .
> To switch the process, I fill the vcpu_state_t structure with
> its registers.and call vcpu_resume_commit action.Then Jump to the ASM
> Code.
> But problem arises when I want to jump from asm code to C
> function. What's the Problem? The Code is as following:
> #define SVC_MODE 0x00000013
> #define USR_MODE 0x00000010
>
> asm volatile
> (
> ".pushsection .text\n"
> ".p2align 12 \t\n"
> ".global my_super_code \t\n"
> "my_super_code: \t\n"
> " msr cpsr_c, r7\t\n"
> " mov lr, r6 \t\n"
> " mov pc, r5 \t\n"
> //" b my_super_code \t\n"
> ".popsection"
> );
I think the problem is not the jump but the msr, which you cannot do in
user-land and which you probably can safely remove.
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
------------------------------
_______________________________________________
l4-hackers mailing list
l4-hackers@os.inf.tu-dresden.de
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
End of l4-hackers Digest, Vol 112, Issue 3
******************************************