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
e13b1bb6
Commit
e13b1bb6
authored
Apr 01, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize ar.k0 with physical I/O base not just on BP but also on
all APs (based on patch by Bjorn Helgaas).
parent
95aa08a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
arch/ia64/kernel/setup.c
arch/ia64/kernel/setup.c
+7
-6
arch/ia64/kernel/smpboot.c
arch/ia64/kernel/smpboot.c
+5
-0
No files found.
arch/ia64/kernel/setup.c
View file @
e13b1bb6
...
@@ -282,6 +282,7 @@ void __init
...
@@ -282,6 +282,7 @@ void __init
setup_arch
(
char
**
cmdline_p
)
setup_arch
(
char
**
cmdline_p
)
{
{
extern
unsigned
long
ia64_iobase
;
extern
unsigned
long
ia64_iobase
;
unsigned
long
phys_iobase
;
unw_init
();
unw_init
();
...
@@ -322,16 +323,16 @@ setup_arch (char **cmdline_p)
...
@@ -322,16 +323,16 @@ setup_arch (char **cmdline_p)
* clear in future SAL specs. We'll fall back to getting it out of
* clear in future SAL specs. We'll fall back to getting it out of
* AR.KR0 if no appropriate entry is found in the memory map.
* AR.KR0 if no appropriate entry is found in the memory map.
*/
*/
ia64
_iobase
=
efi_get_iobase
();
phys
_iobase
=
efi_get_iobase
();
if
(
ia64
_iobase
)
if
(
phys
_iobase
)
/* set AR.KR0 since this is all we use it for anyway */
/* set AR.KR0 since this is all we use it for anyway */
ia64_set_kr
(
IA64_KR_IO_BASE
,
ia64
_iobase
);
ia64_set_kr
(
IA64_KR_IO_BASE
,
phys
_iobase
);
else
{
else
{
ia64
_iobase
=
ia64_get_kr
(
IA64_KR_IO_BASE
);
phys
_iobase
=
ia64_get_kr
(
IA64_KR_IO_BASE
);
printk
(
"No I/O port range found in EFI memory map, falling back to AR.KR0
\n
"
);
printk
(
"No I/O port range found in EFI memory map, falling back to AR.KR0
\n
"
);
printk
(
"I/O port base = 0x%lx
\n
"
,
ia64
_iobase
);
printk
(
"I/O port base = 0x%lx
\n
"
,
phys
_iobase
);
}
}
ia64_iobase
=
__IA64_UNCACHED_OFFSET
|
(
ia64_iobase
&
~
PAGE_OFFSET
);
ia64_iobase
=
ioremap
(
phys_iobase
);
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
cpu_physical_id
(
0
)
=
hard_smp_processor_id
();
cpu_physical_id
(
0
)
=
hard_smp_processor_id
();
...
...
arch/ia64/kernel/smpboot.c
View file @
e13b1bb6
...
@@ -345,6 +345,11 @@ smp_callin (void)
...
@@ -345,6 +345,11 @@ smp_callin (void)
*/
*/
ia64_init_itm
();
ia64_init_itm
();
/*
* Set I/O port base per CPU
*/
ia64_set_kr
(
IA64_KR_IO_BASE
,
__pa
(
ia64_iobase
));
#ifdef CONFIG_IA64_MCA
#ifdef CONFIG_IA64_MCA
ia64_mca_cmc_vector_setup
();
/* Setup vector on AP & enable */
ia64_mca_cmc_vector_setup
();
/* Setup vector on AP & enable */
ia64_mca_check_errors
();
/* For post-failure MCA error logging */
ia64_mca_check_errors
();
/* For post-failure MCA error logging */
...
...
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