remove memcpy because it's bare-metal system