x86/platform/quark: Print boundaries correctly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 Jan 2016 20:13:41 +0000 (22:13 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Jan 2016 07:40:26 +0000 (08:40 +0100)
commit22c43f36b5cf22a7e4506cb3a53f3ad2a43f60f7
treef99510ca7d089caf5ba6242b3c3c25e2adfb5b7f
parentd394f2d9d8e1e7b4959819344baf67b5995da9b0
x86/platform/quark: Print boundaries correctly

When we print values, such as @size, we have to understand that
it's derived from [begin .. end] as:

size = end - begin + 1

On the opposite the @end is derived from the rest as:

end = begin + size - 1

Correct the IMR code to print values correctly.

Note that @__end_rodata actually points to the next address
after the aligned .rodata section.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ong, Boon Leong <boon.leong.ong@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1453320821-64328-1-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/intel-quark/imr.c