Changeset 2b50d7c in mainline for src/mm/heap.c


Ignore:
Timestamp:
2005-05-28T20:13:25Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
747a2476
Parents:
87cb9e2
Message:

IA-64 work.
Redefine FRAME_SIZE to "(16*1024)" instead of "2*4096". Note that the latter definition was wrong because of the lack of "()".
Take panic_printf(), cpu_halt() and memsetb() out of fake.s and implement them properly in asm.S.
Move ski_init_console() from arch_post_mm_init() to arch_pre_mm_init().
In start.S, write r0 to ar.bspstore.

Janitorial fixes.
Add count_t type.
Replace several occurrences of int and u32 by count_t or size_t.
Shorten several panic strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mm/heap.c

    r87cb9e2 r2b50d7c  
    4343static spinlock_t heaplock;
    4444
    45 void heap_init(__address heap, __u32 size)
     45void heap_init(__address heap, size_t size)
    4646{
    4747        spinlock_initialize(&heaplock);
     
    6363
    6464        if (size == 0)
    65                 panic("malloc: zero-size allocation request");
     65                panic("zero-size allocation request");
    6666               
    6767        x = chunk0;
Note: See TracChangeset for help on using the changeset viewer.