[En-Nut-Discussion] Supporting Other Target Platforms

Roman Avramenko nut at imsystems.ru
Mon Feb 2 10:45:01 CET 2004


Hello Jan,

Monday, February 02, 2004, 5:15:57 AM, you wrote:

>> os/timer.c: tmr_arm.c tmr_avr.c tmr_h8.c tmr_m68k.c
>> os/thread.c: ctx_arm.c ctx_avr.c ctx_h8.c ctx_m68k.c
JD> IMO there should be created "arch" directory with MCU/CPU dependent
JD> subdirectories in it - please look at arch directory in the Linux
JD> kernel sources as an example. Then the above files should be moved to
JD> appropriate subdirectories. So finally there should be two eg. timer.c
JD> files: first under "os" directory which should contain hardware independent
JD> functions and the second under eg. "arch/h8300" with hardware dependent
JD> stuff.

Right, also I think it will be better to have common arch/armnommu
directory with separate system subdirs:

arch/armnommu/snds100 -> Samsung S3C4510 (and probably S3C4530) ARM
arch/armnommu/netarm  -> NetARM
arch/armnommu/atmel   -> Atmel AT91

etc..


-- 
Best regards,
 Roman                            mailto:nut at imsystems.ru





More information about the En-Nut-Discussion mailing list