fixing 4 byte padding in memory_init() routine