[coreboot] Convert Assembly JMP to C

ron minnich rminnich at gmail.com
Wed Sep 10 22:42:02 CEST 2008

On Wed, Sep 10, 2008 at 1:35 PM, Joseph Smith <joe at settoplinux.org> wrote:
> Hello,
> How do I convert an Assembly JMP instruction to C. What I would like to do
> is execute an executable assembly blob located in memory. From the docs I
> have read, for assembly you just need to issues a JMP to the memory
> location to execute it. How to do the same in C, that is the question..

> P.S. This question is leading up to something great :-)

one way to get an abs jump is something like:

void (*f) (void);

f = (some nice cast) 0x8010000;


or some such. I've used many variants, over the years, exact
invocation is compiler dependent.


More information about the coreboot mailing list