#include "threads/mmu.h"
#include "threads/paging.h"
#include "threads/palloc.h"
+#include "threads/test.h"
#include "threads/thread.h"
#ifdef USERPROG
#include "userprog/exception.h"
/* Needed by printf(), so initialize them very early. */
ram_init ();
vga_init ();
- serial_init (1);
+ serial_init_poll ();
/* Greet user. */
- printf ("Booting cnachos86 with %'d kB RAM...\n", ram_pages * 4);
+ printf ("Pintos booting with %'d kB RAM...\n", ram_pages * 4);
/* Parse command line. */
argv_init ();
/* Start thread scheduler and enable interrupts. */
thread_start ();
- serial_init (2);
+ serial_init_queue ();
#ifdef FILESYS
/* Initialize filesystem. */
printf ("Boot complete.\n");
- for (;;)
- putchar (serial_getc ());
-
#ifdef USERPROG
/* Run a user program. */
if (initial_program != NULL)
printf ("\nExecuting '%s':\n", initial_program);
thread_execute (initial_program);
}
+#else
+ test ();
#endif
/* Terminate this thread. */