Mercurial > ecos
comparison packages/hal/arm/aeb/current/include/hal_platform_setup.h @ 2:443894e2e912 ecos-v1_2_1-release
Block commit of eCos version 1.2.1
| author | jlarmour |
|---|---|
| date | Tue, 11 May 1999 12:24:34 +0000 |
| parents | |
| children | 41bd4f3a90de |
comparison
equal
deleted
inserted
replaced
| 1:72f549f0d891 | 2:443894e2e912 |
|---|---|
| 1 #ifndef CYGONCE_HAL_PLATFORM_SETUP_H | |
| 2 #define CYGONCE_HAL_PLATFORM_SETUP_H | |
| 3 | |
| 4 /*============================================================================= | |
| 5 // | |
| 6 // hal_platform_setup.h | |
| 7 // | |
| 8 // Platform specific support for HAL (assembly code) | |
| 9 // | |
| 10 //============================================================================= | |
| 11 //####COPYRIGHTBEGIN#### | |
| 12 // | |
| 13 // ------------------------------------------- | |
| 14 // The contents of this file are subject to the Cygnus eCos Public License | |
| 15 // Version 1.0 (the "License"); you may not use this file except in | |
| 16 // compliance with the License. You may obtain a copy of the License at | |
| 17 // http://sourceware.cygnus.com/ecos | |
| 18 // | |
| 19 // Software distributed under the License is distributed on an "AS IS" | |
| 20 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 21 // License for the specific language governing rights and limitations under | |
| 22 // the License. | |
| 23 // | |
| 24 // The Original Code is eCos - Embedded Cygnus Operating System, released | |
| 25 // September 30, 1998. | |
| 26 // | |
| 27 // The Initial Developer of the Original Code is Cygnus. Portions created | |
| 28 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. | |
| 29 // ------------------------------------------- | |
| 30 // | |
| 31 //####COPYRIGHTEND#### | |
| 32 //============================================================================= | |
| 33 //#####DESCRIPTIONBEGIN#### | |
| 34 // | |
| 35 // Author(s): gthomas | |
| 36 // Contributors: gthomas | |
| 37 // Date: 1999-04-13 | |
| 38 // Purpose: ARM/AEB-1 platform specific support routines | |
| 39 // Description: | |
| 40 // Usage: #include <cyg/hal/hal_platform_setup.h> | |
| 41 // | |
| 42 //####DESCRIPTIONEND#### | |
| 43 // | |
| 44 //===========================================================================*/ | |
| 45 | |
| 46 #if CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE==4096 | |
| 47 // Override default to a more sensible value | |
| 48 #undef CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE | |
| 49 #define CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE 2048 | |
| 50 #endif | |
| 51 | |
| 52 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS | |
| 53 #define PLATFORM_SETUP1 \ | |
| 54 ldr r1,=segment_register_setups ;\ | |
| 55 10: ldr r2,[r1,#0] /* segment address */ ;\ | |
| 56 cmp r2,#0 ;\ | |
| 57 beq 20f ;\ | |
| 58 ldr r3,[r1,#4] /* segment start */ ;\ | |
| 59 str r3,[r2,#0x00] ;\ | |
| 60 ldr r3,[r1,#8] /* segment end */ ;\ | |
| 61 str r3,[r2,#0x20] ;\ | |
| 62 ldr r3,[r1,#12] /* segment flags */ ;\ | |
| 63 str r3,[r2,#0x40] ;\ | |
| 64 add r1,r1,#16 /* next segment */ ;\ | |
| 65 b 10b ;\ | |
| 66 segment_register_setups: ;\ | |
| 67 .long 0xFFFFA008,0x00008000,0x00028000,0x00007804 /* segment 2 */ ;\ | |
| 68 .long 0xFFFFA00C,0x00028000,0x01000000,0x00000000 /* segment 3 */ ;\ | |
| 69 .long 0 ;\ | |
| 70 20: | |
| 71 #else | |
| 72 #define PLATFORM_SETUP1 | |
| 73 #endif | |
| 74 | |
| 75 /*---------------------------------------------------------------------------*/ | |
| 76 /* end of hal_platform_setup.h */ | |
| 77 #endif /* CYGONCE_HAL_PLATFORM_SETUP_H */ |
