summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2021-05-21 16:29:00 -0500
committerJoel Sherrill <joel@rtems.org>2021-05-25 08:33:04 -0500
commitf9d590753a844443e0981a520c9d672caf704244 (patch)
tree9571e3dac53143c59f00f767c65eef1d04f6c92f /bsps
parenttelnetd.c: Remove RTEMS_NETWORKING check (diff)
downloadrtems-f9d590753a844443e0981a520c9d672caf704244.tar.bz2
ppc-irq-legacy.c: Use rtems_malloc() instead of malloc().
Closes #4438.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/powerpc/shared/irq/ppc-irq-legacy.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/bsps/powerpc/shared/irq/ppc-irq-legacy.c b/bsps/powerpc/shared/irq/ppc-irq-legacy.c
index 931a9c6074..982ef5d115 100644
--- a/bsps/powerpc/shared/irq/ppc-irq-legacy.c
+++ b/bsps/powerpc/shared/irq/ppc-irq-legacy.c
@@ -1,18 +1,19 @@
+/**
+ * @file PIC-independent implementation of the functions described in irq.h
+ */
+
/*
+ * Copyright (C) 1998, 1999 valette@crf.canon.fr
*
- * This file contains the PIC-independent implementation of the functions described in irq.h
- *
- * Copyright (C) 1998, 1999 valette@crf.canon.fr
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
*/
#include <stdlib.h>
#include <rtems.h>
-#include <stdlib.h>
+#include <rtems/malloc.h>
#include <rtems/bspIo.h> /* for printk */
#include <libcpu/spr.h>
#include <bsp/irq_supp.h>
@@ -85,8 +86,8 @@ int BSP_install_rtems_shared_irq_handler (const rtems_irq_connect_data* irq)
return 0;
}
- /* pre-allocate memory outside of critical section */
- vchain = (rtems_irq_connect_data*)malloc(sizeof(rtems_irq_connect_data));
+ /* pre-allocate memory outside of critical section */
+ vchain = (rtems_irq_connect_data*) rtems_malloc(sizeof(rtems_irq_connect_data));
rtems_interrupt_disable(level);