<div dir="ltr">OK.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 5, 2022 at 2:36 PM Kinsey Moore <<a href="mailto:kinsey.moore@oarcorp.com">kinsey.moore@oarcorp.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This function was never actually used and is dead code.<br>
---<br>
 cpukit/score/cpu/aarch64/cpu.c                | 25 -------------------<br>
 .../cpu/aarch64/include/rtems/score/cpu.h     |  6 -----<br>
 2 files changed, 31 deletions(-)<br>
<br>
diff --git a/cpukit/score/cpu/aarch64/cpu.c b/cpukit/score/cpu/aarch64/cpu.c<br>
index f0062adf30..923f53da08 100644<br>
--- a/cpukit/score/cpu/aarch64/cpu.c<br>
+++ b/cpukit/score/cpu/aarch64/cpu.c<br>
@@ -174,31 +174,6 @@ uint32_t _CPU_ISR_Get_level( void )<br>
   return ( level & AARCH64_PSTATE_I ) != 0;<br>
 }<br>
<br>
-void _CPU_ISR_install_vector(<br>
-  uint32_t         vector,<br>
-  CPU_ISR_handler  new_handler,<br>
-  CPU_ISR_handler *old_handler<br>
-)<br>
-{<br>
-#pragma GCC diagnostic push<br>
-#pragma GCC diagnostic ignored "-Warray-bounds"<br>
-  /* Redirection table starts at the end of the vector table */<br>
-  CPU_ISR_handler *table = (CPU_ISR_handler *) (MAX_EXCEPTIONS * 4);<br>
-<br>
-  CPU_ISR_handler current_handler = table [vector];<br>
-<br>
-  /* The current handler is now the old one */<br>
-  if (old_handler != NULL) {<br>
-    *old_handler = current_handler;<br>
-  }<br>
-<br>
-  /* Write only if necessary to avoid writes to a maybe read-only memory */<br>
-  if (current_handler != new_handler) {<br>
-    table [vector] = new_handler;<br>
-  }<br>
-#pragma GCC diagnostic pop<br>
-}<br>
-<br>
 void _CPU_Initialize( void )<br>
 {<br>
   /* Do nothing */<br>
diff --git a/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h b/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h<br>
index fdc0e3d929..47a8e97985 100644<br>
--- a/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h<br>
+++ b/cpukit/score/cpu/aarch64/include/rtems/score/cpu.h<br>
@@ -306,12 +306,6 @@ void _CPU_Initialize( void );<br>
<br>
 typedef void ( *CPU_ISR_handler )( void );<br>
<br>
-void _CPU_ISR_install_vector(<br>
-  uint32_t         vector,<br>
-  CPU_ISR_handler  new_handler,<br>
-  CPU_ISR_handler *old_handler<br>
-);<br>
-<br>
 /**<br>
  * @brief CPU switch context.<br>
  */<br>
-- <br>
2.30.2<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>