Exemplo n.º 1
0
/*------------------------------------------------------------------------
 *  The init process, this is where it all begins...
 *------------------------------------------------------------------------
 */
initproc()				/* The beginning */
{
	kprintf( "\n\nCPSC 415, Jan 2012\n32 Bit Xeros 1.1\nLocated at: %x to %x\n", &entry, &end );

        /* Your code goes here */

	kprintf("Max addr is %d %x\n", maxaddr, maxaddr);

	kmeminit();
	kprintf("memory inited\n");
	
	dispatchinit();
	kprintf("dispatcher inited\n");
  
	contextinit();
	kprintf("context inited inited\n");
	
	create( root, PROC_STACK );
	kprintf("create inited\n");
  
	dispatch();
  
	kprintf("Returned to init, you should never get here!\n");
        /* This code should never be reached after you are done */
	for(;;); /* loop forever */
}
Exemplo n.º 2
0
/*------------------------------------------------------------------------
 *  The init process, this is where it all begins...
 *------------------------------------------------------------------------
 */
void initproc( void )				/* The beginning */
{
	kprintf( "\n\nCPSC 415, 2012W1\nA2 Solution Kernel\n32 Bit Xeros 1.1\nLocated at: %x to %x\n", &entry, &end ); 

        /* Your code goes here */

        kprintf("Max addr is %d %x\n", maxaddr, maxaddr);

        kmeminit();
        kprintf("Memory initialized.\n");

        dispatchinit();
        kprintf("Dispatcher initialized.\n");
  
        contextinit();
        kprintf("Context initialized.\n");
        
        deviceinit();
        kprintf("Devices initialized.\n");

	kprintf("Creating Idle Process\n");
	create(idleproc, PROC_STACK);
        
	kprintf("Creating Root Process\n");
        create( root, PROC_STACK );

	kprintf("System initialization completed\nSystem Starting\n");
  
        dispatch();
  
        kprintf("Returned to init, you should never get here!\n");

        /* This code should never be reached after you are done */
	for(;;); /* loop forever */
}
Exemplo n.º 3
0
/*------------------------------------------------------------------------
 *  The init process, this is where it all begins...
 *------------------------------------------------------------------------
 */
initproc()				/* The beginning */
{
    kprintf( "\n\nCPSC 415, Jan 2012\n32 Bit Xeros 1.1\nLocated at: %x to %x\n", &entry, &end );

    /* Your code goes here */

    kprintf("Max addr is %d %x\n", maxaddr, maxaddr);

    kmeminit();
    //kprintf("memory inited\n");

    dispatchinit();
    //kprintf("dispatcher inited\n");

    contextinit();
    //kprintf("context inited inited\n");

    //kprintf("Creating Idle Process\n");
    create(idleproc, PROC_STACK);

    //    kprintf("Creating Root Process\n");
    //create( root, PROC_STACK );
//		create( test1, PROC_STACK );
//		create( test2, PROC_STACK );
    //	create( test3, PROC_STACK );
//		create( test4, PROC_STACK );
    //	create( test5, PROC_STACK );
//		create( test6, PROC_STACK );
    //	create( test7, PROC_STACK );
    create( test8, PROC_STACK );

    kprintf("System initialization completed\n");

    device_init();

    dispatch();

    kprintf("Returned to init, you should never get here!\n");
    /* This code should never be reached after you are done */
    for(;;); /* loop forever */
}