Chameleon

Chameleon Commit Details

Date:2011-08-08 00:09:44 (9 years 3 months ago)
Author:Evan Lojewski
Commit:1328
Parents: 1327
Message:Add work loop to ppc boot file.\n
Changes:
M/branches/xZenu/src/arch/i386/boot2/boot.c
M/branches/xZenu/src/arch/ppc/boot2/main.c

File differences

branches/xZenu/src/arch/ppc/boot2/main.c
3939
4040
4141
42
42
43
44
4345
4446
4547
......
9294
9395
9496
97
9598
9699
97100
98101
99102
103
104
105
106
107
108
109
110
111
112
100113
101114
102115
#include <stdio.h>
#include <string.h>
extern void malloc_init(char * start, int size, int nodes, void (*malloc_error)(char *, size_t, const char *, int));
extern voidmalloc_init(char * start, int size, int nodes, void (*malloc_error)(char *, size_t, const char *, int));
extern void init_module_system();
extern intexecute_hook(const char* name, void*, void*, void*, void*);
static void Start(void *unused1, void *unused2, ClientInterfacePtr ciPtr);
static void Main(ClientInterfacePtr ciPtr);
static void Main(ClientInterfacePtr ciPtr)
{
int loopCount = 0;
long ret;
ret = InitEverything(ciPtr);
if (ret != 0) Exit();
// Intialize module system
init_module_system();
execute_hook("Initialize", (void*)loopCount++, (void*)ciPtr, 0, 0);// Main work loop
while(1)
{
execute_hook("WorkLoop", (void*)loopCount++, (void*)ciPtr, 0, 0);// Main work loop
}
}
static long InitEverything(ClientInterfacePtr ciPtr)
{
branches/xZenu/src/arch/i386/boot2/boot.c
102102
103103
104104
105
106
105107
106108
107109
108110
109111
110
112
113
111114
112115
113
114
116
117
115118
116119
117120
// that the booter was loaded from.
void common_boot(int biosdev)
{
int loopCount = 0;
video_mode( 2 ); // 80x25 mono text mode.
// Intialize module system
init_module_system();
int loopCount = 0;
execute_hook("Initialize", (void*)loopCount++, (void*)biosdev, 0, 0);// Main work loop
while(1)
{
execute_hook("WorkLoop", (void*)loopCount++, 0, 0, 0);// Main work loop
}
execute_hook("WorkLoop", (void*)loopCount++, (void*)biosdev, 0, 0);// Main work loop
}
}
//==========================================================================

Archive Download the corresponding diff file

Revision: 1328