Having dreamnt of the nature of interruption handling (i.e.: more or less a 
special procedure call), my question was somewhat stupid (though the presence 
of plugin_alloc_intr still remains a mystery in my soul).

So, there is my Hello World plugin. A lot of comments, so there is not much 
to add.

The assembly file is to build a disk image for use with the plugin. It 
compiles with nasm (nasm -f bin -o hello-world.img hello-world.S), and 
creates a 512 bytes master boot record, which can be used stand alone by 
specifying a disk geometry of CHS = 1, 1, 1.

The plugin is mostly a demonstration for suggested additions to the current 
plugin architecture, but it remains (nearly) perfectly compatible with the 
current way. The nearly part is a last bit of uninitialization that is done 
in plugin_unlock, which causes a segfault on termination, if not called 
properly. This is mostly an esthetic bug for now, which does not break 
anything and remains there only because it is the way to do with the new 
suggested architecture.

Note that with my modified work copy of Plex86, everything you see in the 
plugin works perfectly, with no segfault, and can handle a huge lot of 
instances.

I didn't included Makefiles, as it is similar to the other plugin's.

Enjoy!

EL

hello-world.tar.gz

Reply via email to