diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-11-14 12:32:52 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-11-14 12:32:52 -0500 |
commit | 492fa2ae5ee7ef9c3f3601ac611ebc9a43ff83eb (patch) | |
tree | 4ab3911ab8d1e6fac6b1261c6bb7cc7c5caf1048 /system/alpha/h/lib.h | |
parent | b8612cbda3625e27f109469a1f5416237c97fb41 (diff) | |
download | gem5-492fa2ae5ee7ef9c3f3601ac611ebc9a43ff83eb.tar.xz |
Get the console code to compile correctly
Add support for some thigns that M5 needs
Make this better support Tru64 v5.1
console/Makefile:
I couldn't figure out the old build system since I was missing
a bunch of tools at the time, so I kinda rewrote it.
console/console.c:
Get the includes right, and make things compile
little bit of cleanup along the way
console/paljtokern.s:
formatting junk
console/printf.c:
Formatting
get const right
h/lib.h:
fiddle with the includes that we need
console/console.c:
Get the BOOTDEVICE_NAME right
Add a bit of support for grabbing console environment variables
Diffstat (limited to 'system/alpha/h/lib.h')
-rw-r--r-- | system/alpha/h/lib.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/system/alpha/h/lib.h b/system/alpha/h/lib.h index def67fb25..aa28f69ab 100644 --- a/system/alpha/h/lib.h +++ b/system/alpha/h/lib.h @@ -196,8 +196,8 @@ extern ul _edata; #ifndef _TIME_T #define _TIME_T -/* typedef int time_t; */ -typedef ui time_t; +typedef int time_t; +/* typedef ui time_t; */ #endif /*:::::::::::::: @@ -318,9 +318,11 @@ void wr_bcache (ui argc, ul arg1, ul arg2, ui select); /*:::::::::::::: ffcsubs.c ::::::::::::::*/ -extern int strlen(char * s); -extern void bzero(char * s , int count); -extern void bcopy(char * from , char * to , int count); +extern size_t strlen(const char *s); +#if 0 +extern void bzero(void *s, int count); +extern void bcopy(void *from, void *to, int count); +#endif extern int tolower(int c); extern int toupper(int c); extern int IsAlpha(char c); @@ -414,8 +416,8 @@ extern void PutCR(void); /*:::::::::::::: printf.c ::::::::::::::*/ -extern void PutString(char * s); -extern void printf(char * f , ...); +extern void PutString(const char * s); +extern int printf(const char *f, ...); /*:::::::::::::: search.c |