Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
25c47bb3
Commit
25c47bb3
authored
Oct 25, 2007
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lguest: use defines from x86 headers instead of magic numbers
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
db24e8c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
arch/x86/lguest/boot.c
arch/x86/lguest/boot.c
+2
-3
drivers/lguest/x86/core.c
drivers/lguest/x86/core.c
+1
-1
No files found.
arch/x86/lguest/boot.c
View file @
25c47bb3
...
...
@@ -371,8 +371,7 @@ static void lguest_cpuid(unsigned int *eax, unsigned int *ebx,
static
unsigned
long
current_cr0
,
current_cr3
;
static
void
lguest_write_cr0
(
unsigned
long
val
)
{
/* 8 == TS bit. */
lazy_hcall
(
LHCALL_TS
,
val
&
8
,
0
,
0
);
lazy_hcall
(
LHCALL_TS
,
val
&
X86_CR0_TS
,
0
,
0
);
current_cr0
=
val
;
}
...
...
@@ -387,7 +386,7 @@ static unsigned long lguest_read_cr0(void)
static
void
lguest_clts
(
void
)
{
lazy_hcall
(
LHCALL_TS
,
0
,
0
,
0
);
current_cr0
&=
~
8U
;
current_cr0
&=
~
X86_CR0_TS
;
}
/* CR2 is the virtual address of the last page fault, which the Guest only ever
...
...
drivers/lguest/x86/core.c
View file @
25c47bb3
...
...
@@ -562,7 +562,7 @@ void lguest_arch_setup_regs(struct lguest *lg, unsigned long start)
* is supposed to always be "1". Bit 9 (0x200) controls whether
* interrupts are enabled. We always leave interrupts enabled while
* running the Guest. */
regs
->
eflags
=
0x20
2
;
regs
->
eflags
=
X86_EFLAGS_IF
|
0x
2
;
/* The "Extended Instruction Pointer" register says where the Guest is
* running. */
...
...
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