Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ken Aaker <kaaker@silverbacksystems.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: Mangled struct hd_driveid with MIPSEB.
Date: Thu, 16 May 2002 10:07:02 -0500	[thread overview]
Message-ID: <3CE3CB16.1040503@silverbacksystems.com> (raw)
In-Reply-To: 3CE3578C.CF29A2D6@mips.com

The problem with the difference isn't that it's byte swapped, its that 
the byte swapping isn't respecting the data types inside the structure. 
It fixes all of the "short" entities, but it re-orders the fields that 
happen to be two chars next to each other, and the "shorts" that are 
part of the two "ints" for lba capacity and capacity values are in the 
wrong order, even though the bytes within the "shorts" are in the right 
order. So, when the fixup code in ide.h is run, the values are still wrong.


old ----
0070: 3f0010fc fb000001 80ac7e03 00000704   "?.........~....."
0080: 03007800 78007800 78000000 00000000   "..x.x.x.x......."
new---
0070: 003ffc10 00fb0100 ac80037e 00000407   ".?.........~...."
0080: 00030078 00780078 00780000 00000000   "...x.x.x.x......"

proper--- (after fix up).
0070: 003f00fb fc100001 037eac80 00000407   ".?.......~......"
0080: 00030078 00780078 00780000 00000000   "...x.x.x.x......"


Ken

  parent reply	other threads:[~2002-05-16 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-15 20:42 Mangled struct hd_driveid with MIPSEB Ken Aaker
2002-05-16  6:54 ` Carsten Langgaard
2002-05-16  8:39   ` Geert Uytterhoeven
2002-05-16 10:06     ` Carsten Langgaard
2002-05-16 10:57       ` Geert Uytterhoeven
2002-05-16 15:07   ` Ken Aaker [this message]
2002-05-21  8:12     ` Carsten Langgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CE3CB16.1040503@silverbacksystems.com \
    --to=kaaker@silverbacksystems.com \
    --cc=linux-mips@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox