Changeset 7ee0e2f in mainline


Ignore:
Timestamp:
2006-06-26T10:18:05Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f40fe4
Parents:
e45f81a
Message:

Remove unneeded FRAME_PANIC.
Fix some things broken by last commit.

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/src/mm/vhpt.c

    re45f81a r7ee0e2f  
    4343__address vhpt_set_up(void)
    4444{
    45         vhpt_base=(vhpt_entry_t*) frame_alloc(VHPT_WIDTH-FRAME_WIDTH,FRAME_KA);
    46         if(!vhpt_base) panic("Kernel configured with VHPT but no memory for table.");
     45        vhpt_base = frame_alloc(VHPT_WIDTH-FRAME_WIDTH,FRAME_KA | FRAME_ATOMIC);
     46        if(!vhpt_base)
     47                panic("Kernel configured with VHPT but no memory for table.");
    4748        vhpt_invalidate_all();
    4849        return (__address) vhpt_base;
  • arch/ppc64/src/mm/page.c

    re45f81a r7ee0e2f  
    275275               
    276276                /* Allocate page hash table */
    277                 phte_t *physical_phte = (phte_t *) frame_alloc(PHT_ORDER, FRAME_KA | FRAME_PANIC);
     277                phte_t *physical_phte = (phte_t *) frame_alloc(PHT_ORDER, FRAME_KA | FRAME_ATOMIC);
    278278               
    279279                ASSERT((__address) physical_phte % (1 << PHT_BITS) == 0);
  • genarch/src/mm/as_pt.c

    re45f81a r7ee0e2f  
    7474        ipl_t ipl;
    7575
    76         dst_ptl0 = (pte_t *) frame_alloc(ONE_FRAME, FRAME_KA | FRAME_PANIC);
     76        dst_ptl0 = (pte_t *) frame_alloc(ONE_FRAME, FRAME_KA);
    7777
    7878        if (flags & FLAG_AS_KERNEL) {
  • generic/include/mm/frame.h

    re45f81a r7ee0e2f  
    5959
    6060#define FRAME_KA                0x1     /* skip frames conflicting with user address space */
    61 #define FRAME_PANIC             0x2     /* panic on failure */
    62 #define FRAME_ATOMIC            0x4     /* do not panic and do not sleep on failure */
    63 #define FRAME_NO_RECLAIM        0x8     /* do not start reclaiming when no free memory */
     61#define FRAME_ATOMIC            0x2     /* do not panic and do not sleep on failure */
     62#define FRAME_NO_RECLAIM        0x4     /* do not start reclaiming when no free memory */
    6463
    6564#define FRAME_OK                0       /* frame_alloc return status */
  • generic/src/cpu/cpu.c

    re45f81a r7ee0e2f  
    7272
    7373                for (i=0; i < config.cpu_count; i++) {
    74                         cpus[i].stack = (__u8 *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_PANIC);
     74                        cpus[i].stack = (__u8 *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_ATOMIC);
    7575                       
    7676                        cpus[i].id = i;
  • generic/src/mm/frame.c

    re45f81a r7ee0e2f  
    960960        }
    961961        if (!zone) {
    962                 if (flags & FRAME_PANIC)
    963                         panic("Can't allocate frame.\n");
    964                
    965962                /*
    966963                 * TODO: Sleep until frames are available again.
  • test/mm/falloc1/test.c

    re45f81a r7ee0e2f  
    5555                        allocated = 0;
    5656                        for (i = 0; i < MAX_FRAMES >> order; i++) {
    57                                 frames[allocated] = frame_alloc(order, FRAME_ATOMIC | FRAME_KA);
     57                                frames[allocated] = (__address) frame_alloc(order, FRAME_ATOMIC | FRAME_KA);
    5858                               
    5959                                if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) {
     
    6161                                }
    6262                               
    63                                 if (status == 0) {
     63                                if (frames[allocated]) {
    6464                                        allocated++;
    6565                                } else {
  • test/mm/falloc2/test.c

    re45f81a r7ee0e2f  
    5252void falloc(void * arg)
    5353{
    54         int status, order, run, allocated, i;
     54        int order, run, allocated, i;
    5555        __u8 val = THREAD->tid % THREADS;
    5656        index_t k;
     
    6666                        allocated = 0;
    6767                        for (i = 0; i < (MAX_FRAMES >> order); i++) {
    68                                 frames[allocated] = frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status);
    69                                 if (status == 0) {
     68                                frames[allocated] = (__address)frame_alloc(order, FRAME_ATOMIC | FRAME_KA);
     69                                if (frames[allocated]) {
    7070                                        memsetb(frames[allocated], FRAME_SIZE << order, val);
    7171                                        allocated++;
Note: See TracChangeset for help on using the changeset viewer.