forked from len0rd/rockbox
Partition table is no longer global
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@831 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6f9e35df28
commit
6573d6d4b4
3 changed files with 12 additions and 11 deletions
|
|
@ -53,6 +53,7 @@ extern int poolend[];
|
|||
int init(void)
|
||||
{
|
||||
int rc;
|
||||
struct partinfo* pinfo;
|
||||
|
||||
system_init();
|
||||
|
||||
|
|
@ -73,11 +74,11 @@ int init(void)
|
|||
if(rc)
|
||||
panicf("ata: %d",rc);
|
||||
|
||||
rc = disk_init();
|
||||
if (rc)
|
||||
panicf("disk: %d",rc);
|
||||
pinfo = disk_init();
|
||||
if (!pinfo)
|
||||
panicf("disk: NULL");
|
||||
|
||||
rc = fat_mount(part[0].start);
|
||||
rc = fat_mount(pinfo[0].start);
|
||||
if(rc)
|
||||
panicf("mount: %d",rc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue