Page 1 of 1
Driver
Posted: Sat May 09, 2009 3:48 pm
by VolTeK
i have a file loaded to 5000h it includes all of my functions for VolTroX Programs. how can i call my functions from 5000h?
Re: Driver
Posted: Sat May 09, 2009 5:15 pm
by 01000101
maybe a bit more info could help
.
I'm assuming VolTroX is your OS?
You need to make a
relocatable file that you can fill in the unresolved function calls dynamically.
Please provide more information about how you would interface with your kernel and other base info.
Ask
Smart Questions please.
Re: Driver
Posted: Sat May 09, 2009 5:22 pm
by VolTeK
im sorry if i am not very descrete, i have seen code where if you load a file to memory it stays there, is there a way i could use my filesystem to load it but not execute it, can i just call functions from the file loaded in memory?
hows that?
Re: Driver
Posted: Sat May 09, 2009 5:56 pm
by neon
GhostXoPCorp wrote:im sorry if i am not very descrete, i have seen code where if you load a file to memory it stays there, is there a way i could use my filesystem to load it but not execute it, can i just call functions from the file loaded in memory?
Two options that I know of:
-Use a linked list (or some sort) of function pointers to those functions in the loaded module, or
-Use a file format that supports dynamic linking (ie elf and pe).
Re: Driver
Posted: Sat May 09, 2009 6:12 pm
by Troy Martin
GhostXoPCorp wrote:is there a way i could use my filesystem to load it but not execute it
I would sure as hell hope that your file loading calls are separate from your program execution calls.
Re: Driver
Posted: Sat May 09, 2009 7:41 pm
by VolTeK
i know i have to do that, alright i have found something, thanks for your time