Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d4bbe676
Commit
d4bbe676
authored
Apr 09, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More EFI fixes.
parent
f6e0f291
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
arch/ia64/kernel/efi.c
arch/ia64/kernel/efi.c
+27
-3
No files found.
arch/ia64/kernel/efi.c
View file @
d4bbe676
...
...
@@ -259,7 +259,8 @@ efi_map_pal_code (void)
mask
=
~
((
1
<<
IA64_GRANULE_SHIFT
)
-
1
);
printk
(
"CPU %d: mapping PAL code [0x%lx-0x%lx) into [0x%lx-0x%lx)
\n
"
,
smp_processor_id
(),
md
->
phys_addr
,
md
->
phys_addr
+
(
md
->
num_pages
<<
EFI_PAGE_SHIFT
),
smp_processor_id
(),
md
->
phys_addr
,
md
->
phys_addr
+
(
md
->
num_pages
<<
EFI_PAGE_SHIFT
),
vaddr
&
mask
,
(
vaddr
&
mask
)
+
IA64_GRANULE_SIZE
);
/*
...
...
@@ -375,7 +376,8 @@ efi_init (void)
md
=
p
;
printk
(
"mem%02u: type=%u, attr=0x%lx, range=[0x%016lx-0x%016lx) (%luMB)
\n
"
,
i
,
md
->
type
,
md
->
attribute
,
md
->
phys_addr
,
md
->
phys_addr
+
(
md
->
num_pages
<<
EFI_PAGE_SHIFT
)
-
1
,
md
->
num_pages
>>
8
);
md
->
phys_addr
+
(
md
->
num_pages
<<
EFI_PAGE_SHIFT
)
-
1
,
md
->
num_pages
>>
(
20
-
EFI_PAGE_SHIFT
));
}
}
#endif
...
...
@@ -495,6 +497,7 @@ efi_mem_type (u64 phys_addr)
for
(
p
=
efi_map_start
;
p
<
efi_map_end
;
p
+=
efi_desc_size
)
{
md
=
p
;
if
((
md
->
phys_addr
<=
phys_addr
)
&&
(
phys_addr
<=
(
md
->
phys_addr
+
(
md
->
num_pages
<<
EFI_PAGE_SHIFT
)
-
1
)))
return
md
->
type
;
...
...
@@ -502,8 +505,29 @@ efi_mem_type (u64 phys_addr)
return
0
;
}
u64
efi_mem_attributes
(
u64
phys_addr
)
{
void
*
efi_map_start
,
*
efi_map_end
,
*
p
;
efi_memory_desc_t
*
md
;
u64
efi_desc_size
;
efi_map_start
=
__va
(
ia64_boot_param
->
efi_memmap
);
efi_map_end
=
efi_map_start
+
ia64_boot_param
->
efi_memmap_size
;
efi_desc_size
=
ia64_boot_param
->
efi_memdesc_size
;
for
(
p
=
efi_map_start
;
p
<
efi_map_end
;
p
+=
efi_desc_size
)
{
md
=
p
;
if
((
md
->
phys_addr
<=
phys_addr
)
&&
(
phys_addr
<=
(
md
->
phys_addr
+
(
md
->
num_pages
<<
EFI_PAGE_SHIFT
)
-
1
)))
return
md
->
attribute
;
}
return
0
;
}
static
void
__exit
efivars_exit
(
void
)
efivars_exit
(
void
)
{
#ifdef CONFIG_PROC_FS
remove_proc_entry
(
efi_dir
->
name
,
NULL
);
...
...
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