diff options
Diffstat (limited to 'recipes-bsp/x-load/x-load-git/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch')
-rw-r--r-- | recipes-bsp/x-load/x-load-git/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/recipes-bsp/x-load/x-load-git/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch b/recipes-bsp/x-load/x-load-git/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch deleted file mode 100644 index d447fd0b..00000000 --- a/recipes-bsp/x-load/x-load-git/bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From bb8547fcbc54ecc7a75f9ad45a31042a04d8a2ce Mon Sep 17 00:00:00 2001 | ||
2 | From: Laine Walker-Avina <lwalkera@ieee.org> | ||
3 | Date: Tue, 13 Apr 2010 13:27:31 -0700 | ||
4 | Subject: [PATCH] FAT: Find the start of the first partition in a non-hardcoded way | ||
5 | |||
6 | --- | ||
7 | fs/fat/fat.c | 12 +++++------- | ||
8 | 1 files changed, 5 insertions(+), 7 deletions(-) | ||
9 | |||
10 | diff --git a/fs/fat/fat.c b/fs/fat/fat.c | ||
11 | index eb754c0..c6bdb13 100644 | ||
12 | --- a/fs/fat/fat.c | ||
13 | +++ b/fs/fat/fat.c | ||
14 | @@ -145,13 +145,11 @@ fat_register_device(block_dev_desc_t *dev_desc, int part_no) | ||
15 | return -1; | ||
16 | } | ||
17 | #else | ||
18 | - /* FIXME we need to determine the start block of the | ||
19 | - * partition where the DOS FS resides. This can be done | ||
20 | - * by using the get_partition_info routine. For this | ||
21 | - * purpose the libpart must be included. | ||
22 | - */ | ||
23 | - part_offset=63; | ||
24 | - //part_offset=0; | ||
25 | + part_offset = buffer[DOS_PART_TBL_OFFSET+8] | | ||
26 | + buffer[DOS_PART_TBL_OFFSET+9] <<8 | | ||
27 | + buffer[DOS_PART_TBL_OFFSET+10]<<16 | | ||
28 | + buffer[DOS_PART_TBL_OFFSET+11]<<24; | ||
29 | + | ||
30 | cur_part = 1; | ||
31 | #endif | ||
32 | } | ||
33 | -- | ||
34 | 1.6.1 | ||
35 | |||