Changeset 7ee0e2f in mainline for generic


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.

Location:
generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.
Note: See TracChangeset for help on using the changeset viewer.