diff --git a/src/sys/include/ubixos/kmod.h b/src/sys/include/ubixos/kmod.h index b4e336a..f9ef3a3 100644 --- a/src/sys/include/ubixos/kmod.h +++ b/src/sys/include/ubixos/kmod.h @@ -45,11 +45,15 @@ uInt32 kmod_load(const char *); +uInt32 kmod_add(const char *); #endif /*** $Log$ + Revision 1.3 2004/09/26 20:40:51 reddawg + Added baseAddr to the kmod_t + Revision 1.2 2004/09/26 20:39:19 reddawg Added kmod struct type kmod_t diff --git a/src/sys/kmods/kmod.c b/src/sys/kmods/kmod.c index 1fb1e82..53e2031 100644 --- a/src/sys/kmods/kmod.c +++ b/src/sys/kmods/kmod.c @@ -39,6 +39,21 @@ #include #include +kmod_t *kmods = 0x0; + +uInt32 kmod_add(const char *kmod_file) { + uInt32 addr = 0x0; + + addr = kmod_load(kmod_file); + + if (addr == 0x0) + return(0x0); + + if (kmods == 0x0) { + kmods = kmalloc(sizeof(kmod_t)); + } + } + uInt32 kmod_load(const char *kmod_file) { int i = 0x0; int x = 0x0; @@ -172,6 +187,9 @@ /*** $Log$ + Revision 1.2 2004/09/26 20:37:35 reddawg + Fixed a few minor bugs + Revision 1.1 2004/09/20 07:33:10 reddawg Start of kernel modules will make it much more flexable - These modules can be either in kernel threads or system services...