Changeset 21cc0aa in rtems-libbsd


Ignore:
Timestamp:
Jul 18, 2012, 4:40:30 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, a8f29d695e152575479ad1a97fa354f661bebd4d, freebsd-9.3, d892051f37c2c4ad7f345f6a817ea3d38e56a431
Children:
e4f2591
Parents:
19ffee0
Message:

Added initilization of pcpu info for cpu0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/src/rtems-bsd-init.c

    r19ffee0 r21cc0aa  
    5757int maxusers;     /* base tunable */
    5858
     59
     60static struct pcpu FIXME_pcpu[MAXCPU];
     61
     62/*
     63 * Initialize per cpu data structures.  Based off
     64 * of the freeBSD mips method mips_pcpu0_init()
     65 */
     66static void
     67pcpu0_init()
     68{
     69        /* Initialize pcpu info of cpu-zero */
     70        pcpu_init((char *)&FIXME_pcpu[0], 0, sizeof(struct pcpu));
     71}
     72
    5973rtems_status_code
    6074rtems_bsd_initialize(void)
     
    6276        rtems_status_code sc = RTEMS_SUCCESSFUL;
    6377
    64   hz = (int) rtems_clock_get_ticks_per_second();
    65   tick = 1000000 / hz;
    66   maxusers = 1;
     78        hz = (int) rtems_clock_get_ticks_per_second();
     79        tick = 1000000 / hz;
     80        maxusers = 1;
    6781
    6882        sc =  rtems_timer_initiate_server(
     
    7690
    7791        mutex_init();
    78 
     92        pcpu0_init();
    7993        mi_startup();
    8094
Note: See TracChangeset for help on using the changeset viewer.