2009-10-20 Till Straumann <strauman@slac.stanford.edu>

* shared/startup/pgtbl_setup.c: Fixed compiler warnings
	(added prototypes to function declarations etc.)
This commit is contained in:
Till Straumann
2009-10-20 17:52:20 +00:00
parent ec625ecad2
commit 27e966f1d1
2 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,10 @@
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* shared/startup/pgtbl_setup.c: Fixed compiler warnings
(added prototypes to function declarations etc.)
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* shared/start/start.S, shared/startup/bspstart.c:
let 'save_boot_params()' return a pointer to the commandline
saved by the BSP and pass this pointer on to 'boot_card()'.

View File

@@ -64,7 +64,12 @@
*/
Triv121PgTbl
BSP_pgtbl_setup(unsigned long) __attribute__ (( weak, alias("__BSP_default_pgtbl_setup") ));
BSP_pgtbl_setup(unsigned int *) __attribute__ (( weak, alias("__BSP_default_pgtbl_setup") ));
/* get those from the linker script.
* NOTE THAT THE CORRECTNESS OF THE LINKER SCRIPT IS CRUCIAL
*/
extern unsigned long __DATA_START__[], _etext[];
Triv121PgTbl
__BSP_default_pgtbl_setup(unsigned int *pmemsize)
@@ -88,11 +93,6 @@ unsigned ldPtSize,tmp;
* ON THIS LAYOUT! (the size, however may be changed)
*/
if ( (pt = triv121PgTblInit(*pmemsize - (1<<ldPtSize), ldPtSize)) ) {
/* get those from the linker script.
* NOTE THAT THE CORRECTNESS OF THE LINKER SCRIPT IS CRUCIAL
*/
extern unsigned long __DATA_START__[], _etext[];
/* map text and RO data read-only */
tmp = triv121PgTblMap(
pt,