Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
0f4f90cd
There was an error fetching the commit references. Please try again later.
Commit
0f4f90cd
authored
5 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
arm_interface: Ensure ThreadContext is zero'd out.
parent
86f9c9aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/arm/arm_interface.h
+16
-16
16 additions, 16 deletions
src/core/arm/arm_interface.h
with
16 additions
and
16 deletions
src/core/arm/arm_interface.h
+
16
−
16
View file @
0f4f90cd
...
@@ -26,28 +26,28 @@ public:
...
@@ -26,28 +26,28 @@ public:
virtual
~
ARM_Interface
()
=
default
;
virtual
~
ARM_Interface
()
=
default
;
struct
ThreadContext32
{
struct
ThreadContext32
{
std
::
array
<
u32
,
16
>
cpu_registers
;
std
::
array
<
u32
,
16
>
cpu_registers
{}
;
u32
cpsr
;
u32
cpsr
{}
;
std
::
array
<
u8
,
4
>
padding
;
std
::
array
<
u8
,
4
>
padding
{}
;
std
::
array
<
u64
,
32
>
fprs
;
std
::
array
<
u64
,
32
>
fprs
{}
;
u32
fpscr
;
u32
fpscr
{}
;
u32
fpexc
;
u32
fpexc
{}
;
u32
tpidr
;
u32
tpidr
{}
;
};
};
// Internally within the kernel, it expects the AArch32 version of the
// Internally within the kernel, it expects the AArch32 version of the
// thread context to be 344 bytes in size.
// thread context to be 344 bytes in size.
static_assert
(
sizeof
(
ThreadContext32
)
==
0x158
);
static_assert
(
sizeof
(
ThreadContext32
)
==
0x158
);
struct
ThreadContext64
{
struct
ThreadContext64
{
std
::
array
<
u64
,
31
>
cpu_registers
;
std
::
array
<
u64
,
31
>
cpu_registers
{}
;
u64
sp
;
u64
sp
{}
;
u64
pc
;
u64
pc
{}
;
u32
pstate
;
u32
pstate
{}
;
std
::
array
<
u8
,
4
>
padding
;
std
::
array
<
u8
,
4
>
padding
{}
;
std
::
array
<
u128
,
32
>
vector_registers
;
std
::
array
<
u128
,
32
>
vector_registers
{}
;
u32
fpcr
;
u32
fpcr
{}
;
u32
fpsr
;
u32
fpsr
{}
;
u64
tpidr
;
u64
tpidr
{}
;
};
};
// Internally within the kernel, it expects the AArch64 version of the
// Internally within the kernel, it expects the AArch64 version of the
// thread context to be 800 bytes in size.
// thread context to be 800 bytes in size.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment