Changeset b55081a in rtems-libbsd


Ignore:
Timestamp:
03/08/12 21:54:05 (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
0d436c7
Parents:
287453d
Message:

kern/kern_subr.c added for hashinit

More undefined symbols resulted.

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • Changes

    r287453d rb55081a  
    1414  - Support config.inc
    1515  - Fix for loop line too long on install stanza
     16
     17+ kern_subr.c
     18  - had to add #include <sys/uio.h>
     19
     20+ RTEMS does not have
     21  - any thread td_ structure elements
     22  - sys/mutex.h - stubbed thread_lock and friends
     23
     24+ Include Files to ifdef include out
     25    #include <sys/vnode.h>
     26    #include <vm/vm.h>
     27    #include <vm/vm_extern.h>
     28    #include <vm/vm_kern.h>
     29    #include <vm/vm_page.h>
     30
  • Makefile

    r287453d rb55081a  
    272272        freebsd/kern/kern_mbuf.c \
    273273        freebsd/kern/kern_module.c \
     274        freebsd/kern/kern_subr.c \
    274275        freebsd/kern/kern_sysctl.c \
    275276        freebsd/kern/subr_bus.c \
  • freebsd-to-rtems.py

    r287453d rb55081a  
    153153# generate an empty file as a place holder
    154154def installEmptyFile(src):
     155        global tempFile
    155156        dst = RTEMS_DIR + '/' + PREFIX + '/' + src.replace('rtems/', '')
    156         if isVerbose == True:
    157                 print "Install empty - " + dst
    158157        if isDryRun == True:
     158                if isVerbose == True:
     159                        print "Install empty - " + dst
    159160                return
    160161        try:
     
    162163        except OSError:
    163164                pass
    164         out = open(dst, 'w')
     165        out = open(tempFile, 'w')
    165166        out.write('/* EMPTY */\n')
    166167        out.close()
     168        if copyIfDifferent(tempFile, dst) == True:
     169                if isVerbose == True:
     170                        print "Install empty - " + dst
    167171
    168172# fix include paths inside a C or .h file
     
    982986                'kern/kern_mbuf.c',
    983987                'kern/kern_module.c',
     988                'kern/kern_subr.c',
    984989                'kern/kern_sysctl.c',
    985990                'kern/subr_bus.c',
     
    16581663                'machine/sf_buf.h',
    16591664                #'machine/vmparam.h',
    1660                 'net/vnet.h',
    16611665                'security/audit/audit.h',
    1662                 'security/mac/mac_framework.h',
    16631666                'sys/bio.h',
    16641667                'sys/copyright.h',
    16651668                'sys/cpuset.h',
    1666                 'sys/errno.h',
    16671669                'sys/exec.h',
    16681670                'sys/fail.h',
     
    16711673                'sys/_pthreadtypes.h',
    16721674                #'sys/resourcevar.h',
    1673                 'sys/sbuf.h',
    16741675                'sys/sched.h',
    16751676                'sys/select.h',
     
    16791680                'sys/sysproto.h',
    16801681                'sys/stat.h',
    1681                 'sys/taskqueue.h',
    16821682                #'sys/time.h',
    16831683                'time.h',
  • freebsd/sys/mutex.h

    r287453d rb55081a  
    132132void    _thread_lock_flags(struct thread *, int, const char *, int);
    133133
     134#ifndef __rtems__
    134135#define thread_lock(tdp)                                                \
    135136    _thread_lock_flags((tdp), 0, __FILE__, __LINE__)
     
    138139#define thread_unlock(tdp)                                              \
    139140       mtx_unlock_spin((tdp)->td_lock)
     141#else
     142#define thread_lock(tdp)
     143#define thread_lock_flags(tdp, opt)
     144#define thread_unlock(tdp)
     145#endif
    140146
    141147#define mtx_recurse     lock_object.lo_data
Note: See TracChangeset for help on using the changeset viewer.