/kernel/trunk/generic/include/mm/frame.h |
---|
49,7 → 49,7 |
#define IS_BUDDY_LEFT_BLOCK(zone, frame) (((FRAME_INDEX((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 0) |
#define IS_BUDDY_RIGHT_BLOCK(zone, frame) (((FRAME_INDEX((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 1) |
#define ZONE_BLACKLIST_SIZE 3 |
#define ZONE_BLACKLIST_SIZE 4 |
struct zone { |
link_t link; /**< link to previous and next zone */ |
/kernel/trunk/generic/src/main/kinit.c |
---|
162,6 → 162,9 |
if (!a) |
panic("vm_area_create: vm_text\n"); |
vm_area_map(a, m); |
if (config.init_size > 0) |
memcpy((void *) PA2KA(a->mapping[0]), (void *) config.init_addr, config.init_size < PAGE_SIZE ? config.init_size : PAGE_SIZE); |
else |
memcpy((void *) PA2KA(a->mapping[0]), (void *) utext, utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE); |
/* |
/kernel/trunk/generic/src/mm/frame.c |
---|
69,6 → 69,8 |
{ |
if (config.cpu_active == 1) { |
frame_region_not_free(KA2PA(config.base), config.kernel_size); |
if (config.init_size > 0) |
frame_region_not_free(KA2PA(config.init_addr), config.init_size); |
} |
frame_arch_init(); |
/kernel/trunk/arch/ia32/boot/grub.img.gz |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/kernel/trunk/arch/ia32/src/boot/boot.S |
---|
172,6 → 172,7 |
movl 0(%esi), %edx # mods->mod_start |
movl 4(%esi), %ecx # mods->mod_end |
subl %edx, %ecx |
addl $0x80000000, %edx |
mods_invalid: |
movl %ecx, init_size |