Mercurial > ecos-v3_0-branch
diff packages/kernel/current/tests/kintr0.c @ 34:29bc183297e1 ecos-sw-1999-09-02
Merge from eCos master repository on 1999-09-02-16:26:10-BST
| author | jlarmour |
|---|---|
| date | Thu, 02 Sep 1999 16:11:22 +0000 |
| parents | d3fbcdfa1b2f |
| children | c38311975d4f |
line wrap: on
line diff
--- a/packages/kernel/current/tests/kintr0.c +++ b/packages/kernel/current/tests/kintr0.c @@ -97,6 +97,19 @@ static bool flash( void ) return true; } +/* IMPORTANT: The calling convention for VSRs is target dependent. It is + * unlikely that a plain C or C++ routine would function correctly on any + * particular platform, even if it could correctly access the system + * resources necessary to handle the event that caused it to be called. + * VSRs usually must be written in assembly language. + * + * This is just a test program. The routine vsr0() below is defined simply + * to define an address that will be in executable memory. If an event + * causes this VSR to be called, all bets are off. If it is accidentally + * installed in the vector for the realtime clock, the system will likely + * freeze. + */ + static cyg_VSR_t vsr0; static void vsr0()
