Re: Calling function from address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 8, 2011 at 03:47, Micha M. <kernelnewbies@xxxxxxxxxxx> wrote:
> Hi!
>
>
> Is it possible to call a function that is somewere in the physical-address
> space? So I'd like to jump to a certain physical address, execute the code
> there and then return to my kernel module.
> I already tried to ioremap that address and cast the new address to a
> funtion pointer and then call the function, but there where some page
> faults.

Interesting, and after page fault....the code is still not executed?

what code(s) do you call? user mode? kernel mode?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux