Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/kernel/softreset.c

Go to the documentation of this file.
00001 /*  src_experimental/kernel/softreset.c
00002    CubeOS Version 0.4.90 experimental
00003    Copyright (C) 1999,2000 Holger Kenn
00004 
00005    CubeOS is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or any later version.
00009 
00010    CubeOS is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015  */
00016 #include <cubeos.h>
00017 
00032 void KERN_softreset ()
00033 {
00034 
00035         writeshort (SIM_MCR, readshort (SIM_MCR) | 0x8000);
00036 
00037 //asm("movl #0xf00004,%%a0": : :"a0");
00038         //asm("movl (%%a0),%%a0": :);
00039         //asm("movl #0xf00000,%%a1": : :"a1");
00040         //asm("adda  %%a0,%%a1": : :"a0");
00041         //asm("jmp (%%a1)": :);
00042 
00043 }

Generated on Thu Feb 20 15:38:45 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002