forked from Imagelibrary/rtems
2002-08-20 Eric Norum <eric.norum@usask.ca>
* rtems/rtems_glue.c: Per PR270, the BSD network code expects that the value of the number of seconds since boot is non-zero. The RTEMS network initialization code assures this by waiting for a second. A more efficient technique is to simply wait until the number of seconds since boot is non-zero.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2002-08-20 Eric Norum <eric.norum@usask.ca>
|
||||||
|
|
||||||
|
* rtems/rtems_glue.c: Per PR270, the BSD network code expects that
|
||||||
|
the value of the number of seconds since boot is non-zero. The
|
||||||
|
RTEMS network initialization code assures this by waiting for a
|
||||||
|
second. A more efficient technique is to simply wait until the
|
||||||
|
number of seconds since boot is non-zero.
|
||||||
|
|
||||||
2002-08-09 Joel Sherrill <joel@OARcorp.com>
|
2002-08-09 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* libc/getservent.c: Per PR265, add #include <netinet/in.h> for
|
* libc/getservent.c: Per PR265, add #include <netinet/in.h> for
|
||||||
|
|||||||
@@ -114,7 +114,8 @@ rtems_bsdnet_malloc (unsigned long size, int type, int flags)
|
|||||||
printf ("rtems_bsdnet_malloc still waiting.\n");
|
printf ("rtems_bsdnet_malloc still waiting.\n");
|
||||||
try = 0;
|
try = 0;
|
||||||
}
|
}
|
||||||
rtems_task_wake_after (rtems_bsdnet_ticks_per_second);
|
while (rtems_bsdnet_seconds_since_boot() == 0)
|
||||||
|
rtems_task_wake_after(1);
|
||||||
rtems_bsdnet_semaphore_obtain ();
|
rtems_bsdnet_semaphore_obtain ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user