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
52783fa8
Commit
52783fa8
authored
Mar 21, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: PAT fix
build fix for !CONFIG_MTRR. Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
042b78e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
include/asm-x86/mtrr.h
include/asm-x86/mtrr.h
+8
-2
No files found.
include/asm-x86/mtrr.h
View file @
52783fa8
...
@@ -84,10 +84,9 @@ struct mtrr_gentry
...
@@ -84,10 +84,9 @@ struct mtrr_gentry
#ifdef __KERNEL__
#ifdef __KERNEL__
extern
u8
mtrr_type_lookup
(
u64
addr
,
u64
end
);
/* The following functions are for use by other drivers */
/* The following functions are for use by other drivers */
# ifdef CONFIG_MTRR
# ifdef CONFIG_MTRR
extern
u8
mtrr_type_lookup
(
u64
addr
,
u64
end
);
extern
void
mtrr_save_fixed_ranges
(
void
*
);
extern
void
mtrr_save_fixed_ranges
(
void
*
);
extern
void
mtrr_save_state
(
void
);
extern
void
mtrr_save_state
(
void
);
extern
int
mtrr_add
(
unsigned
long
base
,
unsigned
long
size
,
extern
int
mtrr_add
(
unsigned
long
base
,
unsigned
long
size
,
...
@@ -101,6 +100,13 @@ extern void mtrr_ap_init(void);
...
@@ -101,6 +100,13 @@ extern void mtrr_ap_init(void);
extern
void
mtrr_bp_init
(
void
);
extern
void
mtrr_bp_init
(
void
);
extern
int
mtrr_trim_uncached_memory
(
unsigned
long
end_pfn
);
extern
int
mtrr_trim_uncached_memory
(
unsigned
long
end_pfn
);
# else
# else
static
inline
u8
mtrr_type_lookup
(
u64
addr
,
u64
end
)
{
/*
* Return no-MTRRs:
*/
return
0xff
;
}
#define mtrr_save_fixed_ranges(arg) do {} while (0)
#define mtrr_save_fixed_ranges(arg) do {} while (0)
#define mtrr_save_state() do {} while (0)
#define mtrr_save_state() do {} while (0)
static
__inline__
int
mtrr_add
(
unsigned
long
base
,
unsigned
long
size
,
static
__inline__
int
mtrr_add
(
unsigned
long
base
,
unsigned
long
size
,
...
...
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