[fpc-pascal] Re: Building kernel modules using fpc (for fun)
Paul Breneman
Paul2006 at BrenemanLabs.com
Sun Jan 16 04:59:41 CET 2011
Lukasz Sokol wrote:
> Hey,
>
> take a look.
>
> I've basically removed all the calls that were referring to creating, reading
> and writing the procfs file.
>
> Only left init_module and cleanup_module so I only left trivial Hello World and
> Bye-bye messages.
> In fact I think even that should be made par with current linux standard. But
> that's for another few hours of fun ;)
> Plus it prints the intro and outro messages in new lines ;)
>
> http://pastebin.com/9D9ye7Pt (contains both system.pas and kernel_module.pas)
>
> This builds and insmods and rmmods ;) still but need the kernel_module_info.c
> file and Makefile from the original description.
>
> Amends and new ideas welcome.
This looks *very* interesting. I'd like to add it (with *big* red flags
and notes not to try it on a production PC) to this page:
http://www.turbocontrol.com/helloworld.htm
More information about the fpc-pascal
mailing list