This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001291] New HAL for Cortex-M3 Smartfusion device


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001291

--- Comment #20 from Ilija Kocho <ilijak@siva.com.mk> 2011-11-11 17:48:11 GMT ---
So we can start with HAL.

First one trivial issue:
CYGNUM_HAL_KERNEL_COUNTERS_CLOCK_ISR_DEFAULT_PRIORITY is set to 0xE0, and
description is "Set clock ISR priority to lowest priority.", probably carried
from other HAL. Since device is said to have 5 priority bits, please change
either value or description. (I wander if we should consider a CDL for lowest
ISR priority on architecture level).


CYG_HAL_STARTUP: I can see that you have followed our discussion from mailing
list. Please consider the following:

Basic idea is to cover all (or most) memory layouts not employing external
memory on variant level. Since this is a fresh port I would suggest to do it.

1. Placing CYG_HAL_STARTUP in variant tree will avoid it's cloning in
forthcoming (i hope they will come) platform trees and at the same time provide
consistent propagation of it's updates (enhancements and bugs) in each of them.
In order to keep all startup together, platform's CYG_HAL_PLF_STARTUP, if
present, can be "parenthed" by CYG_HAL_STARTUP. Note: "If present means" if
there is external memory, for single-chip boards we can/should omit it.

1.1. Together with CYG_HAL_STARTUP come MLT filesets (fileset = ldi + header)
affected by. Normally, this will require a new pkgconf directory in variant.
Further, all values in MLT files (memory sizes, locations, etc.) can be
parametrized in CDL so it would be possible to cover many, (hopefully all)
combinations of on-chip memory with a handful of MLT filesets.

2. Platforms with external memory is going to use CYG_HAL_PLF_STARTUP as well
as their own MLT filesets in order to override CYG_PLF_STARUP. However they
will also be able to make use of CYG_HAL_STARTUP (for eventual single-chip
emulation, etc.).

Anybody, feel free to comment.
Ilija

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]