Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / arch / i386-pc / exec / coldreboot.S
blob6c319cf0ac13ae0e5b59815501f2899f184b081b
1 /*
2     Copyright © 1995-2010, The AROS Development Team. All rights reserved.
3     $Id$
5     Desc: ColdReboot() - Reboot the computer.
6     Lang: english
7 */
9 /*****************************************************************************
11     NAME
13         AROS_LH0(void, ColdReboot,
15     LOCATION
16         struct ExecBase *, SysBase, 121, Exec)
18     FUNCTION
19         This function will reboot the computer.
21     INPUTS
22         None.
24     RESULT
25         This function does not return.
27     NOTES
28         It can be quite harmful to call this function. It may be possible that
29         you will lose data from other tasks not having saved, or disk buffers
30         not being flushed. Plus you could annoy the (other) users.
32     EXAMPLE
34     BUGS
36     SEE ALSO
38     INTERNALS
40     HISTORY
42 ******************************************************************************/
44 #include "aros/i386/asm.h"
46             .text
47             .globl      AROS_SLIB_ENTRY(ColdReboot,Exec,121)
48             _FUNCTION(AROS_SLIB_ENTRY(ColdReboot,Exec,121))
49 AROS_SLIB_ENTRY(ColdReboot,Exec,121):
51 #ifdef DEBUG
52             hlt
53 #else
54             pushl       4(%esp)
55             call        Exec_DoResetCallbacks
56             movl        $-1,%eax
57             int         $0x80
58 #endif