Changeset 0f09b72 in rtems-libbsd


Ignore:
Timestamp:
Mar 22, 2012, 12:44:07 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, a8f29d695e152575479ad1a97fa354f661bebd4d, freebsd-9.3, d892051f37c2c4ad7f345f6a817ea3d38e56a431
Children:
5ad09a1
Parents:
7fa65ca
Message:

Add smp variables used by e1000 and remove unneeded ifdefs

+ added machine/smp.h as empty file
+ added rtems-bsd-smp.c for a few variables which were needed

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r7fa65ca r0f09b72  
    357357        rtemsbsd/src/rtems-bsd-shell.c \
    358358        rtemsbsd/src/rtems-bsd-syscalls.c \
     359        rtemsbsd/src/rtems-bsd-smp.c \
    359360        rtemsbsd/src/rtems-bsd-malloc.c \
    360361        rtemsbsd/src/rtems-bsd-support.c \
  • freebsd-to-rtems.py

    r7fa65ca r0f09b72  
    517517        'src/rtems-bsd-shell.c',
    518518        'src/rtems-bsd-syscalls.c',
     519        'src/rtems-bsd-smp.c',
    519520        #'src/rtems-bsd-socket.c',
    520521        #'src/rtems-bsd-mbuf.c',
     
    18811882                'machine/elf.h',
    18821883                'machine/sf_buf.h',
     1884                'machine/smp.h',
    18831885                #'machine/vmparam.h',
    18841886                'local/opt_ntp.h',
  • freebsd/dev/e1000/if_igb.c

    r7fa65ca r0f09b72  
    6161#include <freebsd/sys/eventhandler.h>
    6262#include <freebsd/sys/pcpu.h>
    63 #ifndef __rtems__
    6463#include <freebsd/sys/smp.h>
    6564#include <freebsd/machine/smp.h>
    66 #endif
    6765#include <freebsd/machine/bus.h>
    6866#include <freebsd/machine/resource.h>
     
    25162514        }
    25172515
    2518 #ifdef __rtems__
    2519         /* Figure out a reasonable auto config value */
    2520         queues = 10; /* XXX fix me */
    2521 #else
    25222516        /* Figure out a reasonable auto config value */
    25232517        queues = (mp_ncpus > (msgs-1)) ? (msgs-1) : mp_ncpus;
    2524 #endif
    25252518
    25262519        /* Manual override */
Note: See TracChangeset for help on using the changeset viewer.