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
d489a0a3
Commit
d489a0a3
authored
Jun 19, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Get rid of the data16 prefix, it shouldn't be needed anymore and causes warnings.
parent
8f5d90b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
16 deletions
+8
-16
build.h
tools/winebuild/build.h
+1
-1
main.c
tools/winebuild/main.c
+0
-3
relay.c
tools/winebuild/relay.c
+7
-12
No files found.
tools/winebuild/build.h
View file @
d489a0a3
...
...
@@ -115,7 +115,7 @@ enum target_cpu
enum
target_platform
{
PLATFORM_UNSPECIFIED
,
PLATFORM_APPLE
,
PLATFORM_
SVR4
,
PLATFORM_
WINDOWS
PLATFORM_UNSPECIFIED
,
PLATFORM_APPLE
,
PLATFORM_WINDOWS
};
extern
enum
target_cpu
target_cpu
;
...
...
tools/winebuild/main.c
View file @
d489a0a3
...
...
@@ -65,8 +65,6 @@ enum target_cpu target_cpu = CPU_POWERPC;
#ifdef __APPLE__
enum
target_platform
target_platform
=
PLATFORM_APPLE
;
#elif defined(__svr4__)
enum
target_platform
target_platform
=
PLATFORM_SVR4
;
#elif defined(_WINDOWS)
enum
target_platform
target_platform
=
PLATFORM_WINDOWS
;
#else
...
...
@@ -126,7 +124,6 @@ static const struct
{
{
"macos"
,
PLATFORM_APPLE
},
{
"darwin"
,
PLATFORM_APPLE
},
{
"sunos"
,
PLATFORM_SVR4
},
{
"windows"
,
PLATFORM_WINDOWS
},
{
"winnt"
,
PLATFORM_WINDOWS
}
};
...
...
tools/winebuild/relay.c
View file @
d489a0a3
...
...
@@ -58,11 +58,6 @@ static void function_header( FILE *outfile, const char *name )
}
static
inline
const
char
*
data16_prefix
(
void
)
{
return
(
target_platform
==
PLATFORM_SVR4
)
?
"
\t
data16
\n
"
:
""
;
}
/*******************************************************************
* BuildCallFrom16Core
*
...
...
@@ -160,8 +155,8 @@ static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk )
fprintf
(
outfile
,
"
\t
.byte 0x2e
\n\t
movl %s,%%edx
\n
"
,
asm_name
(
"CallTo16_DataSelector"
)
);
/* Load 32-bit segment registers */
fprintf
(
outfile
,
"
%s
\t
movw %%dx, %%ds
\n
"
,
data16_prefix
()
);
fprintf
(
outfile
,
"
%s
\t
movw %%dx, %%es
\n
"
,
data16_prefix
()
);
fprintf
(
outfile
,
"
\t
movw %%dx, %%ds
\n
"
);
fprintf
(
outfile
,
"
\t
movw %%dx, %%es
\n
"
);
if
(
UsePIC
)
fprintf
(
outfile
,
"
\t
movw %s-1b(%%ecx), %%fs
\n
"
,
asm_name
(
"CallTo16_TebSelector"
)
);
...
...
@@ -192,7 +187,7 @@ static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk )
fprintf
(
outfile
,
"
\t
pushl %%ebp
\n
"
);
/* Switch stacks */
fprintf
(
outfile
,
"
%s
\t
.byte 0x64
\n\t
movw %%ss, (%d)
\n
"
,
data16_prefix
()
,
STACKOFFSET
+
2
);
fprintf
(
outfile
,
"
\t
.byte 0x64
\n\t
movw %%ss, (%d)
\n
"
,
STACKOFFSET
+
2
);
fprintf
(
outfile
,
"
\t
.byte 0x64
\n\t
movw %%sp, (%d)
\n
"
,
STACKOFFSET
);
fprintf
(
outfile
,
"
\t
pushl %%ds
\n
"
);
fprintf
(
outfile
,
"
\t
popl %%ss
\n
"
);
...
...
@@ -475,7 +470,7 @@ static void BuildCallTo16Core( FILE *outfile, int reg_func )
/* Switch to the 16-bit stack */
fprintf
(
outfile
,
"
\t
movl %%esp,%%edx
\n
"
);
fprintf
(
outfile
,
"
%s
\t
.byte 0x64
\n\t
movw (%d),%%ss
\n
"
,
data16_prefix
()
,
STACKOFFSET
+
2
);
fprintf
(
outfile
,
"
\t
.byte 0x64
\n\t
movw (%d),%%ss
\n
"
,
STACKOFFSET
+
2
);
fprintf
(
outfile
,
"
\t
.byte 0x64
\n\t
movw (%d),%%sp
\n
"
,
STACKOFFSET
);
fprintf
(
outfile
,
"
\t
.byte 0x64
\n\t
movl %%edx,(%d)
\n
"
,
STACKOFFSET
);
...
...
@@ -554,8 +549,8 @@ static void BuildRet16Func( FILE *outfile )
fprintf
(
outfile
,
"
\t
.byte 0x2e
\n\t
movl %s"
,
asm_name
(
"CallTo16_DataSelector"
)
);
fprintf
(
outfile
,
"-%s,%%edi
\n
"
,
asm_name
(
"__wine_call16_start"
)
);
fprintf
(
outfile
,
"
%s
\t
movw %%di,%%ds
\n
"
,
data16_prefix
()
);
fprintf
(
outfile
,
"
%s
\t
movw %%di,%%es
\n
"
,
data16_prefix
()
);
fprintf
(
outfile
,
"
\t
movw %%di,%%ds
\n
"
);
fprintf
(
outfile
,
"
\t
movw %%di,%%es
\n
"
);
fprintf
(
outfile
,
"
\t
.byte 0x2e
\n\t
mov %s"
,
asm_name
(
"CallTo16_TebSelector"
)
);
fprintf
(
outfile
,
"-%s,%%fs
\n
"
,
asm_name
(
"__wine_call16_start"
)
);
...
...
@@ -564,7 +559,7 @@ static void BuildRet16Func( FILE *outfile )
/* Restore the 32-bit stack */
fprintf
(
outfile
,
"
%s
\t
movw %%di,%%ss
\n
"
,
data16_prefix
()
);
fprintf
(
outfile
,
"
\t
movw %%di,%%ss
\n
"
);
fprintf
(
outfile
,
"
\t
.byte 0x64
\n\t
movl (%d),%%esp
\n
"
,
STACKOFFSET
);
/* Return to caller */
...
...
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