Changeset 1e88db13 in rtems-libbsd


Ignore:
Timestamp:
Jun 1, 2012, 6:56:20 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, 9dd0bc27e3338bad08eaaf52d03265d2e7b9b4f7, 7027254d293cf3a8c888bd9f25052e96f458bc67, freebsd-9.3, d164b840c3973e0793da1b3e4142b1711514b9ba
Children:
7345c71
Parents:
19955e7
Message:

Added initialization needed for Nics back in.

Location:
freebsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • freebsd/kern/subr_pcpu.c

    r19955e7 r1e88db13  
    6565#include <freebsd/ddb/ddb.h>
    6666
     67#ifdef __rtems__
     68#include <freebsd/sys/kernel.h>
     69#endif
     70
    6771MALLOC_DEFINE(M_PCPU, "Per-cpu", "Per-cpu resource accouting.");
    6872
     
    8084struct cpuhead cpuhead = SLIST_HEAD_INITIALIZER(cpuhead);
    8185
    82 #ifndef __rtems__
    8386/*
    8487 * Initialize the MI portions of a struct pcpu.
     
    9598        cpuid_to_pcpu[cpuid] = pcpu;
    9699        SLIST_INSERT_HEAD(&cpuhead, pcpu, pc_allcpu);
     100#ifndef __rtems__
    97101        cpu_pcpu_init(pcpu, cpuid, size);
     102#endif
    98103        pcpu->pc_rm_queue.rmq_next = &pcpu->pc_rm_queue;
    99104        pcpu->pc_rm_queue.rmq_prev = &pcpu->pc_rm_queue;
     
    403408DB_SHOW_ALIAS(allpcpu, db_show_cpu_all);
    404409#endif
    405 #endif /* __rtems__ */
  • freebsd/net/netisr.c

    r19955e7 r1e88db13  
    670670}
    671671
    672 #ifndef __rtems__
    673672/*
    674673 * Process packets associated with a workstream and protocol.  For reasons of
     
    781780#endif
    782781}
    783 #endif  /* __rtems__ */
    784782
    785783static int
     
    10171015}
    10181016
    1019 #ifndef __rtems__
    10201017#ifdef DEVICE_POLLING
    10211018/*
     
    10521049                panic("%s: swi_add %d", __func__, error);
    10531050        pc->pc_netisr = nwsp->nws_intr_event;
     1051#ifndef __rtems__
    10541052        if (netisr_bindthreads) {
    10551053                error = intr_event_bind(nwsp->nws_intr_event, cpuid);
     
    10581056                            cpuid, error);
    10591057        }
     1058#endif
    10601059        NETISR_WLOCK();
    10611060        nws_array[nws_count] = nwsp->nws_cpu;
     
    11681167}
    11691168#endif
    1170 #endif  /* __rtems__ */
Note: See TracChangeset for help on using the changeset viewer.