mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
move some stuff from head.S to main.c
This commit is contained in:
parent
e186742546
commit
2cc1e38203
@ -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();
|
||||
|
@ -337,4 +337,5 @@ struct bi2_record_list {
|
||||
/* End version 2 bootinfo
|
||||
***********************************************************************/
|
||||
|
||||
extern void bootinfo_init();
|
||||
extern void set_kernel_bootinfo(char *dst);
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user