X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fmain.c;h=a81a85cf796333f649d2734516ba291f1d136014;hp=706665fc5ef498cd8df63c40351b2912df321651;hb=0a15dd0709348fe3770bae9cc485c1c2fc11ef98;hpb=a933375191c6bf937a323a1ad1ba2c48eccbee3c diff --git a/palacios/src/geekos/main.c b/palacios/src/geekos/main.c index 706665f..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.38 $ + * $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 {