Changeset 32ff43e6 in mainline
- Timestamp:
- 2005-09-28T13:00:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a9543d
- Parents:
- a58db280
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
include/mm/buddy.h
ra58db280 r32ff43e6 33 33 #include <typedefs.h> 34 34 35 #define BUDDY_SYSTEM_INNER_BLOCK 0xff 36 35 37 struct buddy_operations { 36 38 link_t *(* find_buddy)(link_t *); -
include/mm/heap.h
ra58db280 r32ff43e6 46 46 extern void early_heap_init(__address heap, size_t size); 47 47 48 extern void *early_malloc(size_t size) ;48 extern void *early_malloc(size_t size) __attribute__ ((malloc)); 49 49 extern void early_free(void *ptr); 50 50 -
src/mm/buddy.c
ra58db280 r32ff43e6 49 49 int i; 50 50 51 ASSERT(max_order < BUDDY_SYSTEM_INNER_BLOCK); 52 51 53 ASSERT(op->find_buddy); 52 54 ASSERT(op->set_order); … … 167 169 168 170 if (buddy && i != b->max_order - 1) { 171 172 ASSERT(b->op->get_order(buddy) == i); 173 169 174 /* 170 175 * Remove buddy from the list of order i. … … 173 178 174 179 /* 180 * Invalidate order of both block and buddy. 181 */ 182 b->op->set_order(block, BUDDY_SYSTEM_INNER_BLOCK); 183 b->op->set_order(buddy, BUDDY_SYSTEM_INNER_BLOCK); 184 185 /* 175 186 * Coalesce block and buddy into one block. 176 187 */ -
src/proc/scheduler.c
ra58db280 r32ff43e6 30 30 #include <proc/thread.h> 31 31 #include <proc/task.h> 32 #include <cpu.h> 32 #include <mm/heap.h> 33 #include <mm/frame.h> 34 #include <mm/page.h> 33 35 #include <mm/vm.h> 36 #include <arch/asm.h> 37 #include <arch/faddr.h> 38 #include <arch/atomic.h> 39 #include <synch/spinlock.h> 34 40 #include <config.h> 35 41 #include <context.h> 36 42 #include <func.h> 37 43 #include <arch.h> 38 #include <arch/asm.h>39 44 #include <list.h> 40 45 #include <panic.h> 41 46 #include <typedefs.h> 42 #include <mm/page.h> 43 #include <synch/spinlock.h> 44 #include <arch/faddr.h> 45 #include <arch/atomic.h> 47 #include <cpu.h> 46 48 #include <print.h> 47 #include <mm/frame.h>48 #include <mm/heap.h>49 49 #include <debug.h> 50 50
Note:
See TracChangeset
for help on using the changeset viewer.