kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Requirement of Linux port
@ 2011-04-01  3:30 Jacky Lam
  2011-04-01  5:14 ` Michael Blizek
  0 siblings, 1 reply; 2+ messages in thread
From: Jacky Lam @ 2011-04-01  3:30 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

     Is there any document on web summarized the hardware (especially, 
CPU) that a Linux depends on. For example, if a CPU doesn't support 
misaligned access (no exception will be generated when misalignment 
access), can Linux run on that?

    Thanks.

BR,
Jacky

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Requirement of Linux port
  2011-04-01  3:30 Requirement of Linux port Jacky Lam
@ 2011-04-01  5:14 ` Michael Blizek
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Blizek @ 2011-04-01  5:14 UTC (permalink / raw)
  To: kernelnewbies

Hi!

On 11:30 Fri 01 Apr     , Jacky Lam wrote:
> Hi All,
> 
>      Is there any document on web summarized the hardware (especially, 
> CPU) that a Linux depends on. For example, if a CPU doesn't support 
> misaligned access (no exception will be generated when misalignment 
> access), can Linux run on that?

I do not know of such a document, but I have not looked for one so far. But
basically:
- CPUs which do not support misaligned access are supported.
- CPUs less than 32 bit are not supported. When compiling with gcc, int is
  always 32 bit, long is 32/64 bit (depending on 32/64 bit CPU) and long long
  is always 64 bit. You can also use __u8 __u16 __u32 __u64 __s8 __s16 __s32
  and __s64, if you want to.
- Both big endian and little endian is supported.

The interesting stuff starts if you want to port a program to/from other OSes.
Then you have to take care of missing libs/syscalls (like I/O multiplexer and
a lot of GUIs stuff) or syscalls which behave differently (like fsync())...

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-01  5:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01  3:30 Requirement of Linux port Jacky Lam
2011-04-01  5:14 ` Michael Blizek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).