Changeset d328ca2 in rtems-libbsd


Ignore:
Timestamp:
Nov 6, 2013, 7:24:53 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
3fd1b1e
Parents:
cd48afc
git-author:
Sebastian Huber <sebastian.huber@…> (11/06/13 07:24:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/11/13 09:08:04)
Message:

DEVICE.HINTS(5): Use static hints only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/subr_hints.c

    rcd48afc rd328ca2  
    4040 */
    4141
     42#ifndef __rtems__
    4243static int checkmethod = 1;
    4344static int use_kenv;
    4445static char *hintp;
    45 #ifdef __rtems__
    46 int hintmode = 1;  /* always use static_hints */
     46#else /* __rtems__ */
     47#define hintmode 1
     48#define hintp static_hints
     49#define use_kenv 0
     50static char __used default_static_hints[] = "";
     51__weak_reference(default_static_hints, static_hints);
    4752#endif /* __rtems__ */
    4853
     
    6671        char *p;
    6772
     73#ifndef __rtems__
    6874        if (checkmethod) {
    6975                hintp = NULL;
     
    128134                }
    129135        } else
     136#endif /* __rtems__ */
    130137                cp = hintp;
    131138        while (cp) {
     
    157164                        break;
    158165                if (use_kenv) {
     166#ifndef __rtems__
    159167                        cp = kenvp[++i];
    160168                        if (cp == NULL)
    161169                                break;
     170#else /* __rtems__ */
     171                        (void) i;
     172#endif /* __rtems__ */
    162173                } else {
    163174                        while (*cp != '\0')
     
    170181                }
    171182        }
     183#ifndef __rtems__
    172184        if (use_kenv)
    173185                mtx_unlock(&kenv_lock);
     186#endif /* __rtems__ */
    174187        if (cp == NULL)
    175188                return ENOENT;
Note: See TracChangeset for help on using the changeset viewer.