Hello,
I was wondering what the best method to load trampoline code for SMP is. How do you embed it in a section in the executable?
Thanks,
nexos
Trampoline code question
Re: Trampoline code question
I'm not quite sure what the problem is. You just link it in to the kernel object file in the same way as any other code.
Re: Trampoline code question
I do it as normal assembly subroutine, but written in position independed fashion. Then copy it somewhere below first meg, so it can be reached with startup IPI.
Re: Trampoline code question
Thank you both. I was making a problem when there was no problem 

Re: Trampoline code question
Wait so an elf32 binary can contain 16 bit code?
Re: Trampoline code question
And 64 bit too. It can be a little bit problematic to link, since not every type of relocation can be applied, but it sure can be done.8infy wrote:Wait so an elf32 binary can contain 16 bit code?