Skip to content

Commit 651289e

Browse files
authored
Synopsys ARC v1 Port: add support to Synopsys ARC v1 series cores (#110)
* Synopsys Port: Adding support to Synopsys ARC v1 series cores ARC v1 cores include ARC605, ARC610d, and ARC710d Signed-off-by: Yuguo Zou <yuguo.zou@synopsys.com> * Synopsys ARC v1 port: run uncrustify to fix code style Signed-off-by: Yuguo Zou <yuguo.zou@synopsys.com> * Synopsys port: modify license headers, change copyright only Signed-off-by: Yuguo Zou <yuguo.zou@synopsys.com>
1 parent 35f0b2a commit 651289e

File tree

11 files changed

+867
-6
lines changed

11 files changed

+867
-6
lines changed

portable/ThirdParty/GCC/ARC_EM_HS/arc_freertos_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* FreeRTOS Kernel V10.2.1
3-
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
66
* this software and associated documentation files (the "Software"), to deal in

portable/ThirdParty/GCC/ARC_EM_HS/arc_freertos_exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* FreeRTOS Kernel V10.2.1
3-
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
66
* this software and associated documentation files (the "Software"), to deal in

portable/ThirdParty/GCC/ARC_EM_HS/arc_support.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* FreeRTOS Kernel V10.2.1
3-
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
66
* this software and associated documentation files (the "Software"), to deal in

portable/ThirdParty/GCC/ARC_EM_HS/freertos_tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* FreeRTOS Kernel V10.2.1
3-
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
66
* this software and associated documentation files (the "Software"), to deal in

portable/ThirdParty/GCC/ARC_EM_HS/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* FreeRTOS Kernel V10.2.1
3-
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
66
* this software and associated documentation files (the "Software"), to deal in

portable/ThirdParty/GCC/ARC_EM_HS/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* FreeRTOS Kernel V10.2.1
3-
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
66
* this software and associated documentation files (the "Software"), to deal in
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* FreeRTOS Kernel V10.2.1
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
* this software and associated documentation files (the "Software"), to deal in
7+
* the Software without restriction, including without limitation the rights to
8+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
* the Software, and to permit persons to whom the Software is furnished to do so,
10+
* subject to the following conditions:
11+
*
12+
* The above copyright notice and this permission notice shall be included in all
13+
* copies or substantial portions of the Software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
*
22+
* http://www.FreeRTOS.org
23+
* http://aws.amazon.com/freertos
24+
*
25+
* 1 tab == 4 spaces!
26+
*/
27+
28+
/**
29+
* \file
30+
* \brief exception processing for freertos
31+
*/
32+
33+
/* #include "embARC.h" */
34+
35+
#include "arc_freertos_exceptions.h"
36+
37+
#ifdef __GNU__
38+
extern void gnu_printf_setup( void );
39+
#endif
40+
41+
/**
42+
* \brief freertos related cpu exception initialization, all the interrupts handled by freertos must be not
43+
* fast irqs. If fiq is needed, please install the default firq_exc_entry or your own fast irq entry into
44+
* the specific interrupt exception.
45+
*/
46+
void freertos_exc_init( void )
47+
{
48+
#ifdef __GNU__
49+
gnu_printf_setup();
50+
#endif
51+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* FreeRTOS Kernel V10.2.1
3+
* Copyright (C) 2020 Synopsys, Inc. or its affiliates. All Rights Reserved.
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
* this software and associated documentation files (the "Software"), to deal in
7+
* the Software without restriction, including without limitation the rights to
8+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
* the Software, and to permit persons to whom the Software is furnished to do so,
10+
* subject to the following conditions:
11+
*
12+
* The above copyright notice and this permission notice shall be included in all
13+
* copies or substantial portions of the Software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
*
22+
* http://www.FreeRTOS.org
23+
* http://aws.amazon.com/freertos
24+
*
25+
* 1 tab == 4 spaces!
26+
*/
27+
28+
#ifndef ARC_FREERTOS_EXCEPTIONS_H
29+
#define ARC_FREERTOS_EXCEPTIONS_H
30+
31+
/*
32+
* here, all arc cpu exceptions share the same entry, also for all interrupt
33+
* exceptions
34+
*/
35+
extern void exc_entry_cpu( void ); /* cpu exception entry for freertos */
36+
extern void exc_entry_int( void ); /* int exception entry for freertos */
37+
38+
/* task dispatch functions in .s */
39+
extern void start_r( void );
40+
extern void start_dispatch();
41+
extern void dispatch();
42+
43+
extern void freertos_exc_init( void );
44+
45+
#endif /* ARC_FREERTOS_EXCEPTIONS_H */

0 commit comments

Comments
 (0)