Changeset 4c8715d2 in mainline


Ignore:
Timestamp:
2006-02-08T14:09:40Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc78c75
Parents:
5c3243e
Message:

Small cleanup.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mips32.c

    r5c3243e r4c8715d2  
    9797        arc_print_devices();
    9898        /* Setup usermode...*/
    99 //      config.init_addr = INIT_ADDRESS;
    100 //      config.init_size = INIT_SIZE;
     99        config.init_addr = INIT_ADDRESS;
     100        config.init_size = INIT_SIZE;
    101101}
    102102
     
    127127                                              cp0_status_um_bit |
    128128                                              cp0_status_ie_enabled_bit));
    129        
    130129        cp0_epc_write(UTEXT_ADDRESS);
    131130        userspace_asm(USTACK_ADDRESS+PAGE_SIZE);
  • generic/src/main/kinit.c

    r5c3243e r4c8715d2  
    7373        as_area_t *a;
    7474        __address frame;
    75         count_t frames;
     75        pfn_t frames;
    7676        int i;
    7777        task_t *u;
     
    166166                        frame = KA2PA(frame);
    167167
    168                 frames = config.init_size / FRAME_SIZE;
    169                 if (config.init_size % FRAME_SIZE > 0)
    170                         frames++;
     168                frames = SIZE2PFN(config.init_size);
    171169               
    172170                a = as_area_create(as, AS_AREA_TEXT, frames, UTEXT_ADDRESS);
Note: See TracChangeset for help on using the changeset viewer.