Mercurial > lcfOS
comparison cos/kernel/handlers.c @ 21:66e9c332c845
Forgot crucial adjustment to idt pointer
author | windel |
---|---|
date | Tue, 29 Nov 2011 19:32:31 +0100 |
parents | b1fed2171e1a |
children | 5dd47d6eebac |
comparison
equal
deleted
inserted
replaced
20:b1fed2171e1a | 21:66e9c332c845 |
---|---|
93 setIDTentry(32, INT32, 0x08, 0x8F); | 93 setIDTentry(32, INT32, 0x08, 0x8F); |
94 setIDTentry(33, INT33, 0x08, 0x8F); | 94 setIDTentry(33, INT33, 0x08, 0x8F); |
95 setIDTentry(34, INT34, 0x08, 0x8F); | 95 setIDTentry(34, INT34, 0x08, 0x8F); |
96 | 96 |
97 // Set the correct values in the IDT pointer: | 97 // Set the correct values in the IDT pointer: |
98 idtP.base = (uint64_t)&idt; | 98 idtP.base = (uint64_t)idt; |
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(); |