Changeset 1f12fab in mainline for kernel/arch/sparc32/src/mm/frame.c


Ignore:
Timestamp:
2013-10-07T20:00:34Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a73ebf0
Parents:
80d9d83
Message:

First attempt to implement preemptive trap handlers
and switch to userspace. Preemptive traps are needed
for at least page faults, as page fault handling code
can trigger window underflow/overflow exceptions.

This commit also introduces userspace window buffer
for saving userspace register windows (just as in
sparc64).

These changes are unfinished and far from working
correctly.

File:
1 edited

Legend:

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

    r80d9d83 r1f12fab  
    6060                    BOOT_PT_START_FRAME + BOOT_PT_SIZE_FRAMES,
    6161                    ZONE_AVAILABLE | ZONE_LOWMEM);
     62
     63                printf("low_zone: %d frames\n", SIZE2FRAMES(size));
    6264        } else {
    6365                pfn_t conf = zone_external_conf_alloc(SIZE2FRAMES(size));
     
    6567                        zone_create(ADDR2PFN(base), SIZE2FRAMES(size), conf,
    6668                            ZONE_AVAILABLE | ZONE_HIGHMEM);
     69
     70                printf("high zone: %d frames\n", SIZE2FRAMES(size));
    6771        }
    68        
     72
     73        printf("free: %d\n", frame_total_free_get());
    6974}
    7075
     
    8186        /* blacklist boot page table */
    8287        frame_mark_unavailable(BOOT_PT_START_FRAME, BOOT_PT_SIZE_FRAMES);
     88        printf("free: %d\n", frame_total_free_get());
    8389        //machine_frame_init();
    8490}
Note: See TracChangeset for help on using the changeset viewer.