Mercurial > lcfOS
comparison cos/kernel/mm.c @ 41:35cc54e078dd
Added memory functions
author | windel |
---|---|
date | Fri, 03 Feb 2012 17:56:41 +0100 |
parents | 24ce177e01e8 |
children |
comparison
equal
deleted
inserted
replaced
40:24ce177e01e8 | 41:35cc54e078dd |
---|---|
122 | 122 |
123 i += 0x1000; // Increase a 4 k frame | 123 i += 0x1000; // Increase a 4 k frame |
124 } | 124 } |
125 | 125 |
126 // Set the created mapping as active: | 126 // Set the created mapping as active: |
127 switch_mapping(kernel_map); | 127 switch_mapping(kernel_map); // Loads cr3 |
128 | 128 |
129 // TODO: set the use of placement malloc to invalid after here. | 129 // TODO: set the use of placement malloc to invalid after here. |
130 // kernel_heap = create_heap(HEAP_START, HEAP_INITIAL_SIZE); | 130 // kernel_heap = create_heap(HEAP_START, HEAP_INITIAL_SIZE); |
131 } | 131 } |
132 | 132 |