summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 21:50:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 21:50:28 +0000
commitcf77de9de888e72030aff0162be6c1a1c20474ce (patch)
tree6f5bd6832685edeb083f7b93c81157a77618f443
parent02059376f6d78f7b62ba5443c05dc7ac91f11b96 (diff)
downloadrtems-cf77de9de888e72030aff0162be6c1a1c20474ce.tar.bz2
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* startup/page_table.c: Removed warnings.
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/ChangeLog5
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/startup/page_table.c20
2 files changed, 15 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme162/ChangeLog b/c/src/lib/libbsp/m68k/mvme162/ChangeLog
index 83df1f4e1d..20d046c49f 100644
--- a/c/src/lib/libbsp/m68k/mvme162/ChangeLog
+++ b/c/src/lib/libbsp/m68k/mvme162/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-01 Joel Sherrill <joel@OARcorp.com>
+
+ * startup/page_table.c: Removed warnings.
+
+
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.
diff --git a/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c b/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c
index a1ad5c135b..ea7f6d5a40 100644
--- a/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c
+++ b/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c
@@ -66,7 +66,7 @@ static unsigned long *table_alloc(int size){
if(((unsigned long)next_avail + size) > MAX_TABLE_ADDR){
return 0;
}
- bzero((void *)addr,size);
+ memset((void *)addr,0, size);
next_avail =(unsigned long *)((unsigned long)next_avail + size);
return addr;
}
@@ -97,12 +97,12 @@ void page_table_init(){
Ignore FC2 for match.
Noncachable.
Not write protected.*/
- asm volatile ("movec %0,%%dtt0
+ asm volatile ("movec %0,%%dtt0\n\
movec %0,%%itt0"
:: "d" (0x807fc040));
/* Point urp and srp at root page table. */
- asm volatile ("movec %0,%%urp
+ asm volatile ("movec %0,%%urp\n\
movec %0,%%srp"
:: "d" (BASE_TABLE_ADDR));
@@ -122,12 +122,12 @@ void page_table_teardown(){
next_avail=(unsigned long *)BASE_TABLE_ADDR;
/* Turn off paging. Turn off the cache. Flush the cache. Tear down
the transparent translations. */
- asm volatile ("movec %0,%%tc
- movec %0,%%cacr
- cpusha %%bc
- movec %0,%%dtt0
- movec %0,%%itt0
- movec %0,%%dtt1
+ asm volatile ("movec %0,%%tc\n\
+ movec %0,%%cacr\n\
+ cpusha %%bc\n\
+ movec %0,%%dtt0\n\
+ movec %0,%%itt0\n\
+ movec %0,%%dtt1\n\
movec %0,%%itt1"
:: "d" (0) );
}
@@ -193,7 +193,7 @@ int page_table_map(void *addr, unsigned long size, int cache_type){
}
/* Flush the ATC. Push and invalidate the cache. */
- asm volatile ("pflusha
+ asm volatile ("pflusha\n\
cpusha %bc");
return PTM_SUCCESS;