Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0da42750
Commit
0da42750
authored
Jan 30, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config-win.h, os0proc.h, os0proc.c, srv0start.c:
Make AWE compilation depend on __WIN2000__
parent
08f00685
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
include/config-win.h
include/config-win.h
+6
-0
innobase/include/os0proc.h
innobase/include/os0proc.h
+1
-1
innobase/os/os0proc.c
innobase/os/os0proc.c
+10
-10
innobase/srv/srv0start.c
innobase/srv/srv0start.c
+1
-1
No files found.
include/config-win.h
View file @
0da42750
...
...
@@ -16,6 +16,12 @@
/* Defines for Win32 to make it compatible for MySQL */
#ifdef __WIN2000__
/* We have to do this define before including windows.h to get the AWE API
functions */
#define _WIN32_WINNT 0x0500
#endif
#include <sys/locking.h>
#include <windows.h>
#include <math.h>
/* Because of rint() */
...
...
innobase/include/os0proc.h
View file @
0da42750
...
...
@@ -16,7 +16,7 @@ typedef void* os_process_t;
typedef
unsigned
long
int
os_process_id_t
;
/* The cell type in os_awe_allocate_mem page info */
#if defined(__
NT
__) && defined(ULONG_PTR)
#if defined(__
WIN2000
__) && defined(ULONG_PTR)
typedef
ULONG_PTR
os_awe_t
;
#else
typedef
ulint
os_awe_t
;
...
...
innobase/os/os0proc.c
View file @
0da42750
...
...
@@ -20,13 +20,13 @@ Created 9/30/1995 Heikki Tuuri
How to get AWE to compile on Windows?
-------------------------------------
the Visual C++ has to be relatively recent and _WIN32_WINNT has to be
defined to a value >= 0x0500 when windows.h is included. An easy way
to accomplish that is to put
In the project settings of the innobase project the Visual C++ source,
__WIN2000__ has to be defined.
#define _WIN32_WINNT 0x0500
The Visual C++ has to be relatively recent and _WIN32_WINNT has to be
defined to a value >= 0x0500 when windows.h is included.
to the start of file \mysql\include\config-win.h
#define _WIN32_WINNT 0x0500
Where does AWE work?
-------------------
...
...
@@ -62,7 +62,7 @@ to a mapped 'physical page' for each 4 kB page in the AWE window */
byte
**
os_awe_simulate_map
;
#endif
#ifdef __
NT
__
#ifdef __
WIN2000
__
os_awe_t
*
os_awe_page_info
;
ulint
os_awe_n_pages
;
byte
*
os_awe_window
;
...
...
@@ -84,7 +84,7 @@ os_awe_enable_lock_pages_in_mem(void)
return
(
TRUE
);
#elif defined(__
NT
__)
#elif defined(__
WIN2000
__)
struct
{
DWORD
Count
;
LUID_AND_ATTRIBUTES
Privilege
[
1
];
...
...
@@ -187,7 +187,7 @@ os_awe_allocate_physical_mem(
return
(
TRUE
);
#elif defined(__
NT
__)
#elif defined(__
WIN2000
__)
BOOL
bResult
;
os_awe_t
NumberOfPages
;
/* Question: why does Windows
use the name ULONG_PTR for
...
...
@@ -318,7 +318,7 @@ os_awe_allocate_virtual_mem_window(
return
(
os_awe_simulate_window
);
#elif defined(__
NT
__)
#elif defined(__
WIN2000
__)
byte
*
ptr
;
if
(
size
>
0x7FFFFFFFFF
)
{
...
...
@@ -424,7 +424,7 @@ os_awe_map_physical_mem_to_window(
return
(
TRUE
);
#elif defined(__
NT
__)
#elif defined(__
WIN2000
__)
BOOL
bResult
;
os_awe_t
n_pages
;
...
...
innobase/srv/srv0start.c
View file @
0da42750
...
...
@@ -1008,7 +1008,7 @@ innobase_start_or_create_for_mysql(void)
srv_startup_is_before_trx_rollback_phase
=
TRUE
;
os_aio_use_native_aio
=
FALSE
;
#if !defined(__
NT
__) && !defined(UNIV_SIMULATE_AWE)
#if !defined(__
WIN2000
__) && !defined(UNIV_SIMULATE_AWE)
if
(
srv_use_awe
)
{
fprintf
(
stderr
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment