forked from len0rd/rockbox
implement single-driver storage layer with macros instead of inlines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18975 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0b34b77e13
commit
430343bca7
12 changed files with 211 additions and 265 deletions
|
|
@ -78,9 +78,11 @@ struct partinfo* disk_init(IF_MV_NONVOID(int drive))
|
|||
return NULL; /* out of space in table */
|
||||
#else
|
||||
struct partinfo* pinfo = part;
|
||||
int drive;
|
||||
(void)drive;
|
||||
#endif
|
||||
|
||||
storage_read_sectors(IF_MV2(drive,) 0,1, §or);
|
||||
storage_read_sectors(drive, 0,1, §or);
|
||||
/* check that the boot sector is initialized */
|
||||
if ( (sector[510] != 0x55) ||
|
||||
(sector[511] != 0xaa)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue