From 06a5299aff38ba25c7742ae6293c588e38445f8b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 12 Mar 2008 10:03:52 +0000 Subject: 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 --- firmware/export/fat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/export') 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 unsigned char sectorcache[3][SECTOR_SIZE]; }; +#ifdef HAVE_HOTSWAP +extern void fat_lock(void); +extern void fat_unlock(void); +#endif extern void fat_init(void); extern int fat_mount(IF_MV2(int volume,) IF_MV2(int drive,) long startsector); -- cgit v1.2.3