move some stuff from head.S to main.c

This commit is contained in:
Laurent Vivier 2004-05-26 18:32:49 +00:00
parent e186742546
commit 2cc1e38203
4 changed files with 9 additions and 12 deletions

View File

@ -188,3 +188,5 @@ extern unsigned long mmu_type;
extern unsigned long fpu_type;
extern unsigned long machine_id;
extern unsigned long arch_type;
extern void arch_init();

View File

@ -337,4 +337,5 @@ struct bi2_record_list {
/* End version 2 bootinfo
***********************************************************************/
extern void bootinfo_init();
extern void set_kernel_bootinfo(char *dst);

View File

@ -30,18 +30,6 @@ setup:
bsr console_init@PLTPC
/* identify system */
bsr arch_init@PLTPC
/* memory map */
bsr init_memory_map@PLTPC
/* retrieve machine info */
bsr bootinfo_init@PLTPC
/* begin to work */
bsr main@PLTPC

View File

@ -57,6 +57,12 @@ int main(int argc, char** argv)
printf("EMILE v"VERSION" (c) 2004 Laurent Vivier\n");
printf("This is free software, redistribute it under GPL\n");
arch_init();
init_memory_map();
bootinfo_init();
#ifdef TARGET_PPC
if (arch_type == gestalt68k)