]> git.lizzy.rs Git - plan9front.git/commitdiff
libmach: fix break point instruction for little endian MIPS (from sources)
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sat, 12 Jul 2014 23:24:55 +0000 (01:24 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sat, 12 Jul 2014 23:24:55 +0000 (01:24 +0200)
fix break point instruction for little endian MIPS in
libmach. (patch /n/sources/patch/libmach-mipsle-bpinst)

sys/src/libmach/vdb.c

index de67905ff3054cfee57241e4cf81bee7f2a01bb3..6001813c18893f7decf97a4be64351a0909410f5 100644 (file)
@@ -37,7 +37,7 @@ Machdata mipsmach =
 
 Machdata mipsmachle =
 {
-       {0, 0, 0, 0xD},         /* break point */
+       {0xD, 0, 0, 0},         /* break point */
        4,                      /* break point size */
 
        leswab,                 /* short to local byte order */
@@ -60,7 +60,7 @@ Machdata mipsmachle =
  */
 Machdata mipsmach2le =
 {
-       {0, 0, 0, 0xD},         /* break point */
+       {0xD, 0, 0, 0},         /* break point */
        4,                      /* break point size */
 
        leswab,                 /* short to local byte order */