mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Compare commits
347 Commits
contrib/bs
...
4.8.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7cf2cfaa5c | ||
|
|
97b9d90c1b | ||
|
|
fb9b445952 | ||
|
|
1ea3eb8958 | ||
|
|
aa2b944cdd | ||
|
|
50bac4a70d | ||
|
|
c8225edd1f | ||
|
|
05b5ec8cc7 | ||
|
|
d5808bea3c | ||
|
|
ab41f99465 | ||
|
|
ee6377f9fe | ||
|
|
19aa6d7c81 | ||
|
|
4f00a35cfc | ||
|
|
30dfdaa8c7 | ||
|
|
f8589f08d6 | ||
|
|
0973a00638 | ||
|
|
cdeed5a674 | ||
|
|
f774354f6e | ||
|
|
2165ab45fd | ||
|
|
a3edc1b8d2 | ||
|
|
cd8dd21b63 | ||
|
|
2cc6357bea | ||
|
|
d26a03c92c | ||
|
|
ba197db0c6 | ||
|
|
10d5360160 | ||
|
|
fd410cd8e3 | ||
|
|
5589d26f3a | ||
|
|
5e6b855480 | ||
|
|
b813489b46 | ||
|
|
9301ec20b9 | ||
|
|
af0717b291 | ||
|
|
bd8e7703bd | ||
|
|
f1534807f6 | ||
|
|
6dae02b4a8 | ||
|
|
da3d35840f | ||
|
|
01d2b1ebc5 | ||
|
|
6542b4613b | ||
|
|
0eaef9a704 | ||
|
|
15e12bf63a | ||
|
|
d8fce0335c | ||
|
|
959f9ed343 | ||
|
|
3f5e231d5b | ||
|
|
6998158727 | ||
|
|
8774fddf30 | ||
|
|
dc927fe9f8 | ||
|
|
d7196bfd66 | ||
|
|
e1be2b30ad | ||
|
|
72c7d3e2e6 | ||
|
|
4f1b79b380 | ||
|
|
3ab7226ae5 | ||
|
|
c614948571 | ||
|
|
9f61de9ef6 | ||
|
|
6068f9b028 | ||
|
|
d7ad1f65fe | ||
|
|
5ab52fb40a | ||
|
|
86458b0e97 | ||
|
|
cc88fb7e84 | ||
|
|
8303576c15 | ||
|
|
b7a08ad494 | ||
|
|
c9b28ef278 | ||
|
|
065639c0f2 | ||
|
|
ecf19d14b3 | ||
|
|
2bcccf73c0 | ||
|
|
e02d489afc | ||
|
|
eafefdf19f | ||
|
|
081b2d4d95 | ||
|
|
f7a1d76d44 | ||
|
|
d13db6a837 | ||
|
|
f4d9c474fd | ||
|
|
3b4bbc277d | ||
|
|
712a3a2cd7 | ||
|
|
86b2da4fb7 | ||
|
|
13873d54e4 | ||
|
|
03262f8917 | ||
|
|
965839a4ba | ||
|
|
05ab2acaf7 | ||
|
|
e2684d4a75 | ||
|
|
0b1ceac847 | ||
|
|
6f536795d6 | ||
|
|
4fdab5d871 | ||
|
|
8e98cfb632 | ||
|
|
3568f50df1 | ||
|
|
47927b0477 | ||
|
|
c592a7f54a | ||
|
|
f3a4c7a85a | ||
|
|
b37ab148fe | ||
|
|
c3a992696d | ||
|
|
d6b8d5c974 | ||
|
|
52efd7de67 | ||
|
|
44a2f5d6c3 | ||
|
|
43db3c8656 | ||
|
|
8683760168 | ||
|
|
63d797186e | ||
|
|
e5bbe572be | ||
|
|
379e676a11 | ||
|
|
be2b95568b | ||
|
|
d0ea9d9d89 | ||
|
|
de9806ecb3 | ||
|
|
32a46df3ba | ||
|
|
08e4923776 | ||
|
|
935eb84ab0 | ||
|
|
a4832af52e | ||
|
|
1572e389ff | ||
|
|
cabc362915 | ||
|
|
c657ad5b9f | ||
|
|
3c5939074c | ||
|
|
77c5e9120d | ||
|
|
b335275de0 | ||
|
|
1256de38bf | ||
|
|
6676f1de16 | ||
|
|
b8fa0b1266 | ||
|
|
eab373a2d7 | ||
|
|
a7a9e1938a | ||
|
|
c25cea9bee | ||
|
|
014d541f37 | ||
|
|
9f170c9e84 | ||
|
|
b72e847b3f | ||
|
|
bd029d8779 | ||
|
|
9cda660388 | ||
|
|
bdfdb0b3ca | ||
|
|
c0694b0637 | ||
|
|
7f46d43d3d | ||
|
|
1016b77514 | ||
|
|
e5c0540d6a | ||
|
|
a2cf229615 | ||
|
|
a570a14004 | ||
|
|
95b674ccd6 | ||
|
|
ada1918f45 | ||
|
|
530d307f58 | ||
|
|
05e808763e | ||
|
|
4cf3275ac0 | ||
|
|
fc19fcbd69 | ||
|
|
eaab3cd497 | ||
|
|
37c77c5c00 | ||
|
|
01ab562f82 | ||
|
|
7567f4d580 | ||
|
|
492e450891 | ||
|
|
84d31bc518 | ||
|
|
b61c8cca57 | ||
|
|
9a73a4c94d | ||
|
|
f79feff8fc | ||
|
|
ef83c4c70f | ||
|
|
f58d7d8ac5 | ||
|
|
8c0a48d754 | ||
|
|
0c4dd1c8f1 | ||
|
|
83ea84b6ae | ||
|
|
1f567f2692 | ||
|
|
355d23b708 | ||
|
|
433f6890b8 | ||
|
|
269f5a23c1 | ||
|
|
9d2aae8b51 | ||
|
|
90c85d5bf7 | ||
|
|
b0f67b53f6 | ||
|
|
229c0470d1 | ||
|
|
2bd2aba6c9 | ||
|
|
5bb8ddf6b0 | ||
|
|
e3ad8494ef | ||
|
|
280ef6eefd | ||
|
|
7d032fc6bc | ||
|
|
48776cdbb0 | ||
|
|
0b770037ef | ||
|
|
4c081642b0 | ||
|
|
c2a5fa56d5 | ||
|
|
bf33c69e2f | ||
|
|
1187fce8b8 | ||
|
|
5ee16abd07 | ||
|
|
10d6b97a0d | ||
|
|
1ded262be0 | ||
|
|
1e2a76e8e9 | ||
|
|
9ee9a7d6a6 | ||
|
|
c8ecbf9c1e | ||
|
|
44303a8fbd | ||
|
|
a967c7357b | ||
|
|
3438bc3a2f | ||
|
|
847c7e3b09 | ||
|
|
ad62077db9 | ||
|
|
789c49080b | ||
|
|
102295eba7 | ||
|
|
a4d9a11e2d | ||
|
|
8ae2a26e24 | ||
|
|
ff1e20f46a | ||
|
|
bb1dbc8255 | ||
|
|
1f0fde99c5 | ||
|
|
b6f188ff15 | ||
|
|
d5b4a68520 | ||
|
|
cf118868e7 | ||
|
|
734e053691 | ||
|
|
35305b59e8 | ||
|
|
174eea53d5 | ||
|
|
2928e82995 | ||
|
|
56535aaae2 | ||
|
|
dc709596a5 | ||
|
|
876c5d9eb4 | ||
|
|
7947987c78 | ||
|
|
52e97570a8 | ||
|
|
d89da6eca7 | ||
|
|
163a1047c2 | ||
|
|
bb4a8ad296 | ||
|
|
f95a584bbe | ||
|
|
f2bcb618b8 | ||
|
|
d24a72f220 | ||
|
|
713d79e3aa | ||
|
|
c752e84935 | ||
|
|
e9a9bdd1e5 | ||
|
|
2bf27202ea | ||
|
|
5881d06cb9 | ||
|
|
7d25764ef3 | ||
|
|
faa0950d4d | ||
|
|
f5cc928819 | ||
|
|
d475f9d7d0 | ||
|
|
e945d6b9c9 | ||
|
|
50f25ace20 | ||
|
|
7875d408be | ||
|
|
ed36c3513d | ||
|
|
5dd2ecbbc9 | ||
|
|
ce195afa2f | ||
|
|
bd025cde6b | ||
|
|
1ecaae4972 | ||
|
|
16b5fa3163 | ||
|
|
ae8600f335 | ||
|
|
49bf16a322 | ||
|
|
87f08a6b37 | ||
|
|
c3bb858209 | ||
|
|
06b8ba0ac5 | ||
|
|
3402633033 | ||
|
|
372cdd515f | ||
|
|
aa56c20114 | ||
|
|
2e3199e9ca | ||
|
|
1b0c3e6cff | ||
|
|
7e15770cda | ||
|
|
e5ce943eb9 | ||
|
|
8ffd6be0ea | ||
|
|
dea5bb944e | ||
|
|
76fb8a6c19 | ||
|
|
abc81aa749 | ||
|
|
54e05e1169 | ||
|
|
bec1af03d4 | ||
|
|
ad8f26a766 | ||
|
|
ccdfdb203d | ||
|
|
3753b0076f | ||
|
|
29cce4be45 | ||
|
|
8abda6510f | ||
|
|
01a9d2c308 | ||
|
|
be39e03665 | ||
|
|
1992eff989 | ||
|
|
e1cc416af0 | ||
|
|
38f3ce540a | ||
|
|
b25b7da807 | ||
|
|
125d4c61b7 | ||
|
|
0cec037ece | ||
|
|
d805da0ef1 | ||
|
|
cf148c70b0 | ||
|
|
b32338aba0 | ||
|
|
afb21a9997 | ||
|
|
eb5b37d6c0 | ||
|
|
fc121ce659 | ||
|
|
b5273f01dd | ||
|
|
385451bd5c | ||
|
|
f52af242aa | ||
|
|
ef47c44f50 | ||
|
|
bd58b13034 | ||
|
|
32daf5dbef | ||
|
|
a74aefea2c | ||
|
|
7301b37101 | ||
|
|
d9779bda42 | ||
|
|
5d55a0b242 | ||
|
|
6bca11e8d6 | ||
|
|
4b650b58a6 | ||
|
|
325a4df0a3 | ||
|
|
7fd0bc4df5 | ||
|
|
0519e2c13f | ||
|
|
c4254e957f | ||
|
|
8802a9b3d1 | ||
|
|
3a9e70c16b | ||
|
|
e2f429f144 | ||
|
|
8545a7eafc | ||
|
|
5cc0c0d3a1 | ||
|
|
08988b7d3d | ||
|
|
27de0e70fd | ||
|
|
72c04e843d | ||
|
|
6dba71ebcb | ||
|
|
02058598d4 | ||
|
|
be4e5f6967 | ||
|
|
fc98297639 | ||
|
|
425cb26a52 | ||
|
|
484d126a28 | ||
|
|
e55f7f714e | ||
|
|
3254133b45 | ||
|
|
02e1bdbfa7 | ||
|
|
a3459e847b | ||
|
|
501a675ab2 | ||
|
|
7894589578 | ||
|
|
4ee3225ebb | ||
|
|
cfa08cf05a | ||
|
|
2b6a100aee | ||
|
|
70a276acc3 | ||
|
|
42561520ea | ||
|
|
116826e77d | ||
|
|
66a55224a9 | ||
|
|
001c1508c8 | ||
|
|
57a483cf41 | ||
|
|
2a65626503 | ||
|
|
2211225438 | ||
|
|
0e95f1e57d | ||
|
|
7d1ca2ac60 | ||
|
|
6dc5431424 | ||
|
|
7eb30458c4 | ||
|
|
334573e372 | ||
|
|
0e7cee45c0 | ||
|
|
547657c34f | ||
|
|
6d837a6273 | ||
|
|
aa26724ca5 | ||
|
|
21b3f3b114 | ||
|
|
8294a5d9f6 | ||
|
|
1b03eed0e5 | ||
|
|
c4215bad1f | ||
|
|
0f4f543279 | ||
|
|
3ab4ba719a | ||
|
|
f3b1d6851d | ||
|
|
0afb968bad | ||
|
|
9fe54b2469 | ||
|
|
814986ce3e | ||
|
|
df3055aa6f | ||
|
|
d9a8aa054a | ||
|
|
8e1da2b644 | ||
|
|
a38723dd1e | ||
|
|
2e4aab8738 | ||
|
|
6c64bcc365 | ||
|
|
ad8c2e6cbf | ||
|
|
26ca309c2e | ||
|
|
22f39fc0dc | ||
|
|
5f3b50c779 | ||
|
|
98c8d080c1 | ||
|
|
470775b284 | ||
|
|
433c7cad67 | ||
|
|
11d617593f | ||
|
|
e463596fc9 | ||
|
|
27f0a73aa2 | ||
|
|
77a152c74b | ||
|
|
6f5abc6638 | ||
|
|
c2ac7e9df5 | ||
|
|
b9f17f8a41 | ||
|
|
6fe3bb36d6 | ||
|
|
ae6b44f55c | ||
|
|
81a54e64f7 | ||
|
|
a925b871a0 | ||
|
|
a24f7003ab |
@@ -1,3 +1,12 @@
|
||||
2008-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
PR 1324/bsps
|
||||
* aclocal/check-bsps.m4: Add missing icecube.
|
||||
|
||||
2008-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* bootstrap: Use find . ... preinstall.am for portability reasons.
|
||||
|
||||
2007-09-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* Makefile.maint: touch all documentation master files so the date on
|
||||
|
||||
@@ -25,7 +25,7 @@ AC_MSG_CHECKING([for available BSPs])
|
||||
bsps="$bsps mbx860_002"
|
||||
bsps="$bsps mbx860_005b"
|
||||
;;
|
||||
gen5200) bsps="pm520_cr825 pm520_ze30 brs5l";;
|
||||
gen5200) bsps="pm520_cr825 pm520_ze30 brs5l icecube";;
|
||||
gen83xx) bsps="mpc8349eamds hsc_cm01";;
|
||||
motorola_powerpc) bsps="mvme2307 mcp750 mtx603e mvme2100";;
|
||||
pc386) bsps="pc386 pc386dx pc486 pc586 pc686 pck6";;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AC_DEFUN([RTEMS_VERSIONING],
|
||||
m4_define([_RTEMS_VERSION],[4.7.99.2]))
|
||||
m4_define([_RTEMS_VERSION],[4.8.2]))
|
||||
|
||||
m4_define([RTEMS_API],[4.8])
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
2008-04-25 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* nfsclient/Changelog.slac, nfsclient/src/nfs.c:
|
||||
BUGFIX (PR#1284) -- possible memory corruption if
|
||||
server connectivity is lost.
|
||||
|
||||
2007-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* nfsclient/Makefile.am: Fix errors.
|
||||
|
||||
2007-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* nfsclient/Makefile.am, nfsclient/preinstall.am: Install libnfs.a.
|
||||
|
||||
2007-09-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* libchip/network/smc91111.h: Eliminate DEBUG_puts.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AC_DEFUN([RTEMS_VERSIONING],
|
||||
m4_define([_RTEMS_VERSION],[4.7.99.2]))
|
||||
m4_define([_RTEMS_VERSION],[4.8.2]))
|
||||
|
||||
m4_define([RTEMS_API],[4.8])
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
2007-11-27 Glenn Humphrey <glenn.humphrey@OARcorp.com>
|
||||
|
||||
* rtems.adb, rtems.ads: Fixed errors in the barrier binding.
|
||||
|
||||
2007-10-26 Glenn Humphrey <glenn.humphrey@OARcorp.com>
|
||||
|
||||
* rtems.adb, rtems.ads: Merge binding updates from CVS head. Bindings
|
||||
should now be reasonably in sync with C Classic API.
|
||||
|
||||
2007-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* rtems.adb: Fix warnings.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- rtems.adb,v 1.13.2.2 2003/09/04 18:46:47 joel Exp
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with Ada;
|
||||
@@ -215,6 +215,21 @@ package body RTEMS is
|
||||
-- RTEMS API
|
||||
--
|
||||
|
||||
--
|
||||
-- Initialization Manager -- Shutdown Only
|
||||
--
|
||||
procedure Shutdown_Executive (
|
||||
Status : in RTEMS.Unsigned32
|
||||
) is
|
||||
procedure Shutdown_Executive_Base (
|
||||
Status : RTEMS.Unsigned32
|
||||
);
|
||||
pragma Import (C, Shutdown_Executive_Base, "rtems_shutdown_executive");
|
||||
begin
|
||||
Shutdown_Executive_Base (Status);
|
||||
end Shutdown_Executive;
|
||||
|
||||
|
||||
--
|
||||
-- Task Manager
|
||||
--
|
||||
@@ -348,6 +363,20 @@ package body RTEMS is
|
||||
|
||||
end Task_Resume;
|
||||
|
||||
procedure Task_Is_Suspended (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Task_Is_Suspended_Base (
|
||||
ID : RTEMS.ID
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Task_Is_Suspended_Base, "rtems_task_is_suspended");
|
||||
begin
|
||||
|
||||
Result := Task_Is_Suspended_Base ( ID );
|
||||
|
||||
end Task_Is_Suspended;
|
||||
|
||||
procedure Task_Set_Priority (
|
||||
ID : in RTEMS.ID;
|
||||
New_Priority : in RTEMS.Task_Priority;
|
||||
@@ -434,6 +463,72 @@ package body RTEMS is
|
||||
|
||||
end Task_Set_Note;
|
||||
|
||||
procedure Task_Variable_Add (
|
||||
ID : in RTEMS.ID;
|
||||
Task_Variable : in RTEMS.Address;
|
||||
Dtor : in RTEMS.Task_Variable_Dtor;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Task_Variable_Add_Base (
|
||||
ID : RTEMS.ID;
|
||||
Task_Variable : RTEMS.Address;
|
||||
Dtor : RTEMS.Task_Variable_Dtor
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Task_Variable_Add_Base, "rtems_task_variable_add");
|
||||
begin
|
||||
|
||||
Result := Task_Variable_Add_Base ( ID, Task_Variable, Dtor );
|
||||
|
||||
end Task_Variable_Add;
|
||||
|
||||
procedure Task_Variable_Get (
|
||||
ID : in RTEMS.ID;
|
||||
Task_Variable : out RTEMS.Address;
|
||||
Task_Variable_Value : out RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Task_Variable_Get_Base (
|
||||
ID : RTEMS.ID;
|
||||
Task_Variable : access RTEMS.Address;
|
||||
Task_Variable_Value : access RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Task_Variable_Get_Base, "rtems_task_variable_get");
|
||||
Task_Variable_Base : aliased RTEMS.Address;
|
||||
Task_Variable_Value_Base : aliased RTEMS.Address;
|
||||
begin
|
||||
|
||||
Result := Task_Variable_Get_Base (
|
||||
ID,
|
||||
Task_Variable_Base'Unchecked_Access,
|
||||
Task_Variable_Value_Base'Unchecked_Access
|
||||
);
|
||||
Task_Variable := Task_Variable_Base;
|
||||
Task_Variable_Value := Task_Variable_Value_Base;
|
||||
|
||||
end Task_Variable_Get;
|
||||
|
||||
procedure Task_Variable_Delete (
|
||||
ID : in RTEMS.ID;
|
||||
Task_Variable : out RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Task_Variable_Delete_Base (
|
||||
ID : RTEMS.ID;
|
||||
Task_Variable : access RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (
|
||||
C, Task_Variable_Delete_Base, "rtems_task_variable_delete"
|
||||
);
|
||||
Task_Variable_Base : aliased RTEMS.Address;
|
||||
begin
|
||||
|
||||
Result := Task_Variable_Delete_Base (
|
||||
ID, Task_Variable_Base'Unchecked_Access
|
||||
);
|
||||
Task_Variable := Task_Variable_Base;
|
||||
|
||||
end Task_Variable_Delete;
|
||||
|
||||
procedure Task_Wake_When (
|
||||
Time_Buffer : in RTEMS.Time_Of_Day;
|
||||
Result : out RTEMS.Status_Codes
|
||||
@@ -466,30 +561,6 @@ package body RTEMS is
|
||||
-- Interrupt Manager
|
||||
--
|
||||
|
||||
procedure Interrupt_Catch (
|
||||
New_ISR_Handler : in RTEMS.Address;
|
||||
Vector : in RTEMS.Vector_Number;
|
||||
Old_ISR_Handler : out RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Interrupt_Catch_Base (
|
||||
New_ISR_Handler : RTEMS.Address;
|
||||
Vector : RTEMS.Vector_Number;
|
||||
Old_ISR_Handler : access RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Interrupt_Catch_Base, "rtems_interrupt_catch");
|
||||
Old_ISR_Handler_Base : aliased RTEMS.Address;
|
||||
begin
|
||||
|
||||
Result := Interrupt_Catch_Base (
|
||||
New_ISR_Handler,
|
||||
Vector,
|
||||
OLD_ISR_HANDLER_Base'Unchecked_Access
|
||||
);
|
||||
Old_ISR_Handler := OLD_ISR_HANDLER_Base;
|
||||
|
||||
end Interrupt_Catch;
|
||||
|
||||
-- Interrupt_Disable is interfaced in the specification
|
||||
-- Interrupt_Enable is interfaced in the specification
|
||||
-- Interrupt_Flash is interfaced in the specification
|
||||
@@ -499,35 +570,53 @@ package body RTEMS is
|
||||
-- Clock Manager
|
||||
--
|
||||
|
||||
procedure Clock_Set (
|
||||
Time_Buffer : in RTEMS.Time_Of_Day;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Clock_Set_Base (
|
||||
Time_Buffer : RTEMS.Time_Of_Day
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Clock_Set_Base, "rtems_clock_set");
|
||||
begin
|
||||
|
||||
Result := Clock_Set_Base ( Time_Buffer );
|
||||
|
||||
end Clock_Set;
|
||||
|
||||
procedure Clock_Get (
|
||||
Option : in RTEMS.Clock_Get_Options;
|
||||
Time_Buffer : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Clock_Get_base (
|
||||
function Clock_Get_Base (
|
||||
Option : RTEMS.Clock_Get_Options;
|
||||
Time_Buffer : RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Clock_Get_base, "rtems_clock_get");
|
||||
pragma Import (C, Clock_Get_Base, "rtems_clock_get");
|
||||
begin
|
||||
|
||||
Result := Clock_Get_base ( Option, Time_Buffer );
|
||||
Result := Clock_Get_Base ( Option, Time_Buffer );
|
||||
|
||||
end Clock_Get;
|
||||
|
||||
procedure Clock_Set (
|
||||
Time_Buffer : in RTEMS.Time_Of_Day;
|
||||
Result : out RTEMS.Status_Codes
|
||||
procedure Clock_Get_Uptime (
|
||||
Uptime : out RTEMS.Timespec;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Clock_Set_base (
|
||||
Time_Buffer : RTEMS.Time_Of_Day
|
||||
function Clock_Get_Uptime_Base (
|
||||
Uptime : access RTEMS.Timespec
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Clock_Set_base, "rtems_clock_set");
|
||||
pragma Import (C, Clock_Get_Uptime_Base, "rtems_clock_get_uptime");
|
||||
Uptime_Base : aliased RTEMS.Timespec;
|
||||
begin
|
||||
|
||||
Result := Clock_Set_base ( Time_Buffer );
|
||||
|
||||
end Clock_Set;
|
||||
Result := Clock_Get_Uptime_Base (
|
||||
Uptime_Base'Unchecked_Access
|
||||
);
|
||||
Uptime := Uptime_Base;
|
||||
|
||||
end Clock_Get_Uptime;
|
||||
|
||||
procedure Clock_Tick (
|
||||
Result : out RTEMS.Status_Codes
|
||||
@@ -539,7 +628,7 @@ package body RTEMS is
|
||||
Result := Clock_Tick_Base;
|
||||
|
||||
end Clock_Tick;
|
||||
|
||||
|
||||
--
|
||||
-- Extension Manager
|
||||
--
|
||||
@@ -890,6 +979,20 @@ package body RTEMS is
|
||||
|
||||
end Semaphore_Release;
|
||||
|
||||
procedure Semaphore_Flush (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Semaphore_Flush_Base (
|
||||
ID : RTEMS.ID
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Semaphore_Flush_Base, "rtems_semaphore_flush");
|
||||
begin
|
||||
|
||||
Result := Semaphore_Flush_Base ( ID );
|
||||
|
||||
end Semaphore_Flush;
|
||||
|
||||
--
|
||||
-- Message Queue Manager
|
||||
--
|
||||
@@ -1058,6 +1161,30 @@ package body RTEMS is
|
||||
|
||||
end Message_Queue_Receive;
|
||||
|
||||
procedure Message_Queue_Get_Number_Pending (
|
||||
ID : in RTEMS.ID;
|
||||
Count : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Message_Queue_Get_Number_Pending_Base (
|
||||
ID : RTEMS.ID;
|
||||
Count : access RTEMS.Unsigned32
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (
|
||||
C,
|
||||
Message_Queue_Get_Number_Pending_Base,
|
||||
"rtems_message_queue_get_number_pending"
|
||||
);
|
||||
COUNT_Base : aliased RTEMS.Unsigned32;
|
||||
begin
|
||||
|
||||
Result := Message_Queue_Get_Number_Pending_Base (
|
||||
ID, COUNT_Base'Unchecked_Access
|
||||
);
|
||||
Count := COUNT_Base;
|
||||
|
||||
end Message_Queue_Get_Number_Pending;
|
||||
|
||||
procedure Message_Queue_Flush (
|
||||
ID : in RTEMS.ID;
|
||||
Count : out RTEMS.Unsigned32;
|
||||
@@ -1426,6 +1553,34 @@ package body RTEMS is
|
||||
|
||||
end Region_Return_Segment;
|
||||
|
||||
procedure Region_Resize_Segment (
|
||||
ID : in RTEMS.ID;
|
||||
Segment : in RTEMS.Address;
|
||||
Size : in RTEMS.Unsigned32;
|
||||
Old_Size : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Region_Resize_Segment_Base (
|
||||
ID : RTEMS.ID;
|
||||
Segment : RTEMS.Address;
|
||||
Size : RTEMS.Unsigned32;
|
||||
Old_Size : access RTEMS.Unsigned32
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Region_Resize_Segment_Base,
|
||||
"rtems_region_resize_segment");
|
||||
Old_Size_Base : aliased RTEMS.Unsigned32;
|
||||
begin
|
||||
|
||||
Result := Region_Resize_Segment_Base (
|
||||
ID,
|
||||
Segment,
|
||||
Size,
|
||||
Old_Size_Base'Unchecked_Access
|
||||
);
|
||||
Old_Size := Old_Size_Base;
|
||||
|
||||
end Region_Resize_Segment;
|
||||
|
||||
--
|
||||
-- Dual Ported Memory Manager
|
||||
--
|
||||
@@ -1542,139 +1697,6 @@ package body RTEMS is
|
||||
|
||||
end Port_Internal_To_External;
|
||||
|
||||
--
|
||||
-- Input/Output Manager
|
||||
--
|
||||
|
||||
procedure IO_Register_Name (
|
||||
Name : in String;
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function IO_Register_Name_Base (
|
||||
Name : Interfaces.C.Char_Array;
|
||||
Major : RTEMS.Device_Major_Number;
|
||||
Minor : RTEMS.Device_Minor_Number
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, IO_Register_Name_Base, "rtems_io_register_name");
|
||||
begin
|
||||
|
||||
Result :=
|
||||
IO_Register_Name_Base ( Interfaces.C.To_C (Name), Major, Minor );
|
||||
|
||||
end IO_Register_Name;
|
||||
|
||||
procedure IO_Lookup_Name (
|
||||
Name : in String;
|
||||
Device_Info : in RTEMS.Driver_Name_t_Pointer;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function IO_Lookup_Name_Base (
|
||||
Name : Interfaces.C.Char_Array;
|
||||
Device_Info : access RTEMS.Driver_Name_t
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, IO_Lookup_Name_Base, "rtems_io_lookup_name");
|
||||
Device_Info_Base : aliased RTEMS.Driver_Name_t;
|
||||
begin
|
||||
|
||||
Result := IO_Lookup_Name_Base (
|
||||
Interfaces.C.To_C (Name),
|
||||
Device_Info_Base'Unchecked_Access
|
||||
);
|
||||
Device_Info.All := Device_Info_Base;
|
||||
|
||||
end IO_Lookup_Name;
|
||||
|
||||
procedure IO_Open (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function IO_Open_Base (
|
||||
Major : RTEMS.Device_Major_Number;
|
||||
Minor : RTEMS.Device_Minor_Number;
|
||||
Argument : RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, IO_Open_Base, "rtems_io_open");
|
||||
begin
|
||||
|
||||
Result := IO_Open_Base (Major, Minor, Argument);
|
||||
|
||||
end IO_Open;
|
||||
|
||||
procedure IO_Close (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function IO_Close_Base (
|
||||
Major : RTEMS.Device_Major_Number;
|
||||
Minor : RTEMS.Device_Minor_Number;
|
||||
Argument : RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, IO_Close_Base, "rtems_io_close");
|
||||
begin
|
||||
|
||||
Result := IO_Close_Base (Major, Minor, Argument);
|
||||
|
||||
end IO_Close;
|
||||
|
||||
procedure IO_Read (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function IO_Read_Base (
|
||||
Major : RTEMS.Device_Major_Number;
|
||||
Minor : RTEMS.Device_Minor_Number;
|
||||
Argument : RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, IO_Read_Base, "rtems_io_read");
|
||||
begin
|
||||
|
||||
Result := IO_Read_Base (Major, Minor, Argument);
|
||||
|
||||
end IO_Read;
|
||||
|
||||
procedure IO_Write (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function IO_Write_Base (
|
||||
Major : RTEMS.Device_Major_Number;
|
||||
Minor : RTEMS.Device_Minor_Number;
|
||||
Argument : RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, IO_Write_Base, "rtems_io_write");
|
||||
begin
|
||||
|
||||
Result := IO_Write_Base (Major, Minor, Argument);
|
||||
|
||||
end IO_Write;
|
||||
|
||||
procedure IO_Control (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function IO_Control_Base (
|
||||
Major : RTEMS.Device_Major_Number;
|
||||
Minor : RTEMS.Device_Minor_Number;
|
||||
Argument : RTEMS.Address
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, IO_Control_Base, "rtems_io_control");
|
||||
begin
|
||||
|
||||
Result := IO_Control_Base (Major, Minor, Argument);
|
||||
|
||||
end IO_Control;
|
||||
|
||||
--
|
||||
-- Fatal Error Manager
|
||||
@@ -1683,7 +1705,7 @@ package body RTEMS is
|
||||
procedure Fatal_Error_Occurred (
|
||||
The_Error : in RTEMS.Unsigned32
|
||||
) is
|
||||
procedure Fatal_Error_Occurred_base (
|
||||
procedure Fatal_Error_Occurred_Base (
|
||||
The_Error : RTEMS.Unsigned32
|
||||
);
|
||||
pragma Import (C, Fatal_Error_Occurred_Base, "rtems_fatal_error_occurred");
|
||||
@@ -1703,15 +1725,15 @@ package body RTEMS is
|
||||
ID : out RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Rate_Monotonic_Create_base (
|
||||
function Rate_Monotonic_Create_Base (
|
||||
Name : RTEMS.Name;
|
||||
ID : access RTEMS.ID
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Rate_Monotonic_Create_base, "rtems_rate_monotonic_create");
|
||||
pragma Import (C, Rate_Monotonic_Create_Base, "rtems_rate_monotonic_create");
|
||||
ID_Base : aliased RTEMS.ID;
|
||||
begin
|
||||
|
||||
Result := Rate_Monotonic_Create_base ( Name, ID_Base'Unchecked_Access );
|
||||
Result := Rate_Monotonic_Create_Base ( Name, ID_Base'Unchecked_Access );
|
||||
ID := ID_Base;
|
||||
|
||||
end Rate_Monotonic_Create;
|
||||
@@ -1746,7 +1768,7 @@ package body RTEMS is
|
||||
"rtems_rate_monotonic_delete");
|
||||
begin
|
||||
|
||||
Result := Rate_Monotonic_Delete_base ( ID );
|
||||
Result := Rate_Monotonic_Delete_Base ( ID );
|
||||
|
||||
end Rate_Monotonic_Delete;
|
||||
|
||||
@@ -1778,11 +1800,10 @@ package body RTEMS is
|
||||
"rtems_rate_monotonic_period");
|
||||
begin
|
||||
|
||||
Result := Rate_Monotonic_Period_base ( ID, Length );
|
||||
Result := Rate_Monotonic_Period_Base ( ID, Length );
|
||||
|
||||
end Rate_Monotonic_Period;
|
||||
|
||||
|
||||
procedure Rate_Monotonic_Get_Status (
|
||||
ID : in RTEMS.ID;
|
||||
Status : out RTEMS.Rate_Monotonic_Period_Status;
|
||||
@@ -1808,6 +1829,119 @@ package body RTEMS is
|
||||
|
||||
end Rate_Monotonic_Get_Status;
|
||||
|
||||
procedure Rate_Monotonic_Reset_Statistics (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Rate_Monotonic_Reset_Statistics_Base (
|
||||
ID : RTEMS.ID
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Rate_Monotonic_Reset_Statistics_Base,
|
||||
"rtems_rate_monotonic_reset_statistics");
|
||||
begin
|
||||
|
||||
Result := Rate_Monotonic_Reset_Statistics_Base ( ID );
|
||||
|
||||
end Rate_Monotonic_Reset_Statistics;
|
||||
|
||||
|
||||
--
|
||||
-- Barrier Manager
|
||||
--
|
||||
|
||||
procedure Barrier_Create (
|
||||
Name : in RTEMS.Name;
|
||||
Attribute_Set : in RTEMS.Attribute;
|
||||
Maximum_Waiters : in RTEMS.Unsigned32;
|
||||
ID : out RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Barrier_Create_Base (
|
||||
Name : RTEMS.Name;
|
||||
Attribute_Set : RTEMS.Attribute;
|
||||
Maximum_Waiters : RTEMS.Unsigned32;
|
||||
ID : access RTEMS.ID
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Barrier_Create_Base, "rtems_barrier_create");
|
||||
ID_Base : aliased RTEMS.ID;
|
||||
begin
|
||||
|
||||
Result := Barrier_Create_Base (
|
||||
Name,
|
||||
Attribute_Set,
|
||||
Maximum_Waiters,
|
||||
ID_Base'Unchecked_Access
|
||||
);
|
||||
ID := ID_Base;
|
||||
|
||||
end Barrier_Create;
|
||||
|
||||
procedure Barrier_Ident (
|
||||
Name : in RTEMS.Name;
|
||||
ID : out RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Barrier_Ident_Base (
|
||||
Name : RTEMS.Name;
|
||||
ID : access RTEMS.ID
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Barrier_Ident_Base, "rtems_barrier_ident");
|
||||
ID_Base : aliased RTEMS.ID;
|
||||
begin
|
||||
|
||||
Result := Barrier_Ident_Base ( Name, ID_Base'Unchecked_Access );
|
||||
ID := ID_Base;
|
||||
|
||||
end Barrier_Ident;
|
||||
|
||||
procedure Barrier_Delete (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Barrier_Delete_Base (
|
||||
ID : RTEMS.ID
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Barrier_Delete_Base, "rtems_barrier_delete");
|
||||
begin
|
||||
|
||||
Result := Barrier_Delete_Base ( ID );
|
||||
|
||||
end Barrier_Delete;
|
||||
|
||||
procedure Barrier_Wait (
|
||||
ID : in RTEMS.ID;
|
||||
Timeout : in RTEMS.Interval;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Barrier_Wait_Base (
|
||||
ID : RTEMS.ID;
|
||||
Timeout : RTEMS.Interval
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Barrier_Wait_Base, "rtems_barrier_wait");
|
||||
begin
|
||||
|
||||
Result := Barrier_Wait_Base ( ID, Timeout );
|
||||
|
||||
end Barrier_Wait;
|
||||
|
||||
procedure Barrier_Release (
|
||||
ID : in RTEMS.ID;
|
||||
Released : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
) is
|
||||
function Barrier_Release_Base (
|
||||
ID : RTEMS.ID
|
||||
Released : access RTEMS.Unsigned32
|
||||
) return RTEMS.Status_Codes;
|
||||
pragma Import (C, Barrier_Release_Base, "rtems_barrier_release");
|
||||
Released_Base : aliased RTEMS.Unsigned32;
|
||||
begin
|
||||
|
||||
Result := Barrier_Release_Base ( ID, Released_Base'Unchecked_Access );
|
||||
Released := Released_Base;
|
||||
|
||||
end Barrier_Release;
|
||||
|
||||
|
||||
--
|
||||
-- Debug Manager
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- rtems.ads,v 1.19.2.2 2003/11/25 14:07:32 joel Exp
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with System;
|
||||
@@ -77,6 +77,7 @@ pragma Elaborate_Body (RTEMS);
|
||||
True : constant RTEMS.Boolean := 1;
|
||||
False : constant RTEMS.Boolean := 0;
|
||||
|
||||
--
|
||||
-- More Types
|
||||
--
|
||||
|
||||
@@ -94,27 +95,24 @@ pragma Elaborate_Body (RTEMS);
|
||||
subtype Debug_Set is RTEMS.Unsigned32;
|
||||
subtype Device_Major_Number is RTEMS.Unsigned32;
|
||||
subtype Device_Minor_Number is RTEMS.Unsigned32;
|
||||
subtype Vector_Number is RTEMS.Unsigned32;
|
||||
subtype ISR_Level is RTEMS.Unsigned32;
|
||||
|
||||
subtype Node is RTEMS.Unsigned32;
|
||||
|
||||
--
|
||||
-- Task Related Types
|
||||
-- XXXX fix this
|
||||
--
|
||||
|
||||
subtype Task_Argument is RTEMS.Unsigned32;
|
||||
type Task_Argument_PTR is access all Task_Argument;
|
||||
|
||||
-- XXXX fix this
|
||||
subtype TCB is RTEMS.Unsigned32;
|
||||
type TCB_Pointer is access all RTEMS.TCB;
|
||||
|
||||
subtype Task_States is RTEMS.Unsigned32;
|
||||
|
||||
type Task_Entry is access procedure (
|
||||
Argument : RTEMS.Unsigned32
|
||||
);
|
||||
|
||||
subtype TCB is RTEMS.Unsigned32;
|
||||
type TCB_Pointer is access all RTEMS.TCB;
|
||||
|
||||
--
|
||||
-- Clock and Time of Day Types
|
||||
--
|
||||
@@ -140,45 +138,17 @@ pragma Elaborate_Body (RTEMS);
|
||||
Clock_Get_TOD,
|
||||
Clock_Get_Seconds_Since_Epoch,
|
||||
Clock_Get_Ticks_Since_Boot,
|
||||
Clock_Get_Ticks_Per_Seconds,
|
||||
Clock_Get_Ticks_Per_Second,
|
||||
Clock_Get_Time_Value
|
||||
);
|
||||
|
||||
--
|
||||
-- Device Driver Entry Prototype
|
||||
--
|
||||
type Time_T is new Interfaces.C.Long;
|
||||
|
||||
type Device_Driver_Entry is access function (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Major_Number;
|
||||
Argument : in RTEMS.Unsigned32;
|
||||
ID : in RTEMS.Unsigned32
|
||||
) return RTEMS.Unsigned32;
|
||||
|
||||
type Driver_Address_Table_Entry is
|
||||
record
|
||||
Initialization : RTEMS.Device_Driver_Entry;
|
||||
Open : RTEMS.Device_Driver_Entry;
|
||||
Close : RTEMS.Device_Driver_Entry;
|
||||
Read : RTEMS.Device_Driver_Entry;
|
||||
Write : RTEMS.Device_Driver_Entry;
|
||||
Control : RTEMS.Device_Driver_Entry;
|
||||
end record;
|
||||
|
||||
type Driver_Address_Table is array ( RTEMS.Unsigned32
|
||||
range 1 .. RTEMS.Unsigned32'Last ) of RTEMS.Driver_Address_Table_Entry;
|
||||
|
||||
type Driver_Address_Table_Pointer is access all Driver_Address_Table;
|
||||
|
||||
type Driver_Name_t is
|
||||
record
|
||||
Device_Name : RTEMS.Address;
|
||||
Device_Name_Length : RTEMS.Unsigned32;
|
||||
Major : RTEMS.Device_Major_Number;
|
||||
Minor : RTEMS.Device_Minor_Number;
|
||||
end record;
|
||||
|
||||
type Driver_Name_t_Pointer is access all Driver_Name_t;
|
||||
type Timespec is record
|
||||
TV_Sec : Time_T;
|
||||
TV_Nsec : Interfaces.C.Long;
|
||||
end record;
|
||||
pragma Convention (C, Timespec);
|
||||
|
||||
--
|
||||
-- Ident Options
|
||||
@@ -249,7 +219,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
Minimum_Stack_Size : RTEMS.Unsigned32;
|
||||
pragma Import (C, Minimum_Stack_Size, "rtems_minimum_stack_size");
|
||||
|
||||
|
||||
--
|
||||
-- Notepad index constants
|
||||
--
|
||||
@@ -282,15 +251,14 @@ pragma Elaborate_Body (RTEMS);
|
||||
Current_Priority : constant RTEMS.Task_Priority := 0;
|
||||
No_Priority : constant RTEMS.Task_Priority := 0;
|
||||
|
||||
|
||||
--
|
||||
-- Extension Callouts and Table
|
||||
--
|
||||
|
||||
type Thread_Create_Extension is access procedure (
|
||||
type Thread_Create_Extension is access function (
|
||||
Current_Task : in RTEMS.TCB_Pointer;
|
||||
New_Task : in RTEMS.TCB_Pointer
|
||||
);
|
||||
) return RTEMS.Boolean;
|
||||
|
||||
type Thread_Start_Extension is access procedure (
|
||||
Current_Task : in RTEMS.TCB_Pointer;
|
||||
@@ -386,6 +354,7 @@ pragma Elaborate_Body (RTEMS);
|
||||
|
||||
type Rate_Monotonic_Period_Status is
|
||||
record
|
||||
Owner : RTEMS.ID;
|
||||
State : RTEMS.Rate_Monotonic_Period_States;
|
||||
Ticks_Since_Last_Period : RTEMS.Unsigned32;
|
||||
Ticks_Executed_Since_Last_Period : RTEMS.Unsigned32;
|
||||
@@ -538,15 +507,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
Signal_30 : constant RTEMS.Signal_Set := 16#40000000#;
|
||||
Signal_31 : constant RTEMS.Signal_Set := 16#80000000#;
|
||||
|
||||
--
|
||||
-- For now, do not provide access to the CPU Table from Ada.
|
||||
-- When this type is provided, a CPU dependent file must
|
||||
-- define it.
|
||||
--
|
||||
|
||||
subtype CPU_Table is RTEMS.Address;
|
||||
type CPU_Table_Pointer is access all CPU_Table;
|
||||
|
||||
--
|
||||
-- Utility Functions
|
||||
--
|
||||
@@ -612,10 +572,19 @@ pragma Elaborate_Body (RTEMS);
|
||||
Left : in RTEMS.Address;
|
||||
Right : in RTEMS.Address
|
||||
) return Standard.Boolean;
|
||||
|
||||
|
||||
--
|
||||
-- RTEMS API
|
||||
--
|
||||
|
||||
--
|
||||
-- Initialization Manager -- Shutdown Only
|
||||
--
|
||||
procedure Shutdown_Executive (
|
||||
Status : in RTEMS.Unsigned32
|
||||
);
|
||||
|
||||
--
|
||||
-- Task Manager
|
||||
--
|
||||
@@ -665,6 +634,11 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Task_Is_Suspended (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Task_Set_Priority (
|
||||
ID : in RTEMS.ID;
|
||||
New_Priority : in RTEMS.Task_Priority;
|
||||
@@ -697,25 +671,25 @@ pragma Elaborate_Body (RTEMS);
|
||||
Argument : in RTEMS.Address
|
||||
);
|
||||
|
||||
-- procedure Task_Variable_Add (
|
||||
-- ID : in RTEMS.ID;
|
||||
-- Task_Variable : in RTEMS.Address;
|
||||
-- Dtor : in RTEMS.Task_Variable_Dtor;
|
||||
-- Result : out RTEMS.Status_Codes
|
||||
-- );
|
||||
procedure Task_Variable_Add (
|
||||
ID : in RTEMS.ID;
|
||||
Task_Variable : in RTEMS.Address;
|
||||
Dtor : in RTEMS.Task_Variable_Dtor;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
-- procedure Task_Variable_Get (
|
||||
-- ID : in RTEMS.ID;
|
||||
-- Task_Variable : out RTEMS.Address;
|
||||
-- Task_Variable_Value : out RTEMS.Address;
|
||||
-- Result : out RTEMS.Status_Codes
|
||||
-- );
|
||||
procedure Task_Variable_Get (
|
||||
ID : in RTEMS.ID;
|
||||
Task_Variable : out RTEMS.Address;
|
||||
Task_Variable_Value : out RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
-- procedure Task_Variable_Delete (
|
||||
-- ID : in RTEMS.ID;
|
||||
-- Task_Variable : out RTEMS.Address;
|
||||
-- Result : out RTEMS.Status_Codes
|
||||
-- );
|
||||
procedure Task_Variable_Delete (
|
||||
ID : in RTEMS.ID;
|
||||
Task_Variable : out RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Task_Wake_When (
|
||||
Time_Buffer : in RTEMS.Time_Of_Day;
|
||||
@@ -731,13 +705,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
-- Interrupt Manager
|
||||
--
|
||||
|
||||
procedure Interrupt_Catch (
|
||||
New_ISR_Handler : in RTEMS.Address;
|
||||
Vector : in RTEMS.Vector_Number;
|
||||
Old_ISR_Handler : out RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
function Interrupt_Disable return RTEMS.ISR_Level;
|
||||
pragma Interface (C, Interrupt_Disable);
|
||||
pragma Interface_Name (Interrupt_Disable, "rtems_interrupt_disable");
|
||||
@@ -763,15 +730,20 @@ pragma Elaborate_Body (RTEMS);
|
||||
-- Clock Manager
|
||||
--
|
||||
|
||||
procedure Clock_Set (
|
||||
Time_Buffer : in RTEMS.Time_Of_Day;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Clock_Get (
|
||||
Option : in RTEMS.Clock_Get_Options;
|
||||
Time_Buffer : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Clock_Set (
|
||||
Time_Buffer : in RTEMS.Time_Of_Day;
|
||||
Result : out RTEMS.Status_Codes
|
||||
procedure Clock_Get_Uptime (
|
||||
Uptime : out RTEMS.Timespec;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Clock_Tick (
|
||||
@@ -800,7 +772,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Timer Manager
|
||||
--
|
||||
@@ -908,6 +879,10 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Semaphore_Flush (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
--
|
||||
-- Message Queue Manager
|
||||
@@ -965,12 +940,17 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Message_Queue_Flush (
|
||||
procedure Message_Queue_Get_Number_Pending (
|
||||
ID : in RTEMS.ID;
|
||||
Count : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Message_Queue_Flush (
|
||||
ID : in RTEMS.ID;
|
||||
Count : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
--
|
||||
-- Event Manager
|
||||
@@ -1006,7 +986,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Partition Manager
|
||||
--
|
||||
@@ -1045,7 +1024,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Region Manager
|
||||
--
|
||||
@@ -1100,6 +1078,13 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Region_Resize_Segment (
|
||||
ID : in RTEMS.ID;
|
||||
Segment : in RTEMS.Address;
|
||||
Size : in RTEMS.Unsigned32;
|
||||
Old_Size : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
--
|
||||
-- Dual Ported Memory Manager
|
||||
@@ -1139,59 +1124,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
--
|
||||
-- Input/Output Manager
|
||||
--
|
||||
|
||||
procedure IO_Register_Name (
|
||||
Name : in String;
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure IO_Lookup_Name (
|
||||
Name : in String;
|
||||
Device_Info : In RTEMS.Driver_Name_t_Pointer;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure IO_Open (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure IO_Close (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure IO_Read (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure IO_Write (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure IO_Control (
|
||||
Major : in RTEMS.Device_Major_Number;
|
||||
Minor : in RTEMS.Device_Minor_Number;
|
||||
Argument : in RTEMS.Address;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Fatal Error Manager
|
||||
--
|
||||
@@ -1200,7 +1132,6 @@ pragma Elaborate_Body (RTEMS);
|
||||
The_Error : in RTEMS.Unsigned32
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Rate Monotonic Manager
|
||||
--
|
||||
@@ -1239,6 +1170,83 @@ pragma Elaborate_Body (RTEMS);
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Rate_Monotonic_Reset_Statistics (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Rate_Monotonic_Reset_All_Statistics;
|
||||
pragma Import (
|
||||
C,
|
||||
Rate_Monotonic_Reset_All_Statistics,
|
||||
"rtems_rate_monotonic_reset_all_statistics"
|
||||
);
|
||||
|
||||
procedure Rate_Monotonic_Report_Statistics;
|
||||
pragma Import (
|
||||
C,
|
||||
Rate_Monotonic_Report_Statistics,
|
||||
"rtems_rate_monotonic_report_statistics"
|
||||
);
|
||||
|
||||
--
|
||||
-- Barrier Manager
|
||||
--
|
||||
|
||||
procedure Barrier_Create (
|
||||
Name : in RTEMS.Name;
|
||||
Attribute_Set : in RTEMS.Attribute;
|
||||
Maximum_Waiters : in RTEMS.Unsigned32;
|
||||
ID : out RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Barrier_Ident (
|
||||
Name : in RTEMS.Name;
|
||||
ID : out RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Barrier_Delete (
|
||||
ID : in RTEMS.ID;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Barrier_Wait (
|
||||
ID : in RTEMS.ID;
|
||||
Timeout : in RTEMS.Interval;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
procedure Barrier_Release (
|
||||
ID : in RTEMS.ID;
|
||||
Released : out RTEMS.Unsigned32;
|
||||
Result : out RTEMS.Status_Codes
|
||||
);
|
||||
|
||||
--
|
||||
-- Stack Bounds Checker
|
||||
--
|
||||
|
||||
function Stack_Checker_Is_Blown return RTEMS.Boolean;
|
||||
pragma Interface (C, Stack_Checker_Is_Blown);
|
||||
pragma Interface_Name
|
||||
(Interrupt_Is_In_Progress, "rtems_stack_checker_is_blown");
|
||||
|
||||
procedure Stack_Checker_Report_Usage;
|
||||
pragma Import (
|
||||
C, Stack_Checker_Report_Usage, "rtems_stack_checker_report_usage"
|
||||
);
|
||||
|
||||
--
|
||||
-- CPU Usage Statistics
|
||||
--
|
||||
|
||||
procedure CPU_Usage_Report;
|
||||
pragma Import (C, CPU_Usage_Report, "rtems_cpu_usage_report");
|
||||
|
||||
procedure CPU_Usage_Reset;
|
||||
pragma Import (C, CPU_Usage_Reset, "rtems_cpu_usage_reset");
|
||||
|
||||
--
|
||||
-- Debug Manager
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2009-01-06 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1350/bsps
|
||||
* network/lan91c11x.c: Do not write 65th element into 64 element array.
|
||||
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -224,9 +224,6 @@ void lan91c11x_write_phy_reg(int reg, uint16_t phydata)
|
||||
mask >>= 1;
|
||||
}
|
||||
|
||||
/* Final clock bit */
|
||||
bits[clk_idx++] = 0;
|
||||
|
||||
/* Turn off all MII Interface bits */
|
||||
lan91c11x_write_reg(LAN91C11X_MGMT,
|
||||
lan91c11x_read_reg(LAN91C11X_MGMT) & 0xfff0);
|
||||
|
||||
@@ -143,7 +143,7 @@ SECTIONS
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.data1 : { *(.data1) } > sdram
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table*) } > sdram
|
||||
|
||||
.rodata :
|
||||
{
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -130,7 +130,7 @@ SECTIONS
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.data1 : { *(.data1) } > sdram
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table*) } > sdram
|
||||
|
||||
.rodata :
|
||||
{
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -142,7 +142,7 @@ SECTIONS
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.data1 : { *(.data1) } > sdram
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table*) } > sdram
|
||||
|
||||
.rodata :
|
||||
{
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -151,7 +151,7 @@ SECTIONS
|
||||
|
||||
.gcc_except_table :
|
||||
{
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
. = ALIGN(4);
|
||||
} =0xFF
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -170,7 +170,7 @@ SECTIONS
|
||||
|
||||
.gcc_except_table :
|
||||
{
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
} >sdram = 0
|
||||
_axf_ro_end = . ;
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2009-03-02 Ray Xu <rayx.cn@gmail.com>
|
||||
|
||||
PR 1380/bsps
|
||||
* include/bsp.h: Switch to English comments.
|
||||
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -30,12 +30,15 @@ extern "C" {
|
||||
/* cclk=cco/(2*P) */
|
||||
/* cco = cclk*2*P */
|
||||
|
||||
#define LPC22xx_Fcclk CONFIG_ARM_CLK /* system clk frequecy,<=60Mhz, defined in system configuration */
|
||||
/* system clk frequecy,<=60Mhz, defined in system configuration */
|
||||
#define LPC22xx_Fcclk CONFIG_ARM_CLK
|
||||
|
||||
/* Fcco 156M~320Mhz*/
|
||||
#define LPC22xx_Fcclk CONFIG_ARM_CLK /* system clk frequecy,<=60Mhz, defined in system configuration */
|
||||
/* system clk frequecy,<=60Mhz, defined in system configuration */
|
||||
#define LPC22xx_Fcclk CONFIG_ARM_CLK
|
||||
#define LPC22xx_Fcco LPC22xx_Fcclk * 4
|
||||
#define LPC22xx_Fpclk (LPC22xx_Fcclk /4) *1 /*VPB clk frequency,1,1/2,1/4 times of Fcclk */
|
||||
/*VPB clk frequency,1,1/2,1/4 times of Fcclk */
|
||||
#define LPC22xx_Fpclk (LPC22xx_Fcclk /4) *1
|
||||
|
||||
|
||||
|
||||
@@ -76,14 +79,15 @@ extern "C" {
|
||||
/**
|
||||
* help file
|
||||
*/
|
||||
/* ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>, Fosc<EFBFBD><EFBFBD>Fcclk<EFBFBD><EFBFBD>Fcco<EFBFBD><EFBFBD>Fpclk<EFBFBD><EFBFBD><EFBFBD>붨<EFBFBD><EFBFBD>*/
|
||||
#define Fosc 11059200 //<2F><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>,10MHz~25MHz<48><7A>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>һ<EFBFBD><D2BB>
|
||||
#define Fcclk (Fosc << 2) //ϵͳƵ<EFBFBD>ʣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪFosc<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(1~32)<29><><EFBFBD><EFBFBD><=60MHZ
|
||||
#define Fcco (Fcclk <<2) //CCOƵ<4F>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD>ΪFcclk<6C><6B>2<EFBFBD><32>4<EFBFBD><34>8<EFBFBD><38>16<31><36><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΧΪ156MHz~320MHz
|
||||
#define Fpclk (Fcclk >>2) * 1 //VPBʱ<42><CAB1>Ƶ<EFBFBD>ʣ<EFBFBD>ֻ<EFBFBD><D6BB>Ϊ(Fcclk / 4)<29><>1 ~ 4<><34>
|
||||
#define M Fcclk / Fosc;
|
||||
#define P_min Fcco_MIN / (2*Fcclk) + 1;
|
||||
#define P_max Fcco_MAX / (2*Fcclk);
|
||||
/* System configure, Fosc Fcclk Fcco Fpclk must be defined*/
|
||||
#define Fosc 11059200 // osc freq,10MHz~25MHz,
|
||||
// change to real one if needed
|
||||
#define Fcclk (Fosc << 2) //system freq 2^n time of Fosc(1~32) <=60MHZ
|
||||
#define Fcco (Fcclk <<2) //CCO freq 2,4,8,16 time of Fcclk 156MHz~320MHz
|
||||
#define Fpclk (Fcclk >>2) * 1 //VPB freq only(Fcclk / 4) 1~4
|
||||
#define M Fcclk / Fosc
|
||||
#define P_min Fcco_MIN / (2*Fcclk) + 1;
|
||||
#define P_max Fcco_MAX / (2*Fcclk);
|
||||
|
||||
|
||||
|
||||
@@ -106,20 +110,20 @@ extern "C" {
|
||||
#define SPI_CS_PIN_FUNC PINSEL0_bit.SPI_CS_PIN
|
||||
|
||||
// Flash definition
|
||||
//#define FLASH_SIZE (0x200000-FLASH_BOOT) // Total area of Flash region in words 8 bit
|
||||
#define FLASH_SIZE (0x80000-FLASH_BOOT) // Total area of Flash region in words 8 bit
|
||||
//#define FLASH_SIZE (0x80000-FLASH_BOOT) // Total area of Flash region in words 8 bit
|
||||
#define FLASH_BEGIN 0x80000000
|
||||
#define FLASH_BASE (FLASH_BEGIN+FLASH_BOOT) //First 0x8000 bytes reserved for boot loader etc.
|
||||
//#define FLASH_SIZE (0x200000-FLASH_BOOT) // Total area of Flash region in words 8 bit
|
||||
#define FLASH_SIZE (0x80000-FLASH_BOOT) // Total area of Flash region in words 8 bit
|
||||
//#define FLASH_SIZE (0x80000-FLASH_BOOT) // Total area of Flash region in words 8 bit
|
||||
#define FLASH_BEGIN 0x80000000
|
||||
#define FLASH_BASE (FLASH_BEGIN+FLASH_BOOT) //First 0x8000 bytes reserved for boot loader etc.
|
||||
|
||||
// SRAM definition
|
||||
#define SRAM_SIZE 0x100000 // Total area of Flash region in words 8 bit
|
||||
#define SRAM_BASE 0x81000000 //First 0x8000 bytes reserved for boot loader etc.
|
||||
#define SRAM_SIZE 0x100000 // Total area of Flash region in words 8 bit
|
||||
#define SRAM_BASE 0x81000000 //First 0x8000 bytes reserved for boot loader etc.
|
||||
|
||||
// CS8900A definition
|
||||
#define CS8900A_BASE 0x82000000 //
|
||||
#define CS8900A_BASE 0x82000000
|
||||
// RTL8019AS definition
|
||||
#define RTL8019AS_BASE 0x82000000 //
|
||||
#define RTL8019AS_BASE 0x82000000
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ SECTIONS
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.data1 : { *(.data1) } > sdram
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table*) } > sdram
|
||||
|
||||
.rodata :
|
||||
{
|
||||
|
||||
@@ -1,3 +1,29 @@
|
||||
2008-08-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* preinstall.am: Install cplb.h
|
||||
|
||||
2008-05-23 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* preinstall.am: Install cplb.h
|
||||
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2008-02-14 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* preinstall.am: Include cplb.h
|
||||
|
||||
2007-09-24 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* include/bsp.h: Do not use C++ comments.
|
||||
|
||||
2007-09-20 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* preinstall.am: Add cplb.h.
|
||||
* startup/bspstart.c: Add cast of constant.
|
||||
|
||||
2007-09-10 Alain Schaefer <alani@easc.ch>
|
||||
|
||||
* preinstall.am, startup/bspstart.c, startup/linkcmds: Complete earlier
|
||||
|
||||
@@ -72,8 +72,9 @@ extern "C" {
|
||||
#define FlashA_PortB_Dir 0x20270007L
|
||||
#define FlashA_PortB_Data 0x20270005L
|
||||
|
||||
// Blackfin environment memory map
|
||||
//
|
||||
/*
|
||||
* Blackfin environment memory map
|
||||
*/
|
||||
#define L1_DATA_SRAM_A 0xff800000L
|
||||
|
||||
#define FIFOLENGTH 0x100
|
||||
|
||||
@@ -260,8 +260,8 @@ void initCPLB() {
|
||||
unsigned int *addr;
|
||||
unsigned int *data;
|
||||
|
||||
addr = 0xffe00100;
|
||||
data = 0xffe00200;
|
||||
addr = (unsigned int *)0xffe00100;
|
||||
data = (unsigned int *)0xffe00200;
|
||||
|
||||
while ( dcplbs_table[i][0] != 0xffffffff ) {
|
||||
*addr = dcplbs_table[i][0];
|
||||
|
||||
@@ -80,7 +80,7 @@ SECTIONS
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.data1 : { *(.data1) } > sdram
|
||||
.eh_frame : { *(.eh_frame) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table) } > sdram
|
||||
.gcc_except_table : { *(.gcc_except_table*) } > sdram
|
||||
|
||||
.rodata :
|
||||
{
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
aclocal.m4
|
||||
autom4te*.cache
|
||||
config.cache
|
||||
config.guess
|
||||
config.log
|
||||
config.status
|
||||
config.sub
|
||||
configure
|
||||
depcomp
|
||||
install-sh
|
||||
Makefile
|
||||
Makefile.in
|
||||
missing
|
||||
mkinstalldirs
|
||||
@@ -1,128 +0,0 @@
|
||||
2007-04-17 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* c4xsim/tools/runtest.in: Do not run pppd.exe from batch mode script.
|
||||
|
||||
2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: New BUG-REPORT address.
|
||||
|
||||
2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.60. Require automake-1.10.
|
||||
|
||||
2005-10-16 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Merge-in shared/Makefile.am.
|
||||
* ChangeLog: Merge-in shared/ChangeLog.
|
||||
* configure.ac: Remove shared/Makefile.am.
|
||||
|
||||
2004-09-24 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require automake > 1.9.
|
||||
|
||||
2004-03-31 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* shared/bspspuriousinit.c: Convert to using c99 fixed size types.
|
||||
|
||||
2004-02-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: RTEMS_CHECK_BSPDIR([$RTEMS_BSP_FAMILY]).
|
||||
* acinclude.m4: Regenerate.
|
||||
|
||||
2004-01-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Use @RTEMS_BSP_FAMILY@ instead of
|
||||
$(RTEMS_BSP_FAMILY).
|
||||
|
||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Require automake >= 1.8, autoconf >= 2.59.
|
||||
|
||||
2003-12-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* shared/Makefile.am: Remove C_FILES (Unused).
|
||||
|
||||
2003-10-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* acinclude.m4: Reflect changes to bootstrap.
|
||||
* configure.ac: Remove RTEMS_CHECK_CUSTON_BSP.
|
||||
|
||||
2003-09-04 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* shared/bspspuriousinit.c, shared/c3xspurious.c,
|
||||
shared/c4xspurious.c: URL for license changed.
|
||||
|
||||
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect having moved aclocal/.
|
||||
|
||||
2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am, shared/Makefile.am: Reflect having moved automake/.
|
||||
|
||||
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Use rtems-bugs@rtems.com as bug report email
|
||||
address.
|
||||
|
||||
2003-03-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Remove AC_CONFIG_AUX_DIR.
|
||||
|
||||
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
|
||||
* configure.ac: AC_PREREQ(2.57).
|
||||
|
||||
2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Remove RTEMS_CHECK_BSP_CACHE.
|
||||
|
||||
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Reformat. Add autom4te*cache. Remove autom4te.cache.
|
||||
|
||||
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am, shared/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* configure.ac: AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.6]).
|
||||
|
||||
2002-01-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* shared/bspspuriousinit.c, shared/c3xspurious.c,
|
||||
shared/c4xspurious.c: Include rtems/bspIo.h instead of bspIo.h.
|
||||
|
||||
2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
|
||||
* configure.ac: New file, generated from configure.in by autoupdate.
|
||||
* configure.in: Remove.
|
||||
|
||||
2001-10-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* acinclude.m4: New file.
|
||||
* configure.in: Use RTEMS_BSP_SUBDIR.
|
||||
|
||||
2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS.
|
||||
|
||||
2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Switch to ACLOCAL_AMFLAGS = -I
|
||||
$(RTEMS_TOPdir)/aclocal.
|
||||
|
||||
2000-10-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros. Switch to
|
||||
GNU canonicalization.
|
||||
|
||||
2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Formatting.
|
||||
|
||||
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* ChangeLog, shared/ChangeLog: New file.
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
ACLOCAL_AMFLAGS = -I ../../../aclocal
|
||||
|
||||
## Descend into the @RTEMS_BSP_FAMILY@ directory
|
||||
SUBDIRS = @RTEMS_BSP_FAMILY@
|
||||
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST += shared/bspspuriousinit.c
|
||||
EXTRA_DIST += shared/c3xspurious.c
|
||||
EXTRA_DIST += shared/c4xspurious.c
|
||||
|
||||
include $(top_srcdir)/../../../automake/subdirs.am
|
||||
include $(top_srcdir)/../../../automake/local.am
|
||||
@@ -1,10 +0,0 @@
|
||||
# RTEMS_CHECK_BSPDIR(RTEMS_BSP_FAMILY)
|
||||
AC_DEFUN([RTEMS_CHECK_BSPDIR],
|
||||
[
|
||||
case "$1" in
|
||||
c4xsim )
|
||||
AC_CONFIG_SUBDIRS([c4xsim]);;
|
||||
*)
|
||||
AC_MSG_ERROR([Invalid BSP]);;
|
||||
esac
|
||||
])
|
||||
@@ -1,14 +0,0 @@
|
||||
aclocal.m4
|
||||
autom4te*.cache
|
||||
config.cache
|
||||
config.guess
|
||||
config.log
|
||||
config.status
|
||||
config.sub
|
||||
configure
|
||||
depcomp
|
||||
install-sh
|
||||
Makefile
|
||||
Makefile.in
|
||||
missing
|
||||
mkinstalldirs
|
||||
@@ -1,408 +0,0 @@
|
||||
2007-05-11 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* clock/clock.c: include <tic4x/c4xio.h>.
|
||||
|
||||
2007-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* bsp_specs: Remove qrtems_debug.
|
||||
|
||||
2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: New BUG-REPORT address.
|
||||
|
||||
2006-11-15 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* Makefile.am: Merge c_rtems_main() into boot_card(). This eliminated a
|
||||
file and simplified initialization.
|
||||
|
||||
2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Remove superfluous -DASM.
|
||||
|
||||
2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.60. Require automake-1.10.
|
||||
|
||||
2006-05-31 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* clock/clock.c: Switch to using shared clock driver shell.
|
||||
|
||||
2006-01-11 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Add preinstall.am.
|
||||
|
||||
2005-05-26 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* include/bsp.h: New header guard.
|
||||
|
||||
2005-02-02 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* include/tm27.h, timer/timer.c: #include <rtems/tic4x/c4xio.h>
|
||||
instead of <rtems/tic4x/c4xio.h>.
|
||||
|
||||
2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Eliminate CFLAGS_OPTIMIZE_V.
|
||||
|
||||
2005-01-02 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Remove build-variant support.
|
||||
|
||||
2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require automake > 1.9.
|
||||
|
||||
2004-04-23 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
PR 610/bsps
|
||||
* Makefile.am: Add include/tm27.h, Cosmetics.
|
||||
* include/tm27.h: Final cosmetics.
|
||||
|
||||
2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* include/bsp.h: Split out tmtest27 support.
|
||||
* include/tm27.h: New.
|
||||
|
||||
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
PR 613/bsps
|
||||
* include/bsp.h: Remove MAX_LONG_TEST_DURATION.
|
||||
|
||||
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
PR 614/bsps
|
||||
* include/bsp.h: Remove MAX_SHORT_TEST_DURATION (Unused).
|
||||
|
||||
2004-04-02 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* clock/clock.c, include/bsp.h, timer/timer.c: Include
|
||||
<rtems/c4x/c4xio.h> instead of <c4xio.h>.
|
||||
|
||||
2004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* include/bsp.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>.
|
||||
* include/bsp.h: Include <rtems/console.h> instead of <console.h>.
|
||||
* include/bsp.h: Include <rtems/iosupp.h> instead of <iosupp.h>.
|
||||
|
||||
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* clock/clock.c, include/bsp.h, startup/bspstart.c, timer/timer.c:
|
||||
Convert to using c99 fixed size types.
|
||||
|
||||
2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect changes to bsp.am.
|
||||
Preinstall dist_project_lib*.
|
||||
|
||||
2004-02-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect changes to bsp.am.
|
||||
|
||||
2004-02-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect changes to bsp.am.
|
||||
|
||||
2004-02-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Use CPPASCOMPILE instead of CCASCOMPILE.
|
||||
|
||||
2004-02-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Pickup files from ../../c4x/shared instead of
|
||||
../shared. Reformat.
|
||||
|
||||
2004-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Merge-in clock/Makefile.am, console/Makefile.am,
|
||||
start/Makefile.am, startup/Makefile.am, timer/Makefile.am,
|
||||
wrapup/Makefile.am.
|
||||
Use automake compilation rules.
|
||||
* clock/Makefile.am, console/Makefile.am, start/Makefile.am,
|
||||
startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am:
|
||||
Remove.
|
||||
* configure.ac: Reflect changes above.
|
||||
|
||||
2004-01-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Add nostdinc to AUTOMAKE_OPTIONS.
|
||||
Add RTEMS_PROG_CCAS.
|
||||
|
||||
2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Add PREINSTALL_DIRS.
|
||||
|
||||
2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
|
||||
Add PRE/TMPINSTALL_FILES to CLEANFILES.
|
||||
* start/Makefile.am: Ditto.
|
||||
* startup/Makefile.am: Ditto.
|
||||
|
||||
2004-01-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* wrapup/Makefile.am: Eliminate $(LIB).
|
||||
Use noinst_DATA to trigger building libbsp.a.
|
||||
|
||||
2003-12-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* start/Makefile.am: s,${PROJECT_RELEASE}/lib,$(PROJECT_LIB),g.
|
||||
* startup/Makefile.am: s,${PROJECT_RELEASE}/lib,$(PROJECT_LIB),g.
|
||||
|
||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* start/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
|
||||
* startup/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
|
||||
|
||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Require automake >= 1.8, autoconf >= 2.59.
|
||||
|
||||
2003-12-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* start/Makefile.am: Misc cleanups and fixes.
|
||||
* startup/Makefile.am: Misc cleanups and fixes.
|
||||
* wrapup/Makefile.am: Misc cleanups and fixes.
|
||||
|
||||
2003-12-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Add preinstallation dirstamp support.
|
||||
* clock/Makefile.am: Cosmetics.
|
||||
* console/Makefile.am: Cosmetics.
|
||||
* startup/Makefile.am: Cosmetics.
|
||||
* timer/Makefile.am: Cosmetics.
|
||||
* wrapup/Makefile.am: Cosmetics.
|
||||
|
||||
2003-12-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* clock/Makefile.am: Remove all-local: $(ARCH).
|
||||
* console/Makefile.am: Remove all-local: $(ARCH).
|
||||
* start/Makefile.am: Remove all-local: $(ARCH).
|
||||
* startup/Makefile.am: Remove all-local: $(ARCH).
|
||||
* timer/Makefile.am: Remove all-local: $(ARCH).
|
||||
* wrapup/Makefile.am: Remove all-local: $(ARCH).
|
||||
|
||||
2003-09-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Merge-in include/Makefile.am.
|
||||
Reflect changes to bsp.am.
|
||||
* include/Makefile.am: Remove.
|
||||
* configure.ac: Reflect changes above.
|
||||
|
||||
2003-09-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* bsp_specs: Remove *lib:.
|
||||
|
||||
2003-09-04 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* clock/clock.c, console/console.c, console/consolereserveresources.c,
|
||||
console/debugio.c, include/bsp.h, startup/bspstart.c,
|
||||
startup/spurious.c, timer/timer.c: URL for license changed.
|
||||
|
||||
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect having moved aclocal/.
|
||||
|
||||
2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect having moved automake/.
|
||||
* clock/Makefile.am: Reflect having moved automake/.
|
||||
* console/Makefile.am: Reflect having moved automake/.
|
||||
* include/Makefile.am: Reflect having moved automake/.
|
||||
* start/Makefile.am: Reflect having moved automake/.
|
||||
* startup/Makefile.am: Reflect having moved automake/.
|
||||
* timer/Makefile.am: Reflect having moved automake/.
|
||||
* wrapup/Makefile.am: Reflect having moved automake/.
|
||||
|
||||
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
PR 452/bsps
|
||||
* startup/Makefile.am: Remove USE_INIT_FINI.
|
||||
|
||||
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.
|
||||
|
||||
2003-08-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
PR 445/bsps
|
||||
* bsp_specs: Remove -D__embedded__ -Asystem(embedded) from cpp.
|
||||
Remove cpp, old_cpp (now unused).
|
||||
|
||||
2003-03-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Remove AC_CONFIG_AUX_DIR.
|
||||
|
||||
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
|
||||
|
||||
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: AC_PREREQ(2.57).
|
||||
|
||||
2003-01-20 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add FreeBSD SYSCTL() sections for networking.
|
||||
|
||||
2002-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* clock/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* console/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* start/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* startup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* timer/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
|
||||
2002-12-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* clock/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* console/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* start/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* startup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
* timer/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
|
||||
2002-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* start/Makefile.am: Use install-data-local to install startfile.
|
||||
|
||||
2002-12-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* wrapup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
||||
|
||||
2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Remove RTEMS_OUTPUT_BUILD_SUBDIRS. Cosmetical
|
||||
changes.
|
||||
|
||||
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Reformat.
|
||||
Add autom4te*cache.
|
||||
Remove autom4te.cache.
|
||||
|
||||
2002-09-14 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* clock/clock.c: Per PR257, remove reference to c3x_set_ie.
|
||||
c4x variant should use c4x_set_iie().
|
||||
|
||||
2002-08-21 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* bsp_specs: Added support for -nostdlibs.
|
||||
|
||||
2002-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* clock/Makefile.am: Use .$(OBJEXT) instead of .o.
|
||||
* console/Makefile.am: Use .$(OBJEXT) instead of .o.
|
||||
* start/Makefile.am: Use .$(OBJEXT) instead of .o.
|
||||
* startup/Makefile.am: Use .$(OBJEXT) instead of .o.
|
||||
* timer/Makefile.am: Use .$(OBJEXT) instead of .o.
|
||||
* wrapup/Makefile.am: Use .$(OBJEXT) instead of .o.
|
||||
|
||||
2002-07-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* start/Makefile.am: Eliminate PGM.
|
||||
Add bsplib_DATA = $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o.
|
||||
|
||||
2002-07-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* startup/Makefile.am: Add bsplib_DATA = linkcmds.
|
||||
|
||||
2002-07-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* wrapup/Makefile.am: Eliminate TMPINSTALL_FILES.
|
||||
Remove $(OBJS) from all-local.
|
||||
|
||||
2002-06-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* wrapup/Makefile.am: Remove preinstallation of libbsp.a,
|
||||
|
||||
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac:
|
||||
AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.6]).
|
||||
* clock/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* console/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* include/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* start/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* startup/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* timer/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
* wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
|
||||
2002-01-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* startup/bspstart.c: Include rtems/bspIo.h instead of bspIo.h.
|
||||
* startup/spurious.c: Include rtems/bspIo.h instead of bspIo.h.
|
||||
|
||||
2001-12-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* bsp_specs: Replace -lrtemsall with -lrtemsbsp -lrtemscpu,
|
||||
replace -lrtemsall_g with -lrtemsbsp_g -lrtemscpu_g.
|
||||
|
||||
2001-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Introduce RTEMS_BSP_CONFIGURE.
|
||||
|
||||
2001-10-12 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* console/console.c: Fixed typo.
|
||||
2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
|
||||
* configure.in: Remove.
|
||||
* configure.ac: New file, generated from configure.in by autoupdate.
|
||||
|
||||
2001-09-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* include/Makefile.am: Use 'CLEANFILES ='.
|
||||
* include/Makefile.am: Use 'PREINSTALL_FILES ='.
|
||||
|
||||
2001-05-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.in: Add bspopts.h, fix PACKAGE.
|
||||
* include/.cvsignore: Add bspopts.h*, stamp-h*.
|
||||
* include/Makefile.am: Use *_HEADERS instead of *H_FILES.
|
||||
* include/bsp.h: Include bspopts.h.
|
||||
|
||||
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]).
|
||||
|
||||
2000-12-06 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* console/consolereserveresources.c: Removed code NOT file (YET).
|
||||
|
||||
2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS.
|
||||
|
||||
2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal.
|
||||
|
||||
2000-11-01 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: assoc.h, error.h, libio_.h, libio.h,
|
||||
and libcsupport.h moved from libc to lib/include/rtems and
|
||||
now must be referenced as <rtems/XXX.h>. Header file order
|
||||
was cleaned up while doing this.
|
||||
|
||||
2000-10-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.in, Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros.
|
||||
Switch to GNU canonicalization.
|
||||
|
||||
2000-09-22 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Use default object format to avoid name
|
||||
changes in object format due to tool version changes.
|
||||
|
||||
2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* clock/Makefile.am, console/Makefile.am, start/Makefile.am,
|
||||
startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am:
|
||||
Include compile.am
|
||||
|
||||
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* ChangeLog: New file.
|
||||
@@ -1,67 +0,0 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
ACLOCAL_AMFLAGS = -I ../../../../aclocal
|
||||
|
||||
# wrapup is the one that actually builds and installs the library
|
||||
# from the individual .rel files built in other directories
|
||||
SUBDIRS = . tools
|
||||
|
||||
include $(top_srcdir)/../../../../automake/compile.am
|
||||
include $(top_srcdir)/../../bsp.am
|
||||
|
||||
dist_project_lib_DATA = bsp_specs
|
||||
|
||||
include_HEADERS = include/bsp.h
|
||||
include_HEADERS += include/tm27.h
|
||||
|
||||
nodist_include_HEADERS = include/bspopts.h
|
||||
DISTCLEANFILES = include/bspopts.h
|
||||
|
||||
noinst_PROGRAMS =
|
||||
|
||||
include_HEADERS += include/simio.h
|
||||
nodist_include_HEADERS += ../../shared/include/coverhd.h
|
||||
|
||||
EXTRA_DIST = start/start.S
|
||||
start.$(OBJEXT): start/start.S
|
||||
$(CPPASCOMPILE) -o $@ -c $<
|
||||
project_lib_DATA = start.$(OBJEXT)
|
||||
|
||||
dist_project_lib_DATA += startup/linkcmds
|
||||
|
||||
noinst_PROGRAMS += startup.rel
|
||||
startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c startup/bspstart.c \
|
||||
../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../c4x/shared/c3xspurious.c ../../c4x/shared/c4xspurious.c \
|
||||
../../c4x/shared/bspspuriousinit.c startup/spurious.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||
|
||||
noinst_PROGRAMS += console.rel
|
||||
console_rel_SOURCES = console/consolereserveresources.c console/debugio.c \
|
||||
console/simio.c ../../shared/console.c
|
||||
console_rel_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||
|
||||
noinst_PROGRAMS += clock.rel
|
||||
clock_rel_SOURCES = clock/clock.c
|
||||
clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||
|
||||
noinst_PROGRAMS += timer.rel
|
||||
timer_rel_SOURCES = timer/timer.c
|
||||
timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libbsp.a
|
||||
libbsp_a_SOURCES =
|
||||
libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel
|
||||
|
||||
EXTRA_DIST += times
|
||||
|
||||
include $(srcdir)/preinstall.am
|
||||
include $(top_srcdir)/../../../../automake/local.am
|
||||
@@ -1,46 +0,0 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
BSP NAME: c4xsim
|
||||
BOARD: Simulator in GDB
|
||||
BUS: N/A
|
||||
CPU FAMILY: C3X/C4X
|
||||
CPU: C32 and others
|
||||
COPROCESSORS: N/A
|
||||
MODE: 32 bit mode
|
||||
|
||||
DEBUG MONITOR: gdb simulator
|
||||
|
||||
PERIPHERALS
|
||||
===========
|
||||
TIMERS: Internal Timer
|
||||
RESOLUTION: ???
|
||||
SERIAL PORTS: simulated via
|
||||
REAL-TIME CLOCK: ???
|
||||
DMA: none
|
||||
VIDEO: none
|
||||
SCSI: none
|
||||
NETWORKING: none
|
||||
|
||||
DRIVER INFORMATION
|
||||
==================
|
||||
CLOCK DRIVER: ???
|
||||
IOSUPP DRIVER: N/A
|
||||
SHMSUPP: N/A
|
||||
TIMER DRIVER: ???
|
||||
TTY DRIVER: ???
|
||||
|
||||
STDIO
|
||||
=====
|
||||
PORT: Console port 0
|
||||
ELECTRICAL: na
|
||||
BAUD: na
|
||||
BITS PER CHARACTER: na
|
||||
PARITY: na
|
||||
STOP BITS: na
|
||||
|
||||
Notes
|
||||
=====
|
||||
|
||||
NONE
|
||||
@@ -1,11 +0,0 @@
|
||||
%rename endfile old_endfile
|
||||
%rename startfile old_startfile
|
||||
%rename link old_link
|
||||
|
||||
*startfile:
|
||||
%{!qrtems: %(old_startfile)} \
|
||||
%{!nostdlib: %{qrtems: start.o%s}}
|
||||
|
||||
*link:
|
||||
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/* ckinit.c
|
||||
*
|
||||
* This file provides a template for the clock device driver initialization.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <bsp.h>
|
||||
#include <rtems/tic4x/c4xio.h>
|
||||
|
||||
|
||||
#define CLOCK_VECTOR 9
|
||||
|
||||
#define Clock_driver_support_at_tick()
|
||||
|
||||
#define Clock_driver_support_install_isr( _new, _old ) \
|
||||
do { _old = 0; } while(0)
|
||||
|
||||
void Clock_driver_support_initialize_hardware()
|
||||
{
|
||||
extern int _ClockFrequency;
|
||||
uint32_t Clock_counter_register_value;
|
||||
float tmp;
|
||||
int tmpi;
|
||||
|
||||
tmpi = ((int) &_ClockFrequency) * 1000000; /* ClockFrequency is in Mhz */
|
||||
tmp = (float) tmpi / 2.0;
|
||||
tmp = ((float) BSP_Configuration.microseconds_per_tick / 1000000.0) * (tmp);
|
||||
|
||||
Clock_counter_register_value = (unsigned int) tmp;
|
||||
#if 0
|
||||
Clock_counter_register_value =
|
||||
(uint32_t) ((float) BSP_Configuration.microseconds_per_tick /
|
||||
((float)_ClockFrequency / 2.0)));
|
||||
#endif
|
||||
c4x_timer_stop( C4X_TIMER_0 );
|
||||
c4x_timer_set_counter( C4X_TIMER_0, 0 );
|
||||
c4x_timer_set_period( C4X_TIMER_0, Clock_counter_register_value );
|
||||
c4x_timer_start( C4X_TIMER_0 );
|
||||
|
||||
#if defined(_C4x)
|
||||
c4x_set_iee( c4x_get_iie() | 0x1 ); /* should be ETINT0 */
|
||||
#else
|
||||
c3x_set_ie( c3x_get_ie() | 0x100 );
|
||||
#endif
|
||||
|
||||
Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
|
||||
}
|
||||
|
||||
#define Clock_driver_support_shutdown_hardware()
|
||||
|
||||
#include "../../../shared/clockdrv_shell.c"
|
||||
@@ -1,22 +0,0 @@
|
||||
## Process this file with autoconf to produce a configure script.
|
||||
##
|
||||
## $Id$
|
||||
|
||||
AC_PREREQ(2.60)
|
||||
AC_INIT([rtems-c-src-lib-libbsp-c4x-c4xsim],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
|
||||
AC_CONFIG_SRCDIR([bsp_specs])
|
||||
RTEMS_TOP(../../../../../..)
|
||||
|
||||
RTEMS_CANONICAL_TARGET_CPU
|
||||
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10])
|
||||
RTEMS_BSP_CONFIGURE
|
||||
|
||||
RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
|
||||
RTEMS_CANONICALIZE_TOOLS
|
||||
RTEMS_PROG_CCAS
|
||||
|
||||
RTEMS_CONFIG_BUILD_SUBDIRS(tools)
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
@@ -1,153 +0,0 @@
|
||||
/*
|
||||
* This file contains the hardware specific portions of the TTY driver
|
||||
* for the serial ports on the erc32.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1997.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <simio.h>
|
||||
|
||||
/*
|
||||
* console_outbyte_polled
|
||||
*
|
||||
* This routine transmits a character using polling.
|
||||
*/
|
||||
|
||||
void console_outbyte_polled(
|
||||
int port,
|
||||
char ch
|
||||
);
|
||||
|
||||
/*
|
||||
* console_inbyte_nonblocking
|
||||
*
|
||||
* This routine polls for a character.
|
||||
*/
|
||||
|
||||
int console_inbyte_nonblocking(
|
||||
int port
|
||||
);
|
||||
|
||||
/*
|
||||
* Console Termios Support Entry Points
|
||||
*
|
||||
*/
|
||||
|
||||
int console_write_support (
|
||||
int minor,
|
||||
const char *bufarg,
|
||||
int len
|
||||
)
|
||||
{
|
||||
int nwrite = 0;
|
||||
const char *buf = bufarg;
|
||||
|
||||
while (nwrite < len) {
|
||||
if ( *buf )
|
||||
console_outbyte_polled( minor, *buf & 0x7f );
|
||||
buf++;
|
||||
nwrite++;
|
||||
}
|
||||
return nwrite;
|
||||
}
|
||||
|
||||
/*
|
||||
* Console Device Driver Entry Points
|
||||
*
|
||||
*/
|
||||
|
||||
rtems_device_driver console_initialize(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
|
||||
rtems_termios_initialize();
|
||||
|
||||
/*
|
||||
* Register Device Names
|
||||
*/
|
||||
|
||||
status = rtems_io_register_name( "/dev/console", major, 0 );
|
||||
if (status != RTEMS_SUCCESSFUL)
|
||||
rtems_fatal_error_occurred(status);
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
rtems_device_driver console_open(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void * arg
|
||||
)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
static const rtems_termios_callbacks pollCallbacks = {
|
||||
NULL, /* firstOpen */
|
||||
NULL, /* lastClose */
|
||||
console_inbyte_nonblocking, /* pollRead */
|
||||
console_write_support, /* write */
|
||||
NULL, /* setAttributes */
|
||||
NULL, /* stopRemoteTx */
|
||||
NULL, /* startRemoteTx */
|
||||
0 /* outputUsesInterrupts */
|
||||
};
|
||||
|
||||
assert( minor <= 1 );
|
||||
if ( minor > 2 )
|
||||
return RTEMS_INVALID_NUMBER;
|
||||
|
||||
sc = rtems_termios_open (major, minor, arg, &pollCallbacks );
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
rtems_device_driver console_close(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void * arg
|
||||
)
|
||||
{
|
||||
return rtems_termios_close (arg);
|
||||
}
|
||||
|
||||
rtems_device_driver console_read(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void * arg
|
||||
)
|
||||
{
|
||||
return rtems_termios_read (arg);
|
||||
}
|
||||
|
||||
rtems_device_driver console_write(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void * arg
|
||||
)
|
||||
{
|
||||
return rtems_termios_write (arg);
|
||||
}
|
||||
|
||||
rtems_device_driver console_control(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void * arg
|
||||
)
|
||||
{
|
||||
return rtems_termios_ioctl (arg);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
/*
|
||||
* This file contains the TTY driver for the serial ports on the erc32.
|
||||
*
|
||||
* This driver uses the termios pseudo driver.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* This file contains the TTY driver for the serial ports on the erc32.
|
||||
*
|
||||
* This driver uses the termios pseudo driver.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <simio.h>
|
||||
|
||||
/*
|
||||
* console_outbyte_polled
|
||||
*
|
||||
* This routine transmits a character using polling.
|
||||
*/
|
||||
|
||||
void console_outbyte_polled(
|
||||
int port,
|
||||
char ch
|
||||
)
|
||||
{
|
||||
char out[2];
|
||||
out[0] = ch;
|
||||
out[1] = 0;
|
||||
sim_write(1, out, 1);
|
||||
}
|
||||
|
||||
C4X_BSP_output_char( int c )
|
||||
{
|
||||
console_outbyte_polled( 0, (char) c );
|
||||
}
|
||||
|
||||
/*
|
||||
* console_inbyte_nonblocking
|
||||
*
|
||||
* This routine polls for a character.
|
||||
*/
|
||||
|
||||
int console_inbyte_nonblocking( int port )
|
||||
{
|
||||
char c;
|
||||
sim_read(1, &c, 1);
|
||||
return c;
|
||||
}
|
||||
@@ -1,308 +0,0 @@
|
||||
/*
|
||||
* C4x simulator IO interface routines based on code provided
|
||||
* by Herman ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define SIM_OPEN (0xf0)
|
||||
#define SIM_CLOSE (0xf1)
|
||||
#define SIM_READ (0xf2)
|
||||
#define SIM_WRITE (0xf3)
|
||||
#define SIM_LSEEK (0xf4)
|
||||
#define SIM_UNLINK (0xf5)
|
||||
#define SIM_GETENV (0xf6)
|
||||
#define SIM_RENAME (0xf7)
|
||||
#define SIM_GETTIME (0xf8)
|
||||
#define SIM_GETCLOCK (0xf9)
|
||||
|
||||
typedef union _io {
|
||||
struct _open {
|
||||
int fd : 16;
|
||||
int flags : 16;
|
||||
} open;
|
||||
struct _openr {
|
||||
int result : 16;
|
||||
} openr;
|
||||
struct _close {
|
||||
int fd : 16;
|
||||
} close;
|
||||
struct _closer {
|
||||
int result : 16;
|
||||
} closer;
|
||||
struct _read {
|
||||
int fd : 16;
|
||||
int count : 16;
|
||||
} read;
|
||||
struct _readr {
|
||||
int result : 16;
|
||||
} readr;
|
||||
struct _write {
|
||||
int fd : 16;
|
||||
int count : 16;
|
||||
} write;
|
||||
struct _writer {
|
||||
int result : 16;
|
||||
} writer;
|
||||
struct _lseek {
|
||||
int fd : 16;
|
||||
int offsetlow : 16;
|
||||
int offsethigh : 16;
|
||||
int orgin : 16;
|
||||
} lseek;
|
||||
struct _lseekr {
|
||||
int result;
|
||||
} lseekr;
|
||||
struct _unlinkr {
|
||||
int result : 16;
|
||||
} unlinkr;
|
||||
struct _renamer {
|
||||
int result : 16;
|
||||
} renamer;
|
||||
struct _getenvr {
|
||||
int result : 16;
|
||||
} getenvr;
|
||||
struct _gettimer {
|
||||
int result;
|
||||
} gettimer;
|
||||
struct _getclockr {
|
||||
int result;
|
||||
} getclockr;
|
||||
struct _common {
|
||||
int word1;
|
||||
int word2;
|
||||
} common;
|
||||
} io;
|
||||
|
||||
static void to_sim(int command, io *param, char *data, int length);
|
||||
static void call_sim(void);
|
||||
static void from_sim(io *param, char *data);
|
||||
|
||||
void sim_exit(void)
|
||||
{
|
||||
__asm__(" .global C$$EXIT");
|
||||
__asm__("C$$EXIT: nop");
|
||||
__asm__("nop");
|
||||
}
|
||||
|
||||
int sim_open(const char *path, unsigned flags, int fno)
|
||||
{
|
||||
io param;
|
||||
|
||||
param.open.fd = fno;
|
||||
param.open.flags = flags;
|
||||
to_sim(SIM_OPEN,¶m,(char *)path,strlen(path)+1);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.openr.result;
|
||||
}
|
||||
|
||||
int sim_close(int fno)
|
||||
{
|
||||
io param;
|
||||
|
||||
param.close.fd = fno;
|
||||
to_sim(SIM_CLOSE,¶m,NULL,0);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.closer.result;
|
||||
}
|
||||
|
||||
int sim_read(int fno, char *buf, unsigned count)
|
||||
{
|
||||
io param;
|
||||
|
||||
param.read.fd = fno;
|
||||
param.read.count = count;
|
||||
to_sim(SIM_READ,¶m,NULL,0);
|
||||
call_sim();
|
||||
from_sim(¶m, buf);
|
||||
return param.readr.result;
|
||||
}
|
||||
|
||||
int sim_write(int fno, const char *buf, unsigned count)
|
||||
{
|
||||
io param;
|
||||
|
||||
param.write.fd = fno;
|
||||
param.write.count = count;
|
||||
to_sim(SIM_WRITE,¶m,(char *)buf,count);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.writer.result;
|
||||
}
|
||||
|
||||
fpos_t sim_lseek(int fno, fpos_t offset, int origin)
|
||||
{
|
||||
io param;
|
||||
|
||||
param.lseek.fd = fno;
|
||||
param.lseek.offsetlow = offset & 0xffff;
|
||||
param.lseek.offsethigh = offset >> 16;
|
||||
to_sim(SIM_LSEEK,¶m,NULL,0);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.lseekr.result;
|
||||
}
|
||||
|
||||
int sim_unlink(const char *path)
|
||||
{
|
||||
io param;
|
||||
|
||||
to_sim(SIM_UNLINK,NULL,(char *)path,strlen(path)+1);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.unlinkr.result;
|
||||
}
|
||||
|
||||
int sim_rename(const char *old, const char *new)
|
||||
{
|
||||
int l;
|
||||
static char combined[200];
|
||||
io param;
|
||||
|
||||
strcpy(combined,old);
|
||||
l = strlen(old)+1;
|
||||
strcpy(combined+l,new);
|
||||
l += strlen(new) + 1;
|
||||
to_sim(SIM_RENAME,NULL,combined,l);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.renamer.result;
|
||||
}
|
||||
|
||||
char *sim_getenv(const char *str)
|
||||
{
|
||||
io param;
|
||||
static char result[200];
|
||||
|
||||
to_sim(SIM_GETENV,NULL,(char *)str,strlen(str)+1);
|
||||
call_sim();
|
||||
from_sim(¶m, result);
|
||||
return param.getenvr.result ? result : NULL;
|
||||
}
|
||||
|
||||
int sim_gettime(void)
|
||||
{
|
||||
io param;
|
||||
|
||||
to_sim(SIM_GETTIME,NULL,NULL,0);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.gettimer.result;
|
||||
}
|
||||
|
||||
int sim_getclock(void)
|
||||
{
|
||||
io param;
|
||||
|
||||
to_sim(SIM_GETCLOCK,NULL,NULL,0);
|
||||
call_sim();
|
||||
from_sim(¶m, NULL);
|
||||
return param.getclockr.result;
|
||||
}
|
||||
|
||||
int _CIOBUF_[BUFSIZ+32];
|
||||
|
||||
static void to_sim(int command, io *param, char *data, int length)
|
||||
{
|
||||
int i;
|
||||
int n;
|
||||
int v;
|
||||
int *ip = &_CIOBUF_[0];
|
||||
|
||||
*ip++ = length;
|
||||
*ip++ = command;
|
||||
if (param) {
|
||||
*ip++ = param->common.word1;
|
||||
*ip++ = param->common.word2;
|
||||
}
|
||||
else {
|
||||
*ip++ = 0;
|
||||
*ip++ = 0;
|
||||
}
|
||||
n = length & ~3;
|
||||
for (i = 0 ; i < n ; i += 4) {
|
||||
v = *data++ & 0xff;
|
||||
v |= (*data++ & 0xff) << 8;
|
||||
v |= (*data++ & 0xff) << 16;
|
||||
v |= (*data++ & 0xff) << 24;
|
||||
*ip++ = v;
|
||||
}
|
||||
v = 0;
|
||||
for ( ; i < length ; i++) {
|
||||
v |= (*data++ & 0xff) << ((i & 3) << 3);
|
||||
}
|
||||
*ip = v;
|
||||
}
|
||||
|
||||
static void call_sim(void)
|
||||
{
|
||||
__asm__(" .global C$$IO$$");
|
||||
__asm__("C$$IO$$: nop");
|
||||
}
|
||||
|
||||
static void from_sim(io *param, char *data)
|
||||
{
|
||||
int i;
|
||||
int l;
|
||||
int n;
|
||||
int v;
|
||||
int *ip = &_CIOBUF_[0];
|
||||
|
||||
l = *ip++;
|
||||
param->common.word1 = *ip++;
|
||||
param->common.word2 = *ip++;
|
||||
if (data != NULL) {
|
||||
n = l & ~3;
|
||||
for (i = 0 ; i < n ; i += 4) {
|
||||
v = *ip++;
|
||||
*data++ = v & 0xff;
|
||||
*data++ = (v >> 8) & 0xff;
|
||||
*data++ = (v >> 16) & 0xff;
|
||||
*data++ = (v >> 24) & 0xff;
|
||||
}
|
||||
v = *ip;
|
||||
for (; i < l ; i++) {
|
||||
*data++ = v >> ((i & 3) << 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
#include <fcntl.h>
|
||||
sim_io_test()
|
||||
{
|
||||
sim_write(1, "howdy\n", 6);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Debug junk
|
||||
*/
|
||||
#if 0
|
||||
void printk_wrapper(void)
|
||||
{
|
||||
__asm__(" .global _printf");
|
||||
__asm__("_printf: bu _printk");
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
#ifdef _HAVE_STDC
|
||||
#include <stdarg.h>
|
||||
#else
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
|
||||
int __svfscanf(
|
||||
register FILE *fp,
|
||||
char const *fmt0,
|
||||
va_list ap
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
@@ -1,4 +0,0 @@
|
||||
bspopts.h
|
||||
bspopts.h.in
|
||||
stamp-h
|
||||
stamp-h.in
|
||||
@@ -1,79 +0,0 @@
|
||||
/* bsp.h
|
||||
*
|
||||
* This include file contains all C4X Simulator IO definitions.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _BSP_H
|
||||
#define _BSP_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#ifdef ASM
|
||||
|
||||
#else
|
||||
#include <rtems.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <rtems/console.h>
|
||||
#include <rtems/iosupp.h>
|
||||
|
||||
/* Constants */
|
||||
|
||||
/*
|
||||
* Device Driver Table Entries
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE: Use the standard Console driver entry
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE: Use the standard Clock driver entry
|
||||
*/
|
||||
|
||||
/*
|
||||
* Information placed in the linkcmds file.
|
||||
*/
|
||||
|
||||
/* functions */
|
||||
|
||||
void bsp_start( void );
|
||||
|
||||
void bsp_cleanup( void );
|
||||
|
||||
rtems_isr_entry set_vector( /* returns old vector */
|
||||
rtems_isr_entry handler, /* isr routine */
|
||||
rtems_vector_number vector, /* vector number */
|
||||
int type /* RTEMS or RAW intr */
|
||||
);
|
||||
|
||||
void BSP_fatal_return( void );
|
||||
|
||||
void bsp_spurious_initialize( void );
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
|
||||
|
||||
extern rtems_cpu_table Cpu_table; /* owned by BSP */
|
||||
|
||||
extern uint32_t bsp_isr_level;
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
* C4x simulator IO interface routines based on code provided
|
||||
* by Herman ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __C4X_SIMIO_IFACE_h
|
||||
#define __C4X_SIMIO_IFACE_h
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void sim_exit(void);
|
||||
int sim_open(const char *path, int flags, int fno);
|
||||
int sim_close(int fno);
|
||||
int sim_read(int fno, char *buf, unsigned count);
|
||||
int sim_write(int fno, const char *buf, unsigned count);
|
||||
fpos_t sim_lseek(int fno, fpos_t offset, int origin);
|
||||
int sim_unlink(const char *path);
|
||||
int sim_rename(const char *old, const char *new);
|
||||
char *sim_getenv(const char *str);
|
||||
int sim_gettime(void);
|
||||
int sim_getclock(void);
|
||||
|
||||
#endif
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* tm27.h
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _RTEMS_TMTEST27
|
||||
#error "This is an RTEMS internal file you must not include directly."
|
||||
#endif
|
||||
|
||||
#ifndef __tm27_h
|
||||
#define __tm27_h
|
||||
|
||||
/*
|
||||
* Stuff for Time Test 27
|
||||
*/
|
||||
|
||||
#include <rtems/tic4x/c4xio.h>
|
||||
#define MUST_WAIT_FOR_INTERRUPT 0
|
||||
|
||||
/* XXX */
|
||||
#define Install_tm27_vector( _handler ) \
|
||||
set_vector( (_handler), 0x20, 1 )
|
||||
|
||||
#define Cause_tm27_intr() \
|
||||
do { \
|
||||
__asm__ volatile ( "trapu 0" ); \
|
||||
} while (0)
|
||||
|
||||
#define Clear_tm27_intr() \
|
||||
do { \
|
||||
; \
|
||||
} while (0)
|
||||
|
||||
#define Lower_tm27_intr() \
|
||||
do { \
|
||||
c4x_global_interrupts_enable(); \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
@@ -1,62 +0,0 @@
|
||||
## Automatically generated by ampolish3 - Do not edit
|
||||
|
||||
if AMPOLISH3
|
||||
$(srcdir)/preinstall.am: Makefile.am
|
||||
$(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am
|
||||
endif
|
||||
|
||||
PREINSTALL_DIRS =
|
||||
DISTCLEANFILES += $(PREINSTALL_DIRS)
|
||||
|
||||
all-local: $(TMPINSTALL_FILES)
|
||||
|
||||
TMPINSTALL_FILES =
|
||||
CLEANFILES = $(TMPINSTALL_FILES)
|
||||
|
||||
all-am: $(PREINSTALL_FILES)
|
||||
|
||||
PREINSTALL_FILES =
|
||||
CLEANFILES += $(PREINSTALL_FILES)
|
||||
|
||||
$(PROJECT_LIB)/$(dirstamp):
|
||||
@$(MKDIR_P) $(PROJECT_LIB)
|
||||
@: > $(PROJECT_LIB)/$(dirstamp)
|
||||
PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
|
||||
|
||||
$(PROJECT_INCLUDE)/$(dirstamp):
|
||||
@$(MKDIR_P) $(PROJECT_INCLUDE)
|
||||
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
|
||||
$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
|
||||
PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
|
||||
|
||||
$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
|
||||
|
||||
$(PROJECT_INCLUDE)/simio.h: include/simio.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/simio.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/simio.h
|
||||
|
||||
$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
|
||||
|
||||
$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
|
||||
TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
|
||||
|
||||
$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
|
||||
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* This start.S is a combination of the files boot.s and crt0.s
|
||||
* provided by Herman ...XXX
|
||||
*/
|
||||
|
||||
; .file "crt0.s"
|
||||
.ref _c_int00
|
||||
.global start
|
||||
.global _start
|
||||
|
||||
.if .tms320C40
|
||||
|
||||
.sect ".const"
|
||||
mem_control:
|
||||
.word 000100000h
|
||||
mem_data:
|
||||
.word 03ef78050h
|
||||
|
||||
.text
|
||||
start:
|
||||
_start:
|
||||
ldi 0800h,st
|
||||
ldp @mem_control
|
||||
ldi @mem_control,ar0
|
||||
ldp @mem_data
|
||||
ldi @mem_data,r0
|
||||
sti r0,*+ar0(0)
|
||||
sti r0,*+ar0(4)
|
||||
br _c_int00
|
||||
|
||||
.else
|
||||
|
||||
.sect ".const"
|
||||
mem_control:
|
||||
.word 000808000h
|
||||
mem_data:
|
||||
.word 000001f00h
|
||||
|
||||
.text
|
||||
start:
|
||||
_start:
|
||||
ldi 0800h,st
|
||||
ldp @mem_control
|
||||
ldi @mem_control,ar0
|
||||
ldp @mem_data
|
||||
ldi @mem_data,r0
|
||||
sti r0,*+ar0(0)
|
||||
sti r0,*+ar0(4)
|
||||
br _c_int00
|
||||
|
||||
.endif
|
||||
; .file "boot.s"
|
||||
.global __stack
|
||||
.global _c_int00
|
||||
.ref .bss
|
||||
.ref _boot_card
|
||||
.ref _exit
|
||||
|
||||
__stack: .usect ".stack",0
|
||||
.text
|
||||
stack_addr: .word __stack
|
||||
|
||||
_c_int00:
|
||||
ldp stack_addr
|
||||
ldi @stack_addr,sp
|
||||
ldi sp,ar3
|
||||
ldp .bss ; For the small model, set up the DP to .bss
|
||||
ldi 0,ar2 ; make sure argc=0 with regparm
|
||||
push ar2 ; and memparm
|
||||
call _boot_card
|
||||
call _sim_exit
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* This set of routines starts the application. It includes application,
|
||||
* board, and monitor specific initialization and configuration.
|
||||
* The generic CPU dependent initialization has been performed
|
||||
* before any of these are invoked.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
/*
|
||||
* The original table from the application and our copy of it with
|
||||
* some changes.
|
||||
*/
|
||||
|
||||
extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
rtems_cpu_table Cpu_table;
|
||||
|
||||
/*
|
||||
* Use the shared implementations of the following routines
|
||||
*/
|
||||
|
||||
void bsp_postdriver_hook(void);
|
||||
void bsp_libc_init( void *, uint32_t, int );
|
||||
extern void bsp_spurious_initialize();
|
||||
|
||||
/*
|
||||
* bsp_pretasking_hook
|
||||
*
|
||||
* BSP pretasking hook. Called just before drivers are initialized.
|
||||
* Used to setup libc and install any BSP extensions.
|
||||
*/
|
||||
|
||||
void bsp_pretasking_hook(void)
|
||||
{
|
||||
extern void *_HeapStart;
|
||||
extern uint32_t _HeapSize;
|
||||
|
||||
bsp_libc_init(&_HeapStart, (unsigned int) &_HeapSize, 0);
|
||||
|
||||
#ifdef RTEMS_DEBUG
|
||||
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
|
||||
#endif
|
||||
|
||||
bsp_spurious_initialize();
|
||||
}
|
||||
|
||||
/*
|
||||
* bsp_start
|
||||
*
|
||||
* This routine does the bulk of the system initialization.
|
||||
*/
|
||||
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
BSP_output_char_function_type BSP_output_char;
|
||||
BSP_polling_getchar_function_type BSP_poll_char;
|
||||
extern void C4X_BSP_output_char(char c);
|
||||
|
||||
void bsp_start( void )
|
||||
{
|
||||
extern void *_WorkspaceBase;
|
||||
extern uint32_t _WorkspaceMax;
|
||||
/*
|
||||
* Set up our hooks
|
||||
* Make sure libc_init is done before drivers initialized so that
|
||||
* they can use atexit()
|
||||
*/
|
||||
|
||||
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
|
||||
Cpu_table.postdriver_hook = bsp_postdriver_hook;
|
||||
|
||||
/*
|
||||
* SIS does zero out memory BUT only when IT begins execution. Thus
|
||||
* if we want to have a clean slate in the workspace each time we
|
||||
* begin execution of OUR application, then we must zero the workspace.
|
||||
*/
|
||||
Cpu_table.do_zero_of_workspace = FALSE;
|
||||
|
||||
/*
|
||||
* This should be enough interrupt stack.
|
||||
*/
|
||||
|
||||
Cpu_table.interrupt_stack_size = 0;
|
||||
|
||||
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
|
||||
/* XXX check to see if satisfying small memory model */
|
||||
|
||||
if ( BSP_Configuration.work_space_size > (int) &_WorkspaceMax )
|
||||
rtems_fatal_error_occurred( 0x43218765 );
|
||||
|
||||
BSP_output_char = C4X_BSP_output_char;
|
||||
BSP_poll_char = (BSP_polling_getchar_function_type) NULL;
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
/* OUTPUT_FORMAT("coff-c4x") */
|
||||
__SYSMEM_SIZE = DEFINED(__SYSMEM_SIZE) ? __SYSMEM_SIZE : 0x4000;
|
||||
__STACK_SIZE = DEFINED(__STACK_SIZE) ? __STACK_SIZE : 0x1000;
|
||||
__HeapSize = DEFINED(__HeapSize) ? __HeapSize : 0x10000;
|
||||
__WorkspaceMax = DEFINED(__WorkspaceMax) ? __WorkspaceMax : 256K;
|
||||
__ClockFrequency = DEFINED(_ClockFrequency) ? _ClockFrequency : 50;
|
||||
ENTRY(_start)
|
||||
SECTIONS
|
||||
{
|
||||
.vectors : {
|
||||
. += 4 * 64;
|
||||
}
|
||||
.text 0x200 : {
|
||||
*(.text)
|
||||
|
||||
/*
|
||||
* Special FreeBSD sysctl sections.
|
||||
*/
|
||||
. = ALIGN (16);
|
||||
__start_set_sysctl_set = .;
|
||||
*(set_sysctl_*);
|
||||
__stop_set_sysctl_set = ABSOLUTE(.);
|
||||
*(set_domain_*);
|
||||
*(set_pseudo_*);
|
||||
|
||||
___CTOR_LIST__ = .;
|
||||
LONG(___CTOR_END__ - ___CTOR_LIST__ - 2)
|
||||
*(.ctors)
|
||||
LONG(0);
|
||||
___CTOR_END__ = .;
|
||||
___DTOR_LIST__ = .;
|
||||
LONG(___DTOR_END__ - ___DTOR_LIST__ - 2)
|
||||
*(.dtors)
|
||||
LONG(0)
|
||||
___DTOR_END__ = .;
|
||||
}
|
||||
.init : { *(.init) }
|
||||
.fini : { *(.fini) }
|
||||
.const :
|
||||
{
|
||||
*(.const)
|
||||
}
|
||||
.cinit :
|
||||
{
|
||||
*(.cinit)
|
||||
}
|
||||
.data :
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
.comms : {
|
||||
*(.comms)
|
||||
}
|
||||
.bss : {
|
||||
|
||||
.bss = .;
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
}
|
||||
.stack :
|
||||
{
|
||||
*(.stack)
|
||||
. = . + __STACK_SIZE;
|
||||
}
|
||||
.heap :
|
||||
{
|
||||
__HeapStart = .;
|
||||
. += __HeapSize;
|
||||
__WorkspaceBase = .;
|
||||
. += __WorkspaceMax;
|
||||
}
|
||||
/*
|
||||
.sysmem :
|
||||
{
|
||||
*(.sysmem)
|
||||
}
|
||||
*/
|
||||
.stab 0 :
|
||||
{
|
||||
[ .stab ]
|
||||
}
|
||||
.stabstr 0 :
|
||||
{
|
||||
[ .stabstr ]
|
||||
}
|
||||
/* The TI tools sets cinit to -1 if the ram model is used. */
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
/*
|
||||
* CXX Simulator Spurious Trap Handler Assistant
|
||||
*
|
||||
* This is just enough of a trap handler to let us know what
|
||||
* the likely source of the trap was.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/bspIo.h>
|
||||
#include <simio.h>
|
||||
|
||||
/*
|
||||
* bsp_spurious_handler_assistant
|
||||
*
|
||||
* We can't recover so just return to gdb.
|
||||
*/
|
||||
|
||||
void bsp_spurious_handler_assistant(
|
||||
rtems_vector_number vector,
|
||||
CPU_Interrupt_frame *isf
|
||||
)
|
||||
{
|
||||
sim_exit();
|
||||
}
|
||||
@@ -1,115 +0,0 @@
|
||||
/* timer.c
|
||||
*
|
||||
* This file manages the benchmark timer used by the RTEMS Timing Test
|
||||
* Suite. Each measured time period is demarcated by calls to
|
||||
* Timer_initialize() and Read_timer(). Read_timer() usually returns
|
||||
* the number of microseconds since Timer_initialize() exitted.
|
||||
*
|
||||
* NOTE: It is important that the timer start/stop overhead be
|
||||
* determined when porting or modifying this code.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <bsp.h>
|
||||
#include <rtems/tic4x/c4xio.h>
|
||||
|
||||
uint32_t Timer_interrupts;
|
||||
rtems_boolean Timer_driver_Find_average_overhead;
|
||||
|
||||
static uint32_t start;
|
||||
|
||||
void Timer_initialize( void )
|
||||
{
|
||||
|
||||
/*
|
||||
* Timer has never overflowed. This may not be necessary on some
|
||||
* implemenations of timer but ....
|
||||
*/
|
||||
|
||||
c4x_timer_stop(C4X_TIMER_0);
|
||||
c4x_timer_set_period(C4X_TIMER_0, 0xffffffff); /* so no interupts */
|
||||
c4x_timer_start(C4X_TIMER_0);
|
||||
start = c4x_timer_get_counter(C4X_TIMER_0);
|
||||
|
||||
Timer_interrupts = 0;
|
||||
|
||||
/*
|
||||
* Somehow start the timer
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* The following controls the behavior of Read_timer().
|
||||
*
|
||||
* AVG_OVEREHAD is the overhead for starting and stopping the timer. It
|
||||
* is usually deducted from the number returned.
|
||||
*
|
||||
* LEAST_VALID is the lowest number this routine should trust. Numbers
|
||||
* below this are "noise" and zero is returned.
|
||||
*/
|
||||
|
||||
#define AVG_OVERHEAD 0 /* It typically takes X.X microseconds */
|
||||
/* (Y countdowns) to start/stop the timer. */
|
||||
/* This value is in microseconds. */
|
||||
#define LEAST_VALID 1 /* Don't trust a clicks value lower than this */
|
||||
|
||||
int Read_timer( void )
|
||||
{
|
||||
uint32_t clicks;
|
||||
uint32_t total;
|
||||
int tmp;
|
||||
|
||||
/*
|
||||
* Read the timer and see how many clicks it has been since we started.
|
||||
*/
|
||||
|
||||
clicks = c4x_timer_get_counter(C4X_TIMER_0);
|
||||
clicks -= start;
|
||||
|
||||
/*
|
||||
* Total is calculated by taking into account the number of timer overflow
|
||||
* interrupts since the timer was initialized and clicks since the last
|
||||
* interrupts.
|
||||
*/
|
||||
|
||||
total = clicks * 1;
|
||||
|
||||
if ( Timer_driver_Find_average_overhead == 1 ) {
|
||||
return total; /* in count units where each count is */
|
||||
/* 1 / (clock frequency/2) */
|
||||
} else {
|
||||
if ( total < LEAST_VALID )
|
||||
return 0; /* below timer resolution */
|
||||
/*
|
||||
* Somehow convert total into microseconds
|
||||
*/
|
||||
tmp = (int) ((float) total * ((1.0 / 25.0)));
|
||||
return (tmp - AVG_OVERHEAD);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Empty function call used in loops to measure basic cost of looping
|
||||
* in Timing Test Suite.
|
||||
*/
|
||||
|
||||
rtems_status_code Empty_function( void )
|
||||
{
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
void Set_find_average_overhead(
|
||||
rtems_boolean find_flag
|
||||
)
|
||||
{
|
||||
Timer_driver_Find_average_overhead = find_flag;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
aclocal.m4
|
||||
autom4te*.cache
|
||||
configure
|
||||
Makefile
|
||||
Makefile.in
|
||||
@@ -1,97 +0,0 @@
|
||||
2007-09-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* runtest.in: Add capture to list of interative tests to skip in batch
|
||||
mode.
|
||||
|
||||
2007-01-26 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Use MKDIR_P instead of mkdir_p.
|
||||
|
||||
2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: New BUG-REPORT address.
|
||||
|
||||
2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.60. Require automake-1.10.
|
||||
|
||||
2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require automake > 1.9.
|
||||
|
||||
2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
|
||||
Add PRE/TMPINSTALL_FILES to CLEANFILES.
|
||||
|
||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reworked.
|
||||
|
||||
2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Require automake >= 1.8, autoconf >= 2.59.
|
||||
|
||||
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect having moved aclocal/.
|
||||
|
||||
2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect having moved automake/.
|
||||
|
||||
2003-08-14 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* runtest.in: Add fileio to list of interactive tests.
|
||||
|
||||
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.
|
||||
|
||||
2003-03-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: Remove AC_CONFIG_AUX_DIR.
|
||||
|
||||
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
|
||||
|
||||
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac: AC_PREREQ(2.57).
|
||||
|
||||
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Reformat.
|
||||
Add autom4te*cache.
|
||||
Remove autom4te.cache.
|
||||
|
||||
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.ac:
|
||||
AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.6]).
|
||||
* Makefile.am: Remove AUTOMAKE_OPTIONS.
|
||||
|
||||
2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
|
||||
* configure.in: Remove.
|
||||
* configure.ac: New file, generated from configure.in by autoupdate.
|
||||
|
||||
2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS.
|
||||
|
||||
2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal.
|
||||
|
||||
2000-10-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros.
|
||||
Switch to GNU canonicalization.
|
||||
|
||||
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* ChangeLog: New file.
|
||||
@@ -1,26 +0,0 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
ACLOCAL_AMFLAGS = -I ../../../../../aclocal
|
||||
|
||||
transform =
|
||||
bsptools_bindir = ${exec_prefix}/@RTEMS_BSP@/tests
|
||||
bsptools_bin_SCRIPTS = runtest
|
||||
|
||||
all-local: $(TMPINSTALL_FILES)
|
||||
|
||||
TMPINSTALL_FILES =
|
||||
|
||||
$(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp):
|
||||
@$(MKDIR_P) $(PROJECT_ROOT)/@RTEMS_BSP@/tests
|
||||
@: > $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
|
||||
TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
|
||||
|
||||
$(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest: runtest $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
|
||||
$(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest
|
||||
TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest
|
||||
|
||||
CLEANFILES = $(TMPINSTALL_FILES)
|
||||
|
||||
include $(top_srcdir)/../../../../../automake/local.am
|
||||
@@ -1,24 +0,0 @@
|
||||
## Process this file with autoconf to produce a configure script.
|
||||
##
|
||||
## $Id$
|
||||
|
||||
AC_PREREQ(2.60)
|
||||
AC_INIT([rtems-c-src-lib-libbsp-c4x-c4xsim-tools],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
|
||||
AC_CONFIG_SRCDIR([runtest.in])
|
||||
RTEMS_TOP(../../../../../../..)
|
||||
|
||||
RTEMS_CANONICAL_TARGET_CPU
|
||||
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.10])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
RTEMS_PATH_KSH
|
||||
RTEMS_ENV_RTEMSBSP
|
||||
|
||||
RTEMS_PROJECT_ROOT
|
||||
RTEMS_TOOLPATHS
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
AC_CONFIG_FILES([Makefile
|
||||
runtest])
|
||||
AC_OUTPUT
|
||||
@@ -1,331 +0,0 @@
|
||||
#!@KSH@ -p
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# Run rtems tests on the c4x simulator built into gdb
|
||||
# This program generates a simulator script to run each test
|
||||
# Typically the test is then run, although it can be generated
|
||||
# and left as a file using -s
|
||||
#
|
||||
|
||||
# progname=`basename $0`
|
||||
progname=${0##*/} # fast basename hack for ksh, bash
|
||||
|
||||
USAGE=\
|
||||
"usage: $progname [ -opts ] test [ test ... ]
|
||||
-o options -- specify options to be passed to simulator
|
||||
-v -- verbose
|
||||
-s -- generate script file (as 'test'.ss) and exit
|
||||
-l logdir -- specify log directory (default is 'logdir')
|
||||
|
||||
Specify test as 'test' or 'test.exe'.
|
||||
All multiprocessing tests *must* be specified simply as 'mp01', etc.
|
||||
"
|
||||
|
||||
# export everything
|
||||
set -a
|
||||
|
||||
# log an error to stderr
|
||||
prerr()
|
||||
{
|
||||
echo "$*" >&2
|
||||
}
|
||||
|
||||
fatal() {
|
||||
[ "$1" ] && prerr $*
|
||||
prerr "$USAGE"
|
||||
exit 1
|
||||
}
|
||||
|
||||
warn() {
|
||||
[ "$1" ] && prerr $*
|
||||
}
|
||||
|
||||
# print args, 1 per line
|
||||
ml_echo()
|
||||
{
|
||||
for l
|
||||
do
|
||||
echo "$l"
|
||||
done
|
||||
}
|
||||
|
||||
# run at normal and signalled exit
|
||||
test_exit()
|
||||
{
|
||||
exit_code=$1
|
||||
|
||||
rm -f ${statfile}* ${scriptfile}* ${logfile}.tmp*
|
||||
[ "$sim_pid" ] && kill -9 $sim_pid
|
||||
|
||||
exit $exit_code
|
||||
}
|
||||
|
||||
#
|
||||
# process the options
|
||||
#
|
||||
# defaults for getopt vars
|
||||
#
|
||||
# max_run_time is defaulted to 5 minutes
|
||||
#
|
||||
|
||||
verbose=""
|
||||
extra_options=""
|
||||
script_and_exit=""
|
||||
stdio_setup="yes"
|
||||
run_to_completion="yes"
|
||||
logdir=log
|
||||
update_on_tick="no"
|
||||
max_run_time=$((6 * 60)) # is 5 on other simulators.
|
||||
using_print_buffer="yes"
|
||||
|
||||
while getopts vhr12o:c:sl:t OPT
|
||||
do
|
||||
case "$OPT" in
|
||||
v)
|
||||
verbose="yes";;
|
||||
s)
|
||||
script_and_exit="yes"
|
||||
run_to_completion="no"
|
||||
stdio_setup="no";;
|
||||
l)
|
||||
logdir="$OPTARG";;
|
||||
o)
|
||||
extra_options="$OPTARG";;
|
||||
*)
|
||||
fatal;;
|
||||
esac
|
||||
done
|
||||
|
||||
let $((shiftcount = $OPTIND - 1))
|
||||
shift $shiftcount
|
||||
|
||||
args=$*
|
||||
|
||||
#
|
||||
# Run the tests
|
||||
#
|
||||
|
||||
tests="$args"
|
||||
if [ ! "$tests" ]
|
||||
then
|
||||
set -- `echo *.exe`
|
||||
tests="$*"
|
||||
fi
|
||||
|
||||
[ -d $logdir ] ||
|
||||
mkdir $logdir || fatal "could not create log directory ($logdir)"
|
||||
|
||||
cpus=1
|
||||
|
||||
# where the tmp files go
|
||||
statfile=/tmp/stats$$
|
||||
scriptfile=/tmp/script$$
|
||||
|
||||
trap "test_exit" 1 2 3 13 14 15
|
||||
|
||||
for tfile in $tests
|
||||
do
|
||||
|
||||
tname=`basename $tfile .exe`
|
||||
TEST_TYPE="single"
|
||||
|
||||
case $tname in
|
||||
capture* | monitor* | termios* | fileio* | pppd*)
|
||||
if [ $run_to_completion = "yes" ]
|
||||
then
|
||||
warn "Skipping $tname; it is interactive"
|
||||
continue
|
||||
fi
|
||||
;;
|
||||
*-node2*)
|
||||
fatal "MP tests not supported"
|
||||
warn "Skipping $tname; 'runtest' runs both nodes when for *-node1"
|
||||
continue;;
|
||||
*-node1*)
|
||||
fatal "MP tests not supported"
|
||||
warn "Running both nodes associated with $tname"
|
||||
tname=`echo $tname | sed 's/-node.*//'`
|
||||
TEST_TYPE="mp"
|
||||
;;
|
||||
stackchk*|spfatal*|malloctest*|termio*)
|
||||
warn "Skipping $tname; it locks up or takes a VERY long time to run"
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
||||
# Change the title bar to indicate which test we are running
|
||||
# The simulator screen doesn't provide any indication
|
||||
|
||||
logfile=$logdir/$tname
|
||||
infofile=$logfile.info
|
||||
|
||||
rm -f ${statfile}* ${scriptfile}* ${logfile}.tmp*
|
||||
|
||||
date=`date`
|
||||
echo "Starting $tname at $date"
|
||||
|
||||
# Generate a script file to get the work done.
|
||||
# The script file must do the following:
|
||||
#
|
||||
# load the program (programs if MP test)
|
||||
# arrange for capture of output
|
||||
# run the program
|
||||
# produce statistics
|
||||
|
||||
{
|
||||
case $TEST_TYPE in
|
||||
"mp")
|
||||
fatal "MP tests not supported"
|
||||
;;
|
||||
|
||||
# All other tests (single-processor)
|
||||
*)
|
||||
echo "target sim -3"
|
||||
echo "sim m r 0"
|
||||
echo "sim m w 0"
|
||||
echo "load"
|
||||
echo ""
|
||||
echo "printf \"START_OF_TEST\\n\""
|
||||
echo "run"
|
||||
echo "printf \"END_OF_TEST\\n\""
|
||||
echo "quit"
|
||||
;;
|
||||
esac
|
||||
|
||||
} > ${scriptfile}
|
||||
|
||||
if [ "$script_and_exit" = "yes" ]
|
||||
then
|
||||
mv ${scriptfile} $tname.ss
|
||||
warn "script left in $tname.ss"
|
||||
test_exit 0
|
||||
fi
|
||||
|
||||
# Spin off the simulator in the background
|
||||
c4x-rtems-gdb $extra_options -n \
|
||||
--command ${scriptfile} ${tfile} >${logfile}.tmp 2>&1 &
|
||||
sim_pid=$!
|
||||
|
||||
# Make sure it won't run forever...
|
||||
{
|
||||
time_run=0
|
||||
while [ $time_run -lt $max_run_time ]
|
||||
do
|
||||
# sleep 10s at a time waiting for job to finish or timer to expire
|
||||
# if job has exited, then we exit, too.
|
||||
sleep 10
|
||||
if kill -0 $sim_pid 2>/dev/null
|
||||
then
|
||||
time_run=$((time_run + 10))
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
kill -2 $sim_pid 2>/dev/null
|
||||
{ sleep 5; kill -9 $sim_pid 2>/dev/null; } &
|
||||
} &
|
||||
|
||||
wait $sim_pid
|
||||
status=$?
|
||||
if [ $status -ne 0 ]
|
||||
then
|
||||
ran_too_long="yes"
|
||||
else
|
||||
ran_too_long="no"
|
||||
fi
|
||||
|
||||
sim_pid=""
|
||||
|
||||
# fix up the printf output from the test
|
||||
case $TEST_TYPE in
|
||||
mp)
|
||||
fatal "MP not supported"
|
||||
;;
|
||||
*)
|
||||
output_it=0
|
||||
clean_exit=0
|
||||
sed -e '1,9d' \
|
||||
-e 's/
|
||||
//' -e '/^$/d' < ${logfile}.tmp |
|
||||
while read line
|
||||
do
|
||||
if [ $output_it -eq 1 ] ; then
|
||||
case $line in
|
||||
END_OF_TEST*)
|
||||
output_it=0
|
||||
;;
|
||||
*simio.c:86*)
|
||||
output_it=0
|
||||
clean_exit=1
|
||||
;;
|
||||
*)
|
||||
echo "$line"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
if [ "$line" = "START_OF_TEST" ] ; then
|
||||
output_it=1
|
||||
fi
|
||||
fi
|
||||
done > ${logfile}_1
|
||||
if [ ${clean_exit} -eq 0 ] ; then
|
||||
mv ${logfile}_1 ${logfile}_1.XXX
|
||||
sed -e '/^Program received signal SIGTRAP/d' \
|
||||
<${logfile}_1.XXX >${logfile}_1
|
||||
rm -f ${logfile}_1.XXX
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Create the info files
|
||||
for cpu in $cpus
|
||||
do
|
||||
{
|
||||
echo "$date"
|
||||
echo "Test run on: `uname -n` ( `uname -a` )"
|
||||
|
||||
output_it=1
|
||||
sed -e 's/
|
||||
//' < ${logfile}.tmp |
|
||||
while read line
|
||||
do
|
||||
if [ $output_it -eq 0 ] ; then
|
||||
if [ "$line" = "END_OF_TEST" ] ; then
|
||||
output_it=1
|
||||
fi
|
||||
else
|
||||
if [ "$line" = "START_OF_TEST" ] ; then
|
||||
output_it=0
|
||||
else
|
||||
echo "$line"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
if [ "$ran_too_long" = "yes" ]
|
||||
then
|
||||
echo "Test did NOT finish normally; killed after $max_run_time seconds"
|
||||
fi
|
||||
|
||||
echo
|
||||
date;
|
||||
} > ${infofile}_$cpu
|
||||
done
|
||||
|
||||
rm -f ${logfile}.tmp*
|
||||
|
||||
if [ "$cpus" = "1" ]
|
||||
then
|
||||
mv ${infofile}_1 ${infofile}
|
||||
mv ${logfile}_1 ${logfile}
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
test_exit 0
|
||||
|
||||
# Local Variables: ***
|
||||
# mode:ksh ***
|
||||
@@ -1,21 +0,0 @@
|
||||
## Process this file with autoconf to produce a configure script.
|
||||
##
|
||||
## $Id$
|
||||
|
||||
AC_PREREQ(2.60)
|
||||
AC_INIT([rtems-c-src-lib-libbsp-c4x],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
|
||||
AC_CONFIG_SRCDIR([c4xsim])
|
||||
RTEMS_TOP(../../../../..)
|
||||
|
||||
RTEMS_CANONICAL_TARGET_CPU
|
||||
AM_INIT_AUTOMAKE([no-define foreign 1.10])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
RTEMS_ENV_RTEMSBSP
|
||||
RTEMS_PROJECT_ROOT
|
||||
|
||||
RTEMS_CHECK_BSPDIR([$RTEMS_BSP_FAMILY])
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* CXX Spurious Trap Handler Install Routine
|
||||
*
|
||||
* This is just enough of a trap handler to let us know what
|
||||
* the likely source of the trap was.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
/*
|
||||
* bsp_spurious_initialize
|
||||
*
|
||||
* Install the spurious handler for most vectors.
|
||||
*/
|
||||
|
||||
rtems_isr bsp_spurious_handler(
|
||||
rtems_vector_number vector,
|
||||
CPU_Interrupt_frame *isf
|
||||
);
|
||||
|
||||
void bsp_spurious_initialize()
|
||||
{
|
||||
uint32_t vector;
|
||||
|
||||
for ( vector=0 ; vector<64 ; vector++ ) {
|
||||
|
||||
/*
|
||||
* Skip any vectors that might be generally used for traps.
|
||||
*/
|
||||
|
||||
set_vector( bsp_spurious_handler, vector, 1 );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
/*
|
||||
* C3X Spurious Trap Handler
|
||||
*
|
||||
* This is just enough of a trap handler to let us know what
|
||||
* the likely source of the trap was.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
/*
|
||||
* bsp_spurious_handler
|
||||
*
|
||||
* Print a message on the debug console and then die
|
||||
*/
|
||||
|
||||
void bsp_spurious_handler_assistant(
|
||||
rtems_vector_number,
|
||||
CPU_Interrupt_frame *
|
||||
);
|
||||
|
||||
#if defined(_C3x)
|
||||
rtems_isr bsp_spurious_handler(
|
||||
rtems_vector_number vector,
|
||||
CPU_Interrupt_frame *isf
|
||||
)
|
||||
{
|
||||
char *s;
|
||||
|
||||
printk( "Unexpected interrupt (0x%x)\n", vector );
|
||||
printk( "It looks like we got the interrupt at 0x%x\n", isf->interrupted );
|
||||
|
||||
/*
|
||||
* Can we print a name?
|
||||
*/
|
||||
|
||||
s = 0;
|
||||
if ( vector <= 0x1f ) {
|
||||
switch ( vector ) {
|
||||
#if defined(_C30) || defined(_C31)
|
||||
case 0: s = "RESET"; break;
|
||||
#endif
|
||||
case 1: s = "INT0"; break;
|
||||
case 2: s = "INT1"; break;
|
||||
case 3: s = "INT2"; break;
|
||||
case 4: s = "INT3"; break;
|
||||
case 5: s = "XINT0"; break;
|
||||
case 6: s = "RINT0"; break;
|
||||
#if defined(_C30) || defined(_C31)
|
||||
case 7: s = "XINT1"; break;
|
||||
case 8: s = "RINT1"; break;
|
||||
#endif
|
||||
case 9: s = "TINT0"; break;
|
||||
case 0x0a: s = "TINT1"; break;
|
||||
case 0x0b: s = "DINT0"; break;
|
||||
#if defined(_C32)
|
||||
case 0x0c: s = "DINT1"; break;
|
||||
#endif
|
||||
default: s = "Reserved"; break;
|
||||
}
|
||||
printk( "Looks like it was an %s\n", s );
|
||||
} else {
|
||||
printk( "Looks like it was a TRAP%d\n", vector - 0x20 );
|
||||
#if defined(_C30) || defined(_C31)
|
||||
if ( vector > 0x3B )
|
||||
printk( "But TRAP27 - TRAP31 are reserved\n" );
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Now call the BSP specific routine
|
||||
*/
|
||||
|
||||
bsp_spurious_handler_assistant( vector, isf );
|
||||
}
|
||||
#endif
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* C4X Spurious Trap Handler
|
||||
*
|
||||
* This is just enough of a trap handler to let us know what
|
||||
* the likely source of the trap was.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
/*
|
||||
* bsp_spurious_handler
|
||||
*
|
||||
* Print a message on the debug console and then die
|
||||
*/
|
||||
|
||||
void bsp_spurious_handler_assistant(
|
||||
rtems_vector_number,
|
||||
CPU_Interrupt_frame *
|
||||
);
|
||||
|
||||
#if defined(_C4x)
|
||||
rtems_isr bsp_spurious_handler(
|
||||
rtems_vector_number vector,
|
||||
CPU_Interrupt_frame *isf
|
||||
)
|
||||
{
|
||||
char *s;
|
||||
|
||||
printk( "Unexpected interrupt (0x%x)\n", vector );
|
||||
printk( "It looks like we got the interrupt at 0x%x\n", isf->interrupted );
|
||||
|
||||
/*
|
||||
* Can we print a name?
|
||||
*/
|
||||
|
||||
printk( "Looks like it was a " );
|
||||
if ( vector >= 0x0d && vector <= 0x24 ) {
|
||||
switch ( vector & 0x3 ) {
|
||||
case 1: s = "ICFULL"; break;
|
||||
case 2: s = "ICRDY"; break;
|
||||
case 3: s = "OCRDY"; break;
|
||||
case 0: s = "OCEMPTY"; break;
|
||||
}
|
||||
printk( "%s%d\n", s, (vector - 0x0d) / 4 );
|
||||
} else if ( vector >= 0x25 && vector <= 0x2a ) {
|
||||
printk( "DMA INT%d\n", (vector - 0x25) );
|
||||
} else /* if ( vector <= 0x0c || vector >= 0x2b ) */ {
|
||||
switch ( vector ) {
|
||||
case 0: s = "RESET"; break;
|
||||
case 1: s = "NMI"; break;
|
||||
case 2: s = "TINT0"; break;
|
||||
case 3: s = "IIOF0"; break;
|
||||
case 4: s = "IIOF1"; break;
|
||||
case 5: s = "IIOF2"; break;
|
||||
case 6: s = "IIOF3"; break;
|
||||
case 0x2b: s = "TINT1"; break;
|
||||
case 0x3f: s = "Reserved"; break;
|
||||
default: s = "Unused"; break;
|
||||
}
|
||||
printk( "%s\n", s );
|
||||
}
|
||||
|
||||
/*
|
||||
* Now call the BSP specific routine
|
||||
*/
|
||||
|
||||
bsp_spurious_handler_assistant( vector, isf );
|
||||
}
|
||||
#endif
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -49,7 +49,7 @@ SECTIONS
|
||||
_sdata = .;
|
||||
*(.data*);
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
_edata = .;
|
||||
}
|
||||
_data_start = ADDR(.data) ;
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2008-11-03 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
PR 1332: call BSP_uart_termios_set()/BSP_uart_intr_ctrl()
|
||||
only from 'firstOpen' and only if this is a serial console.
|
||||
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1257/bsps
|
||||
|
||||
@@ -274,6 +274,20 @@ static int console_last_close(int major, int minor, void *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ser_console_first_open(int major, int minor, void *arg)
|
||||
{
|
||||
/*
|
||||
* Pass data area info down to driver
|
||||
*/
|
||||
BSP_uart_termios_set(BSPConsolePort,
|
||||
((rtems_libio_open_close_args_t *)arg)->iop->data1);
|
||||
|
||||
/* Enable interrupts on channel */
|
||||
BSP_uart_intr_ctrl(BSPConsolePort, BSP_UART_INTR_CTRL_TERMIOS);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------+
|
||||
| Console device driver OPEN entry point
|
||||
+--------------------------------------------------------------------------*/
|
||||
@@ -321,6 +335,8 @@ console_open(rtems_device_major_number major,
|
||||
cb.write = BSP_uart_termios_write_com2;
|
||||
}
|
||||
|
||||
cb.firstOpen = ser_console_first_open;
|
||||
|
||||
status = rtems_termios_open (major, minor, arg, &cb);
|
||||
|
||||
if(status != RTEMS_SUCCESSFUL)
|
||||
@@ -329,15 +345,6 @@ console_open(rtems_device_major_number major,
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* Pass data area info down to driver
|
||||
*/
|
||||
BSP_uart_termios_set(BSPConsolePort,
|
||||
((rtems_libio_open_close_args_t *)arg)->iop->data1);
|
||||
|
||||
/* Enable interrupts on channel */
|
||||
BSP_uart_intr_ctrl(BSPConsolePort, BSP_UART_INTR_CTRL_TERMIOS);
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ SECTIONS
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
_edata = ALIGN( 0x10 ) ;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/bspstart.c: Eliminate maximum_drivers configuration parameter
|
||||
|
||||
@@ -124,7 +124,7 @@ SECTIONS
|
||||
. = ALIGN(0x20);
|
||||
*(.gnu.linkonce.d*)
|
||||
. = ALIGN(0x20);
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
. = ALIGN(0x20);
|
||||
_edata = .;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
2009-01-21 Frank Ueberschar <frank.ueberschar@dsa-volgmann.de>
|
||||
|
||||
PR 1354/bsps
|
||||
* network/network.c: In some cases it can occur that an empty mbuf is
|
||||
put on the descriptor chain. (We found it especially then when
|
||||
transmitting fragmented IP Packets.) Since the actual buffer
|
||||
descriptor pointer will be incremented after every inserted mbuf
|
||||
(txBd = sc->txBdBase + sc->txBdHead;) even if m->m_len of the current
|
||||
mbuf was zero. This leads to the bug.
|
||||
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds, startup/linkcmdsflash, startup/linkcmdsram: Add
|
||||
wildcard to gcc_except_table section so programs compiled with gcc
|
||||
4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -548,10 +548,10 @@ fec_sendpacket(struct ifnet *ifp, struct mbuf *m)
|
||||
* The IP fragmentation routine in ip_output
|
||||
* can produce fragments with zero length.
|
||||
*/
|
||||
txBd = sc->txBdBase + sc->txBdHead;
|
||||
if (m->m_len){
|
||||
char *p = mtod(m, char *);
|
||||
int offset = (int) p & 0x3;
|
||||
txBd = sc->txBdBase + sc->txBdHead;
|
||||
if (offset == 0) {
|
||||
txBd->buffer = p;
|
||||
txBd->length = m->m_len;
|
||||
|
||||
@@ -141,7 +141,7 @@ SECTIONS
|
||||
PROVIDE( _copy_start = .);
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -141,7 +141,7 @@ SECTIONS
|
||||
PROVIDE( _copy_start = .);
|
||||
*(.data)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -140,7 +140,7 @@ SECTIONS
|
||||
PROVIDE( _copy_start = .);
|
||||
*(.data)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -111,7 +111,7 @@ SECTIONS
|
||||
*(.data*)
|
||||
. = ALIGN (0x10);
|
||||
*(.gcc_exc)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (0x10);
|
||||
*(.gnu.linkonce.d*)
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -120,7 +120,7 @@ SECTIONS
|
||||
PROVIDE (_copy_start = .);
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -148,7 +148,7 @@ SECTIONS {
|
||||
PROVIDE (_copy_start = .);
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds, startup/linkcmds.bootp, startup/linkcmds.prom: Add
|
||||
wildcard to gcc_except_table section so programs compiled with gcc
|
||||
4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -112,7 +112,7 @@ SECTIONS {
|
||||
_copy_start = .;
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (edata = .);
|
||||
|
||||
@@ -118,7 +118,7 @@ SECTIONS {
|
||||
*(.data)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.jcr)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (edata = .);
|
||||
_copy_end = .;
|
||||
|
||||
@@ -117,7 +117,7 @@ SECTIONS {
|
||||
*(.data)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.jcr)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (edata = .);
|
||||
_copy_end = .;
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2008-02-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* clock/ckinit.c, console/duart.c, timer/timer.c: Reflect changes
|
||||
to rtems/motorola/*.h.
|
||||
|
||||
2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* console/leds.c, console/mc68ec.c: Rename delay to rtems_bsp_delay to
|
||||
|
||||
@@ -67,8 +67,8 @@ rtems_isr Clock_isr(
|
||||
{
|
||||
Clock_driver_ticks += 1;
|
||||
/* acknowledge interrupt
|
||||
TSR = 1; */
|
||||
MC68230_WRITE (TSR, 1);
|
||||
MC68230_TSR = 1; */
|
||||
MC68230_WRITE (MC68230_TSR, 1);
|
||||
|
||||
if ( Clock_isrs == 1 ) {
|
||||
rtems_clock_tick();
|
||||
@@ -86,7 +86,7 @@ rtems_isr Clock_isr(
|
||||
void Disable_clock()
|
||||
{
|
||||
/* Disable timer */
|
||||
MC68230_WRITE (TCR, 0x00);
|
||||
MC68230_WRITE (MC68230_TCR, 0x00);
|
||||
}
|
||||
|
||||
void Install_clock( clock_isr )
|
||||
@@ -99,26 +99,26 @@ rtems_isr_entry clock_isr;
|
||||
Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
|
||||
|
||||
/* Disable timer for initialization */
|
||||
MC68230_WRITE (TCR, 0x00);
|
||||
MC68230_WRITE (MC68230_TCR, 0x00);
|
||||
|
||||
/* some PI/T initialization stuff here -- see comment in the ckisr.c
|
||||
file in this directory to understand why I use the values that I do */
|
||||
/* Set up the interrupt vector on the MC68230 chip:
|
||||
TIVR = CLOCK_VECTOR; */
|
||||
MC68230_WRITE (TIVR, CLOCK_VECTOR);
|
||||
MC68230_TIVR = CLOCK_VECTOR; */
|
||||
MC68230_WRITE (MC68230_TIVR, CLOCK_VECTOR);
|
||||
|
||||
/* Set CPRH through CPRL to 193 (not 203) decimal for countdown--see ckisr.c
|
||||
CPRH = 0x00;
|
||||
CPRM = 0x00;
|
||||
CPRL = 0xC1; */
|
||||
MC68230_WRITE (CPRH, 0x00);
|
||||
MC68230_WRITE (CPRM, 0x00);
|
||||
MC68230_WRITE (CPRL, 0xC1);
|
||||
MC68230_WRITE (MC68230_CPRH, 0x00);
|
||||
MC68230_WRITE (MC68230_CPRM, 0x00);
|
||||
MC68230_WRITE (MC68230_CPRL, 0xC1);
|
||||
|
||||
/* Enable timer and use it as an external periodic interrupt generator
|
||||
TCR = 0xA1; */
|
||||
MC68230_TCR = 0xA1; */
|
||||
/* led_putnum('a'); * for debugging purposes */
|
||||
MC68230_WRITE (TCR, 0xA1);
|
||||
MC68230_WRITE (MC68230_TCR, 0xA1);
|
||||
|
||||
/*
|
||||
* Schedule the clock cleanup routine to execute if the application exits.
|
||||
@@ -134,8 +134,8 @@ void Clock_exit( void )
|
||||
/* disable timer
|
||||
data = TCR;
|
||||
TCR = (data & 0xFE); */
|
||||
MC68230_READ (TCR, data);
|
||||
MC68230_WRITE (TCR, (data & 0xFE));
|
||||
MC68230_READ (MC68230_TCR, data);
|
||||
MC68230_WRITE (MC68230_TCR, (data & 0xFE));
|
||||
|
||||
/* do not restore old vector */
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ void init_pit()
|
||||
/*
|
||||
* install ISR for ports A and B
|
||||
*/
|
||||
set_vector(C_Receive_ISR, (VECT+H3VECT), 1);
|
||||
set_vector(C_Receive_ISR, (MC68230_VECT+MC68230_H3VECT), 1);
|
||||
|
||||
/*
|
||||
* initialize pit
|
||||
@@ -70,12 +70,12 @@ void init_pit()
|
||||
* setup pivr
|
||||
* turn on all ports
|
||||
*/
|
||||
MC68230_WRITE(PGCR, 0x00);
|
||||
MC68230_WRITE(PSRR, 0x18);
|
||||
MC68230_WRITE(PBDDR, 0x00);
|
||||
MC68230_WRITE(PBCR, 0x82);
|
||||
MC68230_WRITE(PIVR, VECT);
|
||||
MC68230_WRITE(PGCR, 0x20);
|
||||
MC68230_WRITE(MC68230_PGCR, 0x00);
|
||||
MC68230_WRITE(MC68230_PSRR, 0x18);
|
||||
MC68230_WRITE(MC68230_PBDDR, 0x00);
|
||||
MC68230_WRITE(MC68230_PBCR, 0x82);
|
||||
MC68230_WRITE(MC68230_PIVR, MC68230_VECT);
|
||||
MC68230_WRITE(MC68230_PGCR, 0x20);
|
||||
|
||||
/*
|
||||
* For some reason, the reset of receiver/transmitter only works for
|
||||
@@ -186,7 +186,7 @@ rtems_isr C_Receive_ISR(rtems_vector_number vector)
|
||||
/*
|
||||
* Clear pit interrupt.
|
||||
*/
|
||||
_addr = (unsigned char *) (PIT_ADDR + PITSR);
|
||||
_addr = (unsigned char *) (MC68230_PIT_ADDR + MC68230_PITSR);
|
||||
*_addr = 0x04;
|
||||
|
||||
/*
|
||||
|
||||
@@ -117,7 +117,7 @@ SECTIONS
|
||||
PROVIDE (_copy_start = .);
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -45,19 +45,19 @@ void Timer_initialize()
|
||||
/* some PI/T initialization stuff here */
|
||||
/* Set up the interrupt vector on the MC68230 chip:
|
||||
TIVR = TIMER_VECTOR; */
|
||||
MC68230_WRITE (TIVR, TIMER_VECTOR);
|
||||
MC68230_WRITE (MC68230_TIVR, TIMER_VECTOR);
|
||||
|
||||
/* Set CPRH through CPRL to maximum count to reduce interrupt overhead
|
||||
CPRH = 0xFF;
|
||||
CPRM = 0xFF;
|
||||
CPRL = 0xFF; */
|
||||
MC68230_WRITE (CPRH, 0xFF);
|
||||
MC68230_WRITE (CPRM, 0xFF);
|
||||
MC68230_WRITE (CPRL, 0xFF);
|
||||
MC68230_WRITE (MC68230_CPRH, 0xFF);
|
||||
MC68230_WRITE (MC68230_CPRM, 0xFF);
|
||||
MC68230_WRITE (MC68230_CPRL, 0xFF);
|
||||
|
||||
/* Enable timer and use it as an external periodic interrupt generator
|
||||
TCR = 0xA1; */
|
||||
MC68230_WRITE (TCR, 0xA1);
|
||||
MC68230_WRITE (MC68230_TCR, 0xA1);
|
||||
|
||||
}
|
||||
|
||||
@@ -71,26 +71,26 @@ int Read_timer()
|
||||
uint32_t remaining, total;
|
||||
|
||||
/* Disable timer so that timer can be read
|
||||
data = TCR;
|
||||
TCR = (data & 0xFE); */
|
||||
MC68230_READ (TCR, data);
|
||||
MC68230_WRITE (TCR, (data & 0xFE));
|
||||
data = MC68230_TCR;
|
||||
MC68230_TCR = (data & 0xFE); */
|
||||
MC68230_READ (MC68230_TCR, data);
|
||||
MC68230_WRITE (MC68230_TCR, (data & 0xFE));
|
||||
|
||||
/* Read the counter value
|
||||
msb = CNTRH;
|
||||
osb = CNTRM;
|
||||
lsb = CNTRL; */
|
||||
MC68230_READ (CNTRH, msb);
|
||||
MC68230_READ (CNTRM, osb);
|
||||
MC68230_READ (CNTRL, lsb);
|
||||
msb = MC68230_CNTRH;
|
||||
osb = MC68230_CNTRM;
|
||||
lsb = MC68230_CNTRL; */
|
||||
MC68230_READ (MC68230_CNTRH, msb);
|
||||
MC68230_READ (MC68230_CNTRM, osb);
|
||||
MC68230_READ (MC68230_CNTRL, lsb);
|
||||
|
||||
/* Calculate the time so far */
|
||||
remaining = 0x1000000 - ((msb << 16) + (osb << 8) + lsb);
|
||||
total = (Ttimer_val * 0x1000000) + remaining;
|
||||
|
||||
/* Enable timer so that timer can continue
|
||||
TCR = 0xA1; */
|
||||
MC68230_WRITE (TCR, 0xA1);
|
||||
MC68230_TCR = 0xA1; */
|
||||
MC68230_WRITE (MC68230_TCR, 0xA1);
|
||||
|
||||
/* do not restore old vector */
|
||||
if ( Timer_driver_Find_average_overhead == 1 )
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds, startup/linkcmds.flash: Add wildcard to
|
||||
gcc_except_table section so programs compiled with gcc 4.3.x can
|
||||
link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -142,7 +142,7 @@ SECTIONS
|
||||
*(.data*)
|
||||
. = ALIGN (0x10);
|
||||
*(.gcc_exc)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (0x10);
|
||||
*(.gnu.linkonce.d*)
|
||||
|
||||
@@ -147,7 +147,7 @@ SECTIONS
|
||||
*(.data)
|
||||
. = ALIGN (0x10);
|
||||
*(.gcc_exc)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
. = ALIGN (0x10);
|
||||
*(.gnu.linkonce.d*)
|
||||
. = ALIGN (0x10);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds, startup/linkcmdsflash, startup/linkcmdsram: Add
|
||||
wildcard to gcc_except_table section so programs compiled with gcc
|
||||
4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -148,7 +148,7 @@ SECTIONS
|
||||
PROVIDE( _copy_start = .);
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -153,7 +153,7 @@ SECTIONS
|
||||
PROVIDE( _copy_start = .);
|
||||
*(.data)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -148,7 +148,7 @@ SECTIONS
|
||||
PROVIDE( _copy_start = .);
|
||||
*(.data)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds, startup/linkcmds_ROM: Add wildcard to
|
||||
gcc_except_table section so programs compiled with gcc 4.3.x can
|
||||
link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -141,7 +141,7 @@ SECTIONS
|
||||
PROVIDE (_copy_start = .);
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
@@ -161,7 +161,7 @@ SECTIONS
|
||||
_sdata = . ;
|
||||
*(.data)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
|
||||
CONSTRUCTORS
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Add wildcard to gcc_except_table section so
|
||||
programs compiled with gcc 4.3.x can link.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -117,7 +117,7 @@ SECTIONS
|
||||
PROVIDE (_copy_start = .);
|
||||
*(.data*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
*(.jcr)
|
||||
. = ALIGN (16);
|
||||
PROVIDE (_edata = .);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user