summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-10-06 20:49:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-10-06 20:49:51 +0000
commit591d45e7d5059dd7bd88aa5616a3ea3d3ce1ee2c (patch)
treecd4e62adcda7eac6ffb41697e771e7f30f81e3c1
parenteb5a7e07df06b2503fce59a30369b5598cc26d55 (diff)
downloadrtems-591d45e7d5059dd7bd88aa5616a3ea3d3ce1ee2c.tar.bz2
fixed null pointer dereference
-rw-r--r--c/src/exec/score/cpu/hppa1.1/cpu.c4
-rw-r--r--cpukit/score/cpu/hppa1.1/cpu.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/c/src/exec/score/cpu/hppa1.1/cpu.c b/c/src/exec/score/cpu/hppa1.1/cpu.c
index 4cef979367..3aa73e073c 100644
--- a/c/src/exec/score/cpu/hppa1.1/cpu.c
+++ b/c/src/exec/score/cpu/hppa1.1/cpu.c
@@ -207,7 +207,7 @@ void _CPU_ISR_install_vector(
void
hppa_external_interrupt_initialize(void)
{
- hppa_rtems_isr_entry ignore = 0;
+ proc_ptr ignore;
/* mark them all unused */
@@ -218,7 +218,7 @@ hppa_external_interrupt_initialize(void)
_CPU_ISR_install_vector(
HPPA_INTERRUPT_EXTERNAL_INTERRUPT,
(proc_ptr)hppa_external_interrupt,
- (proc_ptr *)ignore
+ &ignore
);
}
diff --git a/cpukit/score/cpu/hppa1.1/cpu.c b/cpukit/score/cpu/hppa1.1/cpu.c
index 4cef979367..3aa73e073c 100644
--- a/cpukit/score/cpu/hppa1.1/cpu.c
+++ b/cpukit/score/cpu/hppa1.1/cpu.c
@@ -207,7 +207,7 @@ void _CPU_ISR_install_vector(
void
hppa_external_interrupt_initialize(void)
{
- hppa_rtems_isr_entry ignore = 0;
+ proc_ptr ignore;
/* mark them all unused */
@@ -218,7 +218,7 @@ hppa_external_interrupt_initialize(void)
_CPU_ISR_install_vector(
HPPA_INTERRUPT_EXTERNAL_INTERRUPT,
(proc_ptr)hppa_external_interrupt,
- (proc_ptr *)ignore
+ &ignore
);
}