Prepare some basic early logging support
Complete logging in 16/32 modes
Prepare some logging system