cpu:cortex_common: add core_panic function

add `crash.c` with `core_panic` function in preparation for import of thirdparty_* repositories.
v2.1