configuration option for kernel's multiboot-compliance
[quarnos.git] / modules / module.cpp
blob143ef059d7c82d867bda3840c59500e1ea20d390
1 #include "module.h"
2 #include "libs/string.h"
4 using namespace modules;
6 module::module(const char *name, module_type _type) : mtype(_type) {
7 mname = new char[strlen(name)];
8 strcpy(mname, name);
11 void module::set_kernel_space(void *text, int tsize, void *, int, void *, int) {
12 kernel_space.code_start = text;
13 kernel_space.code_size = tsize;