Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
af542075
Commit
af542075
authored
Jan 07, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use constructors for ntdll and kernel32 initialization.
parent
5d267d73
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
12 deletions
+20
-12
kernel_private.h
dlls/kernel/kernel_private.h
+1
-0
process.c
dlls/kernel/process.c
+2
-0
pthread.c
dlls/kernel/pthread.c
+5
-4
debugtools.c
dlls/ntdll/debugtools.c
+1
-1
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+2
-0
thread.c
dlls/ntdll/thread.c
+5
-3
virtual.c
dlls/ntdll/virtual.c
+4
-4
No files found.
dlls/kernel/kernel_private.h
View file @
af542075
...
...
@@ -49,6 +49,7 @@ static inline HANDLE console_handle_unmap(HANDLE h)
extern
HANDLE
dos_handles
[
DOS_TABLE_SIZE
];
void
FILE_ConvertOFMode
(
INT
mode
,
DWORD
*
access
,
DWORD
*
sharing
);
extern
void
PTHREAD_Init
(
void
);
extern
BOOL
WOWTHUNK_Init
(
void
);
extern
VOID
SYSLEVEL_CheckNotLevel
(
INT
level
);
...
...
dlls/kernel/process.c
View file @
af542075
...
...
@@ -619,6 +619,8 @@ static BOOL process_init( char *argv[], char **environ )
PEB
*
peb
=
NtCurrentTeb
()
->
Peb
;
HANDLE
hstdin
,
hstdout
,
hstderr
;
PTHREAD_Init
();
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
setlocale
(
LC_CTYPE
,
""
);
...
...
dlls/kernel/pthread.c
View file @
af542075
...
...
@@ -51,10 +51,6 @@
#define P_OUTPUT(stuff) write(2,stuff,strlen(stuff))
static
const
struct
wine_pthread_functions
functions
;
DECL_GLOBAL_CONSTRUCTOR
(
pthread_init
)
{
wine_pthread_init_process
(
&
functions
);
}
/* NOTE: This is a truly extremely incredibly ugly hack!
* But it does seem to work... */
...
...
@@ -575,4 +571,9 @@ static const struct wine_pthread_functions functions =
wine_pthread_cond_timedwait
/* ptr_pthread_cond_timedwait */
};
void
PTHREAD_Init
(
void
)
{
wine_pthread_init_process
(
&
functions
);
}
#endif
/* HAVE_PTHREAD_H */
dlls/ntdll/debugtools.c
View file @
af542075
...
...
@@ -305,7 +305,7 @@ static int NTDLL_dbg_vlog( unsigned int cls, const char *channel,
/***********************************************************************
* debug_init
*/
DECL_GLOBAL_CONSTRUCTOR
(
debug_init
)
void
debug_init
(
void
)
{
__wine_dbgstr_an
=
NTDLL_dbgstr_an
;
__wine_dbgstr_wn
=
NTDLL_dbgstr_wn
;
...
...
dlls/ntdll/ntdll_misc.h
View file @
af542075
...
...
@@ -47,7 +47,9 @@ extern NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handl
/* init routines */
extern
BOOL
SIGNAL_Init
(
void
);
extern
void
debug_init
(
void
);
extern
void
thread_init
(
void
);
extern
void
virtual_init
(
void
);
/* server support */
extern
void
server_init_process
(
void
);
...
...
dlls/ntdll/thread.c
View file @
af542075
...
...
@@ -106,9 +106,6 @@ void thread_init(void)
struct
wine_pthread_thread_info
thread_info
;
static
struct
debug_info
debug_info
;
/* debug info for initial thread */
debug_info
.
str_pos
=
debug_info
.
strings
;
debug_info
.
out_pos
=
debug_info
.
output
;
peb
.
ProcessParameters
=
&
params
;
peb
.
TlsBitmap
=
&
tls_bitmap
;
peb
.
LdrData
=
&
ldr
;
...
...
@@ -134,6 +131,11 @@ void thread_init(void)
thread_info
.
teb_sel
=
teb
->
teb_sel
;
wine_pthread_init_thread
(
&
thread_info
);
debug_info
.
str_pos
=
debug_info
.
strings
;
debug_info
.
out_pos
=
debug_info
.
output
;
debug_init
();
virtual_init
();
/* setup the server connection */
server_init_process
();
server_init_thread
(
thread_info
.
pid
,
thread_info
.
tid
,
NULL
);
...
...
dlls/ntdll/virtual.c
View file @
af542075
...
...
@@ -785,19 +785,19 @@ static BOOL is_current_process( HANDLE handle )
/***********************************************************************
*
VIRTUAL_I
nit
*
virtual_i
nit
*/
#ifndef page_mask
DECL_GLOBAL_CONSTRUCTOR
(
VIRTUAL_Init
)
void
virtual_init
(
void
)
{
#ifndef page_mask
page_size
=
getpagesize
();
page_mask
=
page_size
-
1
;
/* Make sure we have a power of 2 */
assert
(
!
(
page_size
&
page_mask
)
);
page_shift
=
0
;
while
((
1
<<
page_shift
)
!=
page_size
)
page_shift
++
;
}
#endif
/* page_mask */
}
/***********************************************************************
...
...
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