Changeset 02a99d2 in mainline for src/mm


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

Location:
src/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mm/frame.c

    r45671f48 r02a99d2  
    7272                frame_bitmap = (__u8 *) malloc(frame_bitmap_octets);
    7373                if (!frame_bitmap)
    74                         panic(PANIC "malloc/frame_bitmap\n");
     74                        panic("malloc/frame_bitmap\n");
    7575
    7676                /*
     
    145145                        }
    146146                }
    147                 panic(PANIC "frames_free inconsistent (%d)\n", frames_free);
     147                panic("frames_free inconsistent (%d)\n", frames_free);
    148148        }
    149149        spinlock_unlock(&framelock);
     
    151151
    152152        if (flags & FRAME_PANIC)
    153                 panic(PANIC "unable to allocate frame\n");
     153                panic("unable to allocate frame\n");
    154154               
    155155        /* TODO: implement sleeping logic here */
    156         panic(PANIC "sleep not supported\n");
     156        panic("sleep not supported\n");
    157157       
    158158        goto loop;
     
    196196                        }       
    197197                }
    198                 else panic(PANIC "frame_free: frame already free\n");
    199         }
    200         else panic(PANIC "frame_free: frame number too big\n");
     198                else panic("frame_free: frame already free\n");
     199        }
     200        else panic("frame_free: frame number too big\n");
    201201       
    202202        spinlock_unlock(&framelock);
  • src/mm/heap.c

    r45671f48 r02a99d2  
    3131#include <func.h>
    3232#include <memstr.h>
     33#include <panic.h>
    3334#include <arch/types.h>
    3435
  • src/mm/vm.c

    r45671f48 r02a99d2  
    6363       
    6464        if (addr % PAGE_SIZE)
    65                 panic(PANIC "addr not aligned to a page boundary");
     65                panic("addr not aligned to a page boundary");
    6666       
    6767        pri = cpu_priority_high();
     
    125125                        break;
    126126                default:
    127                         panic(PANIC "unexpected vm_type_t %d", a->type);
     127                        panic("unexpected vm_type_t %d", a->type);
    128128        }
    129129       
Note: See TracChangeset for help on using the changeset viewer.