diff options
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -254,6 +254,13 @@ hal_error_t hal_core_alloc2(const char *name1, hal_core_t **pcore1, hal_core_lru { const int clear = pcore1 != NULL && *pcore1 == NULL; + if (name1 == name2 || strcmp(name1, name2) == 0) { + hal_core_t *core1; + if (((core1 = hal_core_find(name1, NULL)) == NULL) || + (hal_core_find(name1, core1) == NULL)) + return HAL_ERROR_CORE_NOT_FOUND; + } + for (;;) { hal_error_t err = hal_core_alloc_no_wait(name1, pcore1, pomace1); |