Restored MakeCriticalSectionGlobal that got lost somewhere.
[wine/multimedia.git] / msdos / int3d.c
blob6f39fe35ea7f17977fce899b2f9a282b0c54e81d
1 /*
2 * DOS interrupt 3d handler.
3 * Copyright 1997 Len White
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #include <stdlib.h>
21 #include "msdos.h"
22 #include "miscemu.h"
23 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(int);
27 /**********************************************************************
28 * INT_Int3dHandler (WPROCS.161)
30 * Handler for int 3d (FLOATING POINT EMULATION - STANDALONE FWAIT).
32 void WINAPI INT_Int3dHandler(CONTEXT86 *context)
34 switch(AH_reg(context))
36 case 0x00:
37 break;
39 case 0x02:
40 case 0x03:
41 case 0x04:
42 case 0x05:
43 case 0xb:
44 AH_reg(context) = 0;
45 break;
47 default:
48 INT_BARF( context, 0x3d );