flash/nor/efm32: Use Cortex-M 'core_info' field
[fw/openocd] / src / target / smp.h
index 3338240adf6d2a3a1e2736c8885ace604b480cc0..490a4931051af1306e99a86626e05640c2e0c641 100644 (file)
 #ifndef OPENOCD_TARGET_SMP_H
 #define OPENOCD_TARGET_SMP_H
 
+#include <helper/list.h>
 #include "server/server.h"
 
 #define foreach_smp_target(pos, head) \
-       for (pos = head; (pos); pos = pos->next)
+       list_for_each_entry(pos, head, lh)
+
+#define foreach_smp_target_direction(forward, pos, head) \
+       list_for_each_entry_direction(forward, pos, head, lh)
 
 extern const struct command_registration smp_command_handlers[];