Changeset 3fc15fd in rtems-libbsd


Ignore:
Timestamp:
Jul 31, 2015, 10:53:37 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
9199609
Parents:
88205a5
Message:

i386/legacy.c: Disable per CPU stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/i386/i386/legacy.c

    r88205a5 r3fc15fd  
    261261struct cpu_device {
    262262        struct resource_list cd_rl;
     263#ifndef __rtems__
    263264        struct pcpu *cd_pcpu;
     265#endif /* __rtems__ */
    264266};
    265267
     
    321323        struct cpu_device *cd;
    322324        device_t child;
     325#ifndef __rtems__
    323326        struct pcpu *pc;
     327#endif /* __rtems__ */
    324328
    325329        if ((cd = malloc(sizeof(*cd), M_DEVBUF, M_NOWAIT | M_ZERO)) == NULL)
     
    327331
    328332        resource_list_init(&cd->cd_rl);
     333#ifndef __rtems__
    329334        pc = pcpu_find(device_get_unit(bus));
    330335        cd->cd_pcpu = pc;
     336#endif /* __rtems__ */
    331337
    332338        child = device_add_child_ordered(bus, order, name, unit);
    333339        if (child != NULL) {
     340#ifndef __rtems__
    334341                pc->pc_device = child;
     342#endif /* __rtems__ */
    335343                device_set_ivars(child, cd);
    336344        } else
     
    354362
    355363        switch (index) {
     364#ifndef __rtems__
    356365        case CPU_IVAR_PCPU:
    357366                cpdev = device_get_ivars(child);
    358367                *result = (uintptr_t)cpdev->cd_pcpu;
    359368                break;
    360 #ifndef __rtems__
    361369        case CPU_IVAR_NOMINAL_MHZ:
    362370                if (tsc_is_invariant) {
Note: See TracChangeset for help on using the changeset viewer.