1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 > Porting Guide</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="The eCos Hardware Abstraction Layer (HAL)"
23 HREF="the-ecos-hardware-abstraction-layer.html"><LINK
25 TITLE="Default Interrupt Handling"
26 HREF="hal-default-interrupt-handling.html"><LINK
29 HREF="hal-porting-structure.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="hal-default-interrupt-handling.html"
71 HREF="hal-porting-structure.html"
84 NAME="HAL-PORTING-GUIDE">Chapter 11. Porting Guide</H1
94 HREF="hal-porting-guide.html#HAL-PORTING-INTRO"
99 HREF="hal-porting-structure.html"
104 HREF="hal-calling-if.html"
105 >Virtual Vectors (eCos/ROM Monitor Calling Interface)</A
109 HREF="hal-porting-coding-conventions.html"
110 >HAL Coding Conventions</A
114 HREF="hal-porting-platform.html"
115 >Platform HAL Porting</A
119 HREF="hal-porting-variant.html"
120 >Variant HAL Porting</A
124 HREF="hal-porting-architecture.html"
125 >Architecture HAL Porting</A
134 NAME="HAL-PORTING-INTRO">Introduction</H1
136 >eCos has been designed to be fairly easy to port to new targets. A
137 target is a specific platform (board) using a given architecture (CPU
138 type). The porting is facilitated by the hierarchical layering of the
139 eCos sources - all architecture and platform specific code is
140 implemented in a HAL (hardware abstraction layer).</P
142 >By porting the eCos HAL to a new target the core functionality of eCos
143 (infra, kernel, uITRON, etc) will be able to run on the target. It may
144 be necessary to add further platform specific code such as serial
145 drivers, display drivers, ethernet drivers, etc. to get a fully
148 >This document is intended as a help to the HAL porting process. Due to
149 the nature of a porting job, it is impossible to give a complete
150 description of what has to be done for each and every potential
151 target. This should not be considered a clear-cut recipe - you will
152 probably need to make some implementation decisions, tweak a few
153 things, and just plain have to rely on common sense.</P
155 >However, what is covered here should be a large part of the
156 process. If you get stuck, you are advised to read the
158 HREF="http://sourceware.cygnus.com/ml/ecos-discuss/"
160 >ecos-discuss archive</A
162 where you may find discussions which apply to the problem at
163 hand. You are also invited to ask questions on the
165 HREF="http://sourceware.cygnus.com/ecos/intouch.html"
167 >ecos-discuss mailing list</A
169 to help you resolve problems - but as is always the case
170 with community lists, do not consider it an oracle for any and all
171 questions. Use common sense - if you ask too many questions which
172 could have been answered by reading the
174 HREF="http://sourceware.cygnus.com/ecos/docs-latest/"
179 HREF="http://sourceware.cygnus.com/fom/ecos"
184 HREF="http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/ecos/packages/?cvsroot=ecos"
187 >, you are likely to be ignored.</P
189 >This document will be continually improved by Red Hat engineers as
190 time allows. Feedback and help with improving the document is sought,
191 so if you have any comments at all, please do not hesitate to post
194 HREF="mailto:ecos-discuss@sourceware.cygnus.com?subject=[porting]<subject>"
198 (please prefix the subject with [porting]).</P
200 >At the moment this document is mostly an outline. There are many
201 details to fill in before it becomes complete. Many places you'll just
202 find a list of keywords / concepts that should be described (please
203 post on ecos-discuss if there are areas you think are not covered).</P
205 >All pages or sections where the caption ends in [TBD] contain little
206 more than key words and/or random thoughts - there has been no work
207 done as such on the content. The word FIXME may appear in the text to
208 highlight places where information is missing.</P
216 SUMMARY="Footer navigation table"
227 HREF="hal-default-interrupt-handling.html"
245 HREF="hal-porting-structure.html"
255 >Default Interrupt Handling</TD
261 HREF="the-ecos-hardware-abstraction-layer.html"