Changeset 2e9eae2 in mainline for genarch/src/fb/fb.c


Ignore:
Timestamp:
2006-06-23T16:03:53Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
757551a3
Parents:
a832dd7
Message:

Changed interface of frame_alloc/free to use address of frame instead of the pfn.
This makes it impossible to use >4GB of memory on 32-bit machines, but who cares…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/fb/fb.c

    ra832dd7 r2e9eae2  
    395395                order = fnzb(pages-1)+1;
    396396
    397         pfn_t frame = frame_alloc_rc(order,FRAME_ATOMIC,&rc);
    398         if (!rc)
    399                 dbbuffer = (void *)PA2KA(PFN2ADDR(frame));
    400         else
     397        dbbuffer = frame_alloc_rc(order,FRAME_ATOMIC | FRAME_KA, &rc);
     398        if (!dbbuffer)
    401399                printf("Failed to allocate scroll buffer.\n");
    402400        dboffset = 0;
Note: See TracChangeset for help on using the changeset viewer.