cleanup: arm, configs, debug

These trivial code are added while doing new porting.
They are not needed now.