remove obsolete trap API function no more used
use const qualifier for trap rsi memory access