win-pvdrivers

view liblfds.6/src/single_dir_for_windows_kernel/abstraction_aligned_free.c @ 1025:aa2e51f67f7c

Fix hibernate under Win8. Change debugprints.
author James Harper <james.harper@bendigoit.com.au>
date Tue Feb 19 15:14:53 2013 +1100 (2013-02-19)
parents 6300617040e0
children
line source
1 #include "abstraction_internal.h"
7 /****************************************************************************/
8 #if (defined _WIN32 && defined _MSC_VER && !defined WIN_KERNEL_BUILD)
10 /* TRD : any Windows (user-mode) on any CPU with the Microsoft C compiler
12 _WIN32 indicates 64-bit or 32-bit Windows
13 _MSC_VER indicates Microsoft C compiler
14 !WIN_KERNEL_BUILD indicates Windows user-mode
15 */
17 void abstraction_aligned_free( void *memory )
18 {
19 _aligned_free( memory );
21 return;
22 }
24 #endif
30 /****************************************************************************/
31 #if (_XOPEN_SOURCE >= 600)
33 /* TRD : any OS on any CPU with any compiler with POSIX 6.00 or better
35 _XOPEN_SOURCE is actually set by the user, not by the compiler
36 it is the way the user signals to the compiler what
37 level of POSIX should be available
38 (it assumes of course the compiler has support for the given level of POSIX requested)
39 */
41 void abstraction_aligned_free( void *memory )
42 {
43 free( memory );
45 return;
46 }
48 #endif
54 /****************************************************************************/
55 #if (defined _WIN32 && defined _MSC_VER && defined WIN_KERNEL_BUILD)
57 /* TRD : any Windows (kernel) on any CPU with the Microsoft C compiler
59 _WIN32 indicates 64-bit or 32-bit Windows
60 _MSC_VER indicates Microsoft C compiler
61 WIN_KERNEL_BUILD indicates Windows kernel
62 */
64 void abstraction_aligned_free( void *memory )
65 {
66 ExFreePoolWithTag( memory, 'sdfl' );
68 return;
69 }
71 #endif