Changeset c1205ee in rtems-libbsd for freebsd/sys/dev/ofw/openfirm.c


Ignore:
Timestamp:
Mar 2, 2017, 3:29:11 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, master
Children:
5f3722a
Parents:
f0dd0c5
git-author:
Sebastian Huber <sebastian.huber@…> (03/02/17 15:29:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/08/17 08:04:18)
Message:

FDT(4): Port to RTEMS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/ofw/openfirm.c

    rf0dd0c5 rc1205ee  
    8585static ihandle_t stdout;
    8686
     87#ifndef __rtems__
    8788static ofw_def_t        *ofw_def_impl = NULL;
     89#else /* __rtems__ */
     90#define ofw_def_impl (&ofw_fdt)
     91#endif /* __rtems__ */
    8892static ofw_t            ofw_obj;
    8993static struct ofw_kobj  ofw_kernel_obj;
     
    145149{
    146150
     151#ifdef __rtems__
     152        if (OF_init(__DECONST(void *, bsp_fdt_get())) != 0)
     153                return (ENXIO);
     154#endif /* __rtems__ */
    147155        /*
    148156         * There is no locking during this init because it runs much earlier
     
    199207OF_install(char *name, int prio)
    200208{
     209#ifndef __rtems__
    201210        ofw_def_t *ofwp, **ofwpp;
    202211        static int curr_prio = 0;
     
    218227
    219228        return (FALSE);
     229#else /* __rtems__ */
     230        return (TRUE);
     231#endif /* __rtems__ */
    220232}
    221233
Note: See TracChangeset for help on using the changeset viewer.