linux-mips
[Top] [All Lists]

Re: How to translate Little to Big endian ?

To: "prabhakark@contechsoftware.com" <prabhakark@contechsoftware.com>, "'linux-mips@linux-mips.org'" <linux-mips@linux-mips.org>
Subject: Re: How to translate Little to Big endian ?
From: karthikeyan natarajan <karthik_96cse@yahoo.com>
Date: Wed, 24 Sep 2003 16:15:49 +0100 (BST)
In-reply-to: <01C382AE.A6330DF0.prabhakark@contechsoftware.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi Prabhakar,

> I'm trying to port linux-2.4.21 on CSB250 , which is
> Au1500 processor based board,
> the processor is a Big endian, I have taken PB1500
> board as my prototype, but it's used Au1500 Little
> endian.
> anybody could help me out, what are the changes do i
> need to change to make a Little endian souce into
> Big endian source.

   Guess you are looking for a library call to do
this.
If i am correct, then htonl function will serve the
purpose.

My $0.02

Thanks,
-karthi
 
> Is anybody worked on Cogent's CSB250 board till.
> 
> Thanks in advance
> Prabhakar
> 
>  

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

<Prev in Thread] Current Thread [Next in Thread>