Mercurial > lcfOS
comparison cos/kernel/handlers.c @ 23:5dd47d6eebac
Added ubersimple malloc algorithm
author | windel |
---|---|
date | Thu, 01 Dec 2011 21:42:59 +0100 |
parents | 66e9c332c845 |
children | d8627924d40d |
comparison
equal
deleted
inserted
replaced
22:69bc6d477b38 | 23:5dd47d6eebac |
---|---|
99 idtP.limit = (sizeof(IDT_entry) * 256) - 1; | 99 idtP.limit = (sizeof(IDT_entry) * 256) - 1; |
100 // call load IDT asm function: | 100 // call load IDT asm function: |
101 loadIDT(); | 101 loadIDT(); |
102 | 102 |
103 PICremap(); | 103 PICremap(); |
104 magicBochsBreak(); | |
105 printf("enable ints\n"); | |
106 asm("sti"); | 104 asm("sti"); |
107 printf("Done!\n"); | |
108 } | 105 } |
109 | 106 |
110 // PIC functions: | 107 // PIC functions: |
111 void PICremap() { | 108 void PICremap() { |
112 unsigned char maskmaster, maskslave, pic1, pic2; | 109 unsigned char maskmaster, maskslave, pic1, pic2; |