31 lines
605 B
C
31 lines
605 B
C
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/init.h>
|
|
|
|
typedef struct {
|
|
uint16_t size;
|
|
uint64_t adress;
|
|
} Fuck_IDT_register;
|
|
|
|
extern void store_idt(Fuck_IDT_register *storage);
|
|
|
|
static int __init fuck_system(void)
|
|
{
|
|
pr_info("start to fuck system");
|
|
struct desc_ptr newidtr;
|
|
gate_desc *oldint, *newint;
|
|
Fuck_IDT_register idt_register;
|
|
store_idt(&idt_register);
|
|
pr_info("idt register stored");
|
|
return 0;
|
|
}
|
|
|
|
static void __exit unfuck_system(void)
|
|
{
|
|
pr_info("start to unfuck system");
|
|
}
|
|
|
|
module_init(fuck_system);
|
|
module_exit(unfuck_system);
|
|
MODULE_LICENSE("GPL");
|