From: Michal Simek Date: Tue, 28 Sep 2010 05:49:17 +0000 (+1000) Subject: microblaze: KGDB little endian support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4f29092272ee91a34d3660c31f15ed103057aa0;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git microblaze: KGDB little endian support Just need to use little-endian opcode for brki r16, 0x18 Signed-off-by: Michal Simek CC: Jason Wessel --- diff --git a/arch/microblaze/kernel/kgdb.c b/arch/microblaze/kernel/kgdb.c index 9b5a817605ec..09a5e8286137 100644 --- a/arch/microblaze/kernel/kgdb.c +++ b/arch/microblaze/kernel/kgdb.c @@ -142,5 +142,9 @@ void kgdb_arch_exit(void) * Global data */ struct kgdb_arch arch_kgdb_ops = { +#ifdef __MICROBLAZEEL__ + .gdb_bpt_instr = {0x18, 0x00, 0x0c, 0xba}, /* brki r16, 0x18 */ +#else .gdb_bpt_instr = {0xba, 0x0c, 0x00, 0x18}, /* brki r16, 0x18 */ +#endif };