Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
36082937
Commit
36082937
authored
Mar 13, 2019
by
Adrian Reber
Committed by
Andrei Vagin
Apr 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
criu: fix gcc9 rawhide compilation errors
Signed-off-by:
Adrian Reber
<
areber@redhat.com
>
parent
8bb2f229
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
fpu.h
compel/arch/x86/src/lib/include/uapi/asm/fpu.h
+7
-5
sigframe.h
compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
+1
-1
restore.h
criu/arch/x86/include/asm/restore.h
+1
-1
sk-unix.c
criu/sk-unix.c
+2
-2
No files found.
compel/arch/x86/src/lib/include/uapi/asm/fpu.h
View file @
36082937
...
@@ -12,7 +12,9 @@
...
@@ -12,7 +12,9 @@
#define FP_XSTATE_MAGIC1 0x46505853U
#define FP_XSTATE_MAGIC1 0x46505853U
#define FP_XSTATE_MAGIC2 0x46505845U
#define FP_XSTATE_MAGIC2 0x46505845U
#ifndef FP_XSTATE_MAGIC2_SIZE
#define FP_XSTATE_MAGIC2_SIZE sizeof(FP_XSTATE_MAGIC2)
#define FP_XSTATE_MAGIC2_SIZE sizeof(FP_XSTATE_MAGIC2)
#endif
#define XSTATE_FP 0x1
#define XSTATE_FP 0x1
#define XSTATE_SSE 0x2
#define XSTATE_SSE 0x2
...
@@ -261,7 +263,7 @@ struct xsave_struct_ia32 {
...
@@ -261,7 +263,7 @@ struct xsave_struct_ia32 {
struct
ymmh_struct
ymmh
;
struct
ymmh_struct
ymmh
;
uint8_t
extended_state_area
[
EXTENDED_STATE_AREA_SIZE
];
uint8_t
extended_state_area
[
EXTENDED_STATE_AREA_SIZE
];
};
};
}
__aligned
(
FXSAVE_ALIGN_BYTES
)
__packed
;
}
__aligned
(
FXSAVE_ALIGN_BYTES
);
typedef
struct
{
typedef
struct
{
/*
/*
...
@@ -286,7 +288,7 @@ struct user_i387_ia32_struct {
...
@@ -286,7 +288,7 @@ struct user_i387_ia32_struct {
uint32_t
foo
;
/* FPU Operand Pointer Offset */
uint32_t
foo
;
/* FPU Operand Pointer Offset */
uint32_t
fos
;
/* FPU Operand Pointer Selector */
uint32_t
fos
;
/* FPU Operand Pointer Selector */
uint32_t
st_space
[
20
];
/* 8*10 bytes for each FP-reg = 80 bytes */
uint32_t
st_space
[
20
];
/* 8*10 bytes for each FP-reg = 80 bytes */
}
__packed
;
};
typedef
struct
{
typedef
struct
{
struct
{
struct
{
...
@@ -294,12 +296,12 @@ typedef struct {
...
@@ -294,12 +296,12 @@ typedef struct {
/* Software status information [not touched by FSAVE]: */
/* Software status information [not touched by FSAVE]: */
uint32_t
status
;
uint32_t
status
;
}
__packed
fregs_state
;
}
fregs_state
;
union
{
union
{
struct
xsave_struct_ia32
xsave
;
struct
xsave_struct_ia32
xsave
;
uint8_t
__pad
[
sizeof
(
struct
xsave_struct
)
+
FP_XSTATE_MAGIC2_SIZE
];
uint8_t
__pad
[
sizeof
(
struct
xsave_struct
)
+
FP_XSTATE_MAGIC2_SIZE
];
}
__aligned
(
FXSAVE_ALIGN_BYTES
)
__packed
;
}
__aligned
(
FXSAVE_ALIGN_BYTES
);
}
__aligned
(
FXSAVE_ALIGN_BYTES
)
__packed
fpu_state_ia32_t
;
}
__aligned
(
FXSAVE_ALIGN_BYTES
)
fpu_state_ia32_t
;
/*
/*
* This one is used in restorer.
* This one is used in restorer.
...
...
compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
View file @
36082937
...
@@ -95,7 +95,7 @@ struct ucontext_ia32 {
...
@@ -95,7 +95,7 @@ struct ucontext_ia32 {
compat_stack_t
uc_stack
;
compat_stack_t
uc_stack
;
struct
rt_sigcontext_32
uc_mcontext
;
struct
rt_sigcontext_32
uc_mcontext
;
k_rtsigset_t
uc_sigmask
;
/* mask last for extensibility */
k_rtsigset_t
uc_sigmask
;
/* mask last for extensibility */
}
__packed
;
};
struct
rt_sigframe_ia32
{
struct
rt_sigframe_ia32
{
uint32_t
pretcode
;
uint32_t
pretcode
;
...
...
criu/arch/x86/include/asm/restore.h
View file @
36082937
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
: "g"(new_sp), \
: "g"(new_sp), \
"g"(restore_task_exec_start), \
"g"(restore_task_exec_start), \
"g"(task_args) \
"g"(task_args) \
: "r
sp", "r
di", "rsi", "rbx", "rax", "memory")
: "rdi", "rsi", "rbx", "rax", "memory")
static
inline
void
core_get_tls
(
CoreEntry
*
pcore
,
tls_t
*
ptls
)
static
inline
void
core_get_tls
(
CoreEntry
*
pcore
,
tls_t
*
ptls
)
{
{
...
...
criu/sk-unix.c
View file @
36082937
...
@@ -437,8 +437,8 @@ static int dump_one_unix_fd(int lfd, uint32_t id, const struct fd_parms *p)
...
@@ -437,8 +437,8 @@ static int dump_one_unix_fd(int lfd, uint32_t id, const struct fd_parms *p)
*/
*/
if
(
peer
->
peer_ino
!=
ue
->
ino
)
{
if
(
peer
->
peer_ino
!=
ue
->
ino
)
{
if
(
!
peer
->
name
)
{
if
(
!
peer
->
name
)
{
pr_err
(
"Unix socket %d with unreachable peer %d (%d
/%s
)
\n
"
,
pr_err
(
"Unix socket %d with unreachable peer %d (%d)
\n
"
,
ue
->
ino
,
ue
->
peer
,
peer
->
peer_ino
,
peer
->
name
);
ue
->
ino
,
ue
->
peer
,
peer
->
peer_ino
);
goto
err
;
goto
err
;
}
}
}
}
...
...
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