提交 4872aa13 编写于 作者: B balrog

Enable SD card on creation.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4640 c046a42c-6fe2-441c-8c8c-71466251a162
上级 130b0c98
...@@ -421,6 +421,7 @@ SDState *sd_init(BlockDriverState *bs, int is_spi) ...@@ -421,6 +421,7 @@ SDState *sd_init(BlockDriverState *bs, int is_spi)
sd = (SDState *) qemu_mallocz(sizeof(SDState)); sd = (SDState *) qemu_mallocz(sizeof(SDState));
sd->buf = qemu_memalign(512, 512); sd->buf = qemu_memalign(512, 512);
sd->spi = is_spi; sd->spi = is_spi;
sd->enable = 1;
sd_reset(sd, bs); sd_reset(sd, bs);
bdrv_set_change_cb(sd->bdrv, sd_cardchange, sd); bdrv_set_change_cb(sd->bdrv, sd_cardchange, sd);
return sd; return sd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册