X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fmain.c;h=a81a85cf796333f649d2734516ba291f1d136014;hb=0a15dd0709348fe3770bae9cc485c1c2fc11ef98;hp=e55766478fe2e3edfa13a637d356634f5908973a;hpb=3b49b57d1f3b8bccdf7390c26ea9cda1f8dac8c3;p=palacios.git diff --git a/palacios/src/geekos/main.c b/palacios/src/geekos/main.c index e557664..a81a85c 100644 --- a/palacios/src/geekos/main.c +++ b/palacios/src/geekos/main.c @@ -3,7 +3,7 @@ * Copyright (c) 2001,2003,2004 David H. Hovemeyer * Copyright (c) 2003, Jeffrey K. Hollingsworth * Copyright (c) 2004, Iulian Neamtiu - * $Revision: 1.37 $ + * $Revision: 1.39 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -43,6 +43,13 @@ #define SPEAKER_PORT 0x61 +void Spin() +{ + // hack - competing thread + while (1) {}; + +} + void Buzz(unsigned delay, unsigned num) { @@ -213,6 +220,14 @@ void Main(struct Boot_Info* bootInfo) */ #endif + +#if 1 + struct Kernel_Thread *spin_thread; + + spin_thread=Start_Kernel_Thread(Spin,0,PRIORITY_NORMAL,false); + +#endif + #if 0 { @@ -239,7 +254,8 @@ void Main(struct Boot_Info* bootInfo) } - + SerialPrint("RunVMM returned, spinning\n"); + while (1) {} TODO("Write a Virtual Machine Monitor");