Changeset 5f0f29ce in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2009-02-26T23:34:27Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e49e234
Parents:
6b1de7a
Message:

kernel memory management revisited (phase 1): proper support for zone flags

  • the zone_t structures are now statically allocated to be easily available
  • the locking scheme was simplified
  • new flags for non-available zones were introduced
  • FRAME_LOW_4_GiB flag is removed, the functionality will be eventually reimplemented using a generic mechanism
Location:
kernel/arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/mm/frame.c

    r6b1de7a r5f0f29ce  
    5858        pfn_t start, conf;
    5959        size_t size;
    60 
     60       
    6161        for (i = 0; i < e820counter; i++) {
    6262                if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
  • kernel/arch/ia32/src/smp/smp.c

    r6b1de7a r5f0f29ce  
    155155                 * Prepare new GDT for CPU in question.
    156156                 */
     157               
     158                /* XXX Flag FRAME_LOW_4_GiB was removed temporarily,
     159                 * it needs to be replaced by a generic fuctionality of
     160                 * the memory subsystem
     161                 */
    157162                gdt_new = (struct descriptor *) malloc(GDT_ITEMS *
    158                     sizeof(struct descriptor), FRAME_ATOMIC | FRAME_LOW_4_GiB);
     163                    sizeof(struct descriptor), FRAME_ATOMIC);
    159164                if (!gdt_new)
    160165                        panic("Cannot allocate memory for GDT.");
Note: See TracChangeset for help on using the changeset viewer.