diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-03-12 10:03:52 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-03-12 10:03:52 +0000 |
commit | 06a5299aff38ba25c7742ae6293c588e38445f8b (patch) | |
tree | 5f8c3121882ba9c8d6317d1ce7fb5a07d3a99f5c /firmware/export | |
parent | 2f5a37de5c45333453169ffe0b90e0f380d1cd50 (diff) | |
download | rockbox-06a5299aff38ba25c7742ae6293c588e38445f8b.tar.gz rockbox-06a5299aff38ba25c7742ae6293c588e38445f8b.zip |
Do some crackdown on kernel object reinitialization after they could be in use and use before initialization. For c200/e200: Be sure fat cache and ata locks are acquired in the proper order during hot swapping. Delay hotswap monitoring until after initial file mounting (address 2nd kobj concern + possible call of fat driver before init).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/fat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h index 0dfd395ea7..3cf2923b78 100644 --- a/firmware/export/fat.h +++ b/firmware/export/fat.h | |||
@@ -82,6 +82,10 @@ struct fat_dir | |||
82 | unsigned char sectorcache[3][SECTOR_SIZE]; | 82 | unsigned char sectorcache[3][SECTOR_SIZE]; |
83 | }; | 83 | }; |
84 | 84 | ||
85 | #ifdef HAVE_HOTSWAP | ||
86 | extern void fat_lock(void); | ||
87 | extern void fat_unlock(void); | ||
88 | #endif | ||
85 | 89 | ||
86 | extern void fat_init(void); | 90 | extern void fat_init(void); |
87 | extern int fat_mount(IF_MV2(int volume,) IF_MV2(int drive,) long startsector); | 91 | extern int fat_mount(IF_MV2(int volume,) IF_MV2(int drive,) long startsector); |