aboutsummaryrefslogtreecommitdiff
path: root/llfw/clib
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2011-12-28 18:30:50 +0100
committerThomas Huth <thuth@linux.vnet.ibm.com>2011-12-28 18:38:39 +0100
commit8536acbc9f7b527d72011110ec15baa85ed278a8 (patch)
treed1187d080ef3cae1343bbd4b10a0967ed9b39e3e /llfw/clib
parent23c9ac89811b6c01f6f54860eeb3c77252a3b6a8 (diff)
downloadSLOF-8536acbc9f7b527d72011110ec15baa85ed278a8.zip
SLOF-8536acbc9f7b527d72011110ec15baa85ed278a8.tar.gz
SLOF-8536acbc9f7b527d72011110ec15baa85ed278a8.tar.bz2
Enabled -Wmissing-prototypes and -Wstrict-prototypes CFLAGS and cleaned up
These two compiler flags for additional warnings help to improve the quality of the source code: Removed some unused code and fixed some obvious bugs. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'llfw/clib')
-rw-r--r--llfw/clib/iolib.c18
-rw-r--r--llfw/clib/iolib.h9
2 files changed, 0 insertions, 27 deletions
diff --git a/llfw/clib/iolib.c b/llfw/clib/iolib.c
index 56b7caf..7f14b51 100644
--- a/llfw/clib/iolib.c
+++ b/llfw/clib/iolib.c
@@ -45,21 +45,3 @@ ssize_t write(int fd, const void *buf, size_t count)
return i;
}
-
-
-/**
- * @brief C-routine to delay for a number of milliseconds.
- * @param delay interval in terms of ms
- */
-void delay_ms( unsigned int ms )
-{
- uint32_t ticks_per_ms;
-
- ticks_per_ms = tb_frequency() / 1000;
-
- while (0 < ms) {
- set_dec(ticks_per_ms);
- while( ((get_dec()) & 0x80000000) == 0 );
- ms--;
- }
-}
diff --git a/llfw/clib/iolib.h b/llfw/clib/iolib.h
index 30dfa37..9145005 100644
--- a/llfw/clib/iolib.h
+++ b/llfw/clib/iolib.h
@@ -20,16 +20,7 @@
extern void halt_sys (unsigned int);
-extern uint32_t get_sb_version (void);
-
extern void uart_send_byte(unsigned char b);
extern void io_putchar(unsigned char);
-extern uint64_t tb_frequency(void);
-extern uint64_t be_frequency(void);
-
-extern uint32_t get_dec(void);
-extern void set_dec(uint32_t);
-extern void delay_ms( unsigned int ms );
-
#endif