diff options
| author | Mitsyanko Igor <i.mitsyanko@samsung.com> | 2012-08-13 11:04:06 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2012-08-13 11:04:06 +0100 |
| commit | 347cab1a762ff8542016f574c5eb32f0c4588ea2 (patch) | |
| tree | 034047aa92d7b5bfc27cb16651a063d05335eee7 /hw/sd.c | |
| parent | a9c0183059d6a4e4d940cd86ac0f9402b0655d24 (diff) | |
| download | focaccia-qemu-347cab1a762ff8542016f574c5eb32f0c4588ea2.tar.gz focaccia-qemu-347cab1a762ff8542016f574c5eb32f0c4588ea2.zip | |
hw/sd.c: make sd_wp_addr() accept 64 bit address argument
Currently sd_wp_addr() accepts 32 bit address arguments therefore implicitly restricting SD card address range. Change address argument type to uint64_t. Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/sd.c')
| -rw-r--r-- | hw/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd.c b/hw/sd.c index 575b509bde..e24d04ae33 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -539,7 +539,7 @@ static void sd_function_switch(SDState *sd, uint32_t arg) sd->data[66] = crc & 0xff; } -static inline int sd_wp_addr(SDState *sd, uint32_t addr) +static inline int sd_wp_addr(SDState *sd, uint64_t addr) { return test_bit(addr >> (HWBLOCK_SHIFT + SECTOR_SHIFT + WPGROUP_SHIFT), sd->wp_groups); |