Skip to content
Snippets Groups Projects
Commit ada456dd authored by Shashank Mittal's avatar Shashank Mittal
Browse files

lrdpv2: irqparse: Fix issue while parsing irq state on 64 bit target

'irq' in 'irq_data' and 'irq_count' in 'irq_desc' are of unsigned
int (32 bit) type. Using ramdump's read_word returns 64 bit data on
64 bit target.

Fix parser to use read_int function while reading irq number.

Change-Id: I5382ea408066c2b123044a4f7612fd683da07256
parent 078ae667
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
# Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
......@@ -139,8 +139,8 @@ class IrqParse(RamParser):
ram_dump, irq_desc_tree, i)
if irq_desc is None:
continue
irqnum = ram_dump.read_word(irq_desc + irq_num_offset)
irqcount = ram_dump.read_word(irq_desc + irq_count_offset)
irqnum = ram_dump.read_int(irq_desc + irq_data_offset + irq_num_offset)
irqcount = ram_dump.read_int(irq_desc + irq_count_offset)
action = ram_dump.read_word(irq_desc + irq_action_offset)
kstat_irqs_addr = ram_dump.read_word(irq_desc + kstat_irqs_offset)
irq_stats_str = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment