Update of /cvsroot/blob/blob/src/lib
In directory usw-pr-cvs1:/tmp/cvs-serv7633/src/lib
Modified Files:
icache.c led.c serial.c time.c
Log Message:
Move initcalls to separate file because other the linker will not
pick them up.
Index: icache.c
===================================================================
RCS file: /cvsroot/blob/blob/src/lib/icache.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- icache.c 2001/10/07 19:34:17 1.2
+++ icache.c 2001/10/07 20:16:57 1.3
@@ -27,12 +27,12 @@
# include <blob/config.h>
#endif
-#include <blob/init.h>
+#include <blob/icache.h>
#include <blob/types.h>
-static void enable_icache(void)
+void enable_icache(void)
{
register u32 i;
@@ -49,7 +49,7 @@
-static void disable_icache(void)
+void disable_icache(void)
{
register u32 i;
@@ -65,10 +65,3 @@
/* flush i-cache */
asm ("mcr p15, 0, %0, c7, c5, 0": : "r" (i));
}
-
-
-
-
-/* init and exit calls */
-__initlist(enable_icache, INIT_LEVEL_INITIAL_HARDWARE);
-__exitlist(disable_icache, INIT_LEVEL_INITIAL_HARDWARE);
Index: led.c
===================================================================
RCS file: /cvsroot/blob/blob/src/lib/led.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- led.c 2001/10/07 19:34:17 1.2
+++ led.c 2001/10/07 20:16:57 1.3
@@ -76,8 +76,3 @@
else
led_on();
}
-
-
-/* init and exit calls */
-__initlist(led_on, INIT_LEVEL_INITIAL_HARDWARE);
-__exitlist(led_off, INIT_LEVEL_INITIAL_HARDWARE);
Index: serial.c
===================================================================
RCS file: /cvsroot/blob/blob/src/lib/serial.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serial.c 2001/10/07 19:34:17 1.2
+++ serial.c 2001/10/07 20:16:57 1.3
@@ -331,13 +331,3 @@
return(numRead);
}
-
-
-/* default initialisation */
-static void serial_default_init(void)
-{
- SerialInit(baud9k6);
-}
-
-
-__initlist(serial_default_init, INIT_LEVEL_INITIAL_HARDWARE);
Index: time.c
===================================================================
RCS file: /cvsroot/blob/blob/src/lib/time.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- time.c 2001/10/07 19:34:17 1.2
+++ time.c 2001/10/07 20:16:57 1.3
@@ -48,7 +48,7 @@
-static void TimerInit(void)
+void TimerInit(void)
{
/* clear counter */
OSCR = 0;
@@ -68,8 +68,6 @@
numOverflows = 0;
}
-
-__initlist(TimerInit, INIT_LEVEL_OTHER_HARDWARE);
|