Skip to content

Commit

Permalink
microblaze: KGDB little endian support
Browse files Browse the repository at this point in the history
Just need to use little-endian opcode for brki r16, 0x18

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Jason Wessel <jason.wessel@windriver.com>
  • Loading branch information
Michal Simek committed Oct 21, 2010
1 parent 8e2ad01 commit e4f2909
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/microblaze/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

0 comments on commit e4f2909

Please sign in to comment.