diff options
| author | [email protected] <[email protected]> | 2011-06-03 11:32:08 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-03 11:32:08 +0000 |
| commit | dd2df385e23cd06778aba9fdcc9988558fedbbfb (patch) | |
| tree | 82d6e2c44d8df7de80c5e5f331980aaf39438698 /libcpu | |
| parent | 3ea3d509efaf2dc3c6378caf912e88baf87a1163 (diff) | |
fix rt_hw_interrupt_install bug
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1447 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/s3c24x0/interrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/s3c24x0/interrupt.c b/libcpu/arm/s3c24x0/interrupt.c index 505b821465..8cbd6230b6 100644 --- a/libcpu/arm/s3c24x0/interrupt.c +++ b/libcpu/arm/s3c24x0/interrupt.c @@ -109,7 +109,7 @@ void rt_hw_interrupt_install(int vector, rt_isr_handler_t new_handler, rt_isr_ha { if(vector < MAX_HANDLERS) { - if (*old_handler != RT_NULL) *old_handler = isr_table[vector]; + if (old_handler != RT_NULL) *old_handler = isr_table[vector]; if (new_handler != RT_NULL) isr_table[vector] = new_handler; } } |
