i want to load user application. I'm at early stage and I don't use multitasking, etc.
So, I don't know what I need.
Now I do those steps:
1. Load application to RAM (I have my own application format, it is modified *.com, at first byte I have jump to code section)
2. Change current EIP register (point to user app):
Code: Select all
; body of an asm(" ... ":"=a" (peip) : "g" (adr) // new eip value, address of first byte of *.com
xor %%eax, %%eax
call jumpme1
jumpme1:
popl %%eax
movl %1, %%eax
pushl %%eax
ret
Thanks
