Changeset 02a99d2 in mainline for src/main/kinit.c


Ignore:
Timestamp:
2005-05-11T19:51:55Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69515260
Parents:
45671f48
Message:

NDEBUG debug symbol, ASSERT debug macro, fancier panic() in debug mode
indentation fixes, ASSERTs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/kinit.c

    r45671f48 r02a99d2  
    120120         */
    121121        m = vm_create();
    122         if (!m) panic(PANIC "vm_create");
     122        if (!m) panic("vm_create");
    123123        u = task_create(m);
    124         if (!u) panic(PANIC "task_create");
     124        if (!u) panic("task_create");
    125125        t = thread_create(uinit, NULL, u, THREAD_USER_STACK);
    126         if (!t) panic(PANIC "thread_create");
     126        if (!t) panic("thread_create");
    127127
    128128        /*
     
    130130         */     
    131131        a = vm_area_create(m, VMA_TEXT, 1, UTEXT_ADDRESS);
    132         if (!a) panic(PANIC "vm_area_create: vm_text");
     132        if (!a) panic("vm_area_create: vm_text");
    133133        memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE);             
    134134
     
    137137         */
    138138        a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS);
    139         if (!a) panic(PANIC "vm_area_create: vm_stack");
     139        if (!a) panic("vm_area_create: vm_stack");
    140140       
    141141        thread_ready(t);
Note: See TracChangeset for help on using the changeset viewer.