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
158ae06e
Commit
158ae06e
authored
Jul 19, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Misc. minor fixes.
parent
8ba1f2c6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
10 deletions
+36
-10
arch/ia64/config.in
arch/ia64/config.in
+1
-0
arch/ia64/kernel/iosapic.c
arch/ia64/kernel/iosapic.c
+2
-3
arch/ia64/kernel/pci.c
arch/ia64/kernel/pci.c
+26
-1
arch/ia64/kernel/unwind.c
arch/ia64/kernel/unwind.c
+4
-3
include/asm-ia64/mmu_context.h
include/asm-ia64/mmu_context.h
+3
-3
No files found.
arch/ia64/config.in
View file @
158ae06e
...
...
@@ -107,6 +107,7 @@ source drivers/pci/Config.in
bool 'Support for hot-pluggable devices' CONFIG_HOTPLUG
if [ "$CONFIG_HOTPLUG" = "y" ]; then
source drivers/hotplug/Config.in
source drivers/pcmcia/Config.in
else
define_bool CONFIG_PCMCIA n
...
...
arch/ia64/kernel/iosapic.c
View file @
158ae06e
...
...
@@ -679,11 +679,10 @@ iosapic_init_pci_irq (void)
pci_irq
.
route
[
i
].
bus
,
pci_irq
.
route
[
i
].
pci_id
>>
16
,
pci_irq
.
route
[
i
].
pin
,
iosapic_irq
[
vector
].
base_irq
+
iosapic_irq
[
vector
].
pin
,
vector
);
#endif
/*
* Forget not to program the IOSAPIC RTE per ACPI _PRT
* NOTE: The IOSAPIC RTE will be programmed in iosapic_pci_fixup(). It
* needs to be done there to ensure PCI hotplug works right.
*/
set_rte
(
vector
,
(
ia64_get_lid
()
>>
16
)
&
0xffff
);
}
}
...
...
arch/ia64/kernel/pci.c
View file @
158ae06e
...
...
@@ -265,12 +265,37 @@ pcibios_fixup_pbus_ranges (struct pci_bus * bus, struct pbus_set_ranges_data * r
int
pcibios_enable_device
(
struct
pci_dev
*
dev
)
{
u16
cmd
,
old_cmd
;
int
idx
;
struct
resource
*
r
;
if
(
!
dev
)
return
-
EINVAL
;
/* Not needed, since we enable all devices at startup. */
pci_read_config_word
(
dev
,
PCI_COMMAND
,
&
cmd
);
old_cmd
=
cmd
;
for
(
idx
=
0
;
idx
<
6
;
idx
++
)
{
r
=
&
dev
->
resource
[
idx
];
if
(
!
r
->
start
&&
r
->
end
)
{
printk
(
KERN_ERR
"PCI: Device %s not available because of resource collisions
\n
"
,
dev
->
slot_name
);
return
-
EINVAL
;
}
if
(
r
->
flags
&
IORESOURCE_IO
)
cmd
|=
PCI_COMMAND_IO
;
if
(
r
->
flags
&
IORESOURCE_MEM
)
cmd
|=
PCI_COMMAND_MEMORY
;
}
if
(
dev
->
resource
[
PCI_ROM_RESOURCE
].
start
)
cmd
|=
PCI_COMMAND_MEMORY
;
if
(
cmd
!=
old_cmd
)
{
printk
(
"PCI: Enabling device %s (%04x -> %04x)
\n
"
,
dev
->
slot_name
,
old_cmd
,
cmd
);
pci_write_config_word
(
dev
,
PCI_COMMAND
,
cmd
);
}
printk
(
KERN_INFO
"PCI: Found IRQ %d for device %s
\n
"
,
dev
->
irq
,
dev
->
slot_name
);
return
0
;
}
...
...
arch/ia64/kernel/unwind.c
View file @
158ae06e
...
...
@@ -634,8 +634,8 @@ alloc_spill_area (unsigned long *offp, unsigned long regsize,
for
(
reg
=
hi
;
reg
>=
lo
;
--
reg
)
{
if
(
reg
->
where
==
UNW_WHERE_SPILL_HOME
)
{
reg
->
where
=
UNW_WHERE_PSPREL
;
reg
->
val
=
0x10
-
*
offp
;
*
offp
+=
regsize
;
*
offp
-=
regsize
;
reg
->
val
=
*
offp
;
}
}
}
...
...
@@ -814,7 +814,8 @@ desc_frgr_mem (unsigned char grmask, unw_word frmask, struct unw_state_record *s
}
for
(
i
=
0
;
i
<
20
;
++
i
)
{
if
((
frmask
&
1
)
!=
0
)
{
set_reg
(
sr
->
curr
.
reg
+
UNW_REG_F2
+
i
,
UNW_WHERE_SPILL_HOME
,
int
base
=
(
i
<
4
)
?
UNW_REG_F2
:
UNW_REG_F16
-
4
;
set_reg
(
sr
->
curr
.
reg
+
base
+
i
,
UNW_WHERE_SPILL_HOME
,
sr
->
region_start
+
sr
->
region_len
-
1
,
0
);
sr
->
any_spills
=
1
;
}
...
...
include/asm-ia64/mmu_context.h
View file @
158ae06e
...
...
@@ -58,15 +58,13 @@ delayed_tlb_flush (void)
if
(
unlikely
(
ia64_need_tlb_flush
))
{
__flush_tlb_all
();
__
ia64_need_tlb_flush
=
0
;
ia64_need_tlb_flush
=
0
;
}
}
static
inline
void
get_new_mmu_context
(
struct
mm_struct
*
mm
)
{
delayed_tlb_flush
();
spin_lock
(
&
ia64_ctx
.
lock
);
{
if
(
ia64_ctx
.
next
>=
ia64_ctx
.
limit
)
...
...
@@ -128,6 +126,8 @@ reload_context (struct mm_struct *mm)
static
inline
void
activate_mm
(
struct
mm_struct
*
prev
,
struct
mm_struct
*
next
)
{
delayed_tlb_flush
();
/*
* We may get interrupts here, but that's OK because interrupt
* handlers cannot touch user-space.
...
...
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