Browse Source

[license] Change the license of libarm to Apache.

Bernard Xiong 6 years ago
parent
commit
7c425408b4
100 changed files with 378 additions and 917 deletions
  1. 2 6
      libcpu/arm/AT91SAM7S/AT91SAM7S.h
  2. 2 6
      libcpu/arm/AT91SAM7S/context_gcc.S
  3. 2 6
      libcpu/arm/AT91SAM7S/cpu.c
  4. 2 6
      libcpu/arm/AT91SAM7S/interrupt.c
  5. 2 6
      libcpu/arm/AT91SAM7S/serial.c
  6. 8 0
      libcpu/arm/AT91SAM7S/serial.h
  7. 2 6
      libcpu/arm/AT91SAM7S/stack.c
  8. 2 6
      libcpu/arm/AT91SAM7S/start_gcc.S
  9. 2 6
      libcpu/arm/AT91SAM7S/trap.c
  10. 2 6
      libcpu/arm/AT91SAM7X/context_gcc.S
  11. 2 6
      libcpu/arm/AT91SAM7X/cpu.c
  12. 2 6
      libcpu/arm/AT91SAM7X/interrupt.c
  13. 2 6
      libcpu/arm/AT91SAM7X/stack.c
  14. 2 6
      libcpu/arm/AT91SAM7X/start_gcc.S
  15. 2 6
      libcpu/arm/AT91SAM7X/trap.c
  16. 8 0
      libcpu/arm/am335x/am33xx.h
  17. 2 16
      libcpu/arm/am335x/context_gcc.S
  18. 2 17
      libcpu/arm/am335x/cp15_gcc.S
  19. 2 17
      libcpu/arm/am335x/cp15_iar.s
  20. 2 6
      libcpu/arm/am335x/cpu.c
  21. 2 6
      libcpu/arm/am335x/interrupt.c
  22. 2 6
      libcpu/arm/am335x/interrupt.h
  23. 2 6
      libcpu/arm/am335x/mmu.c
  24. 5 16
      libcpu/arm/am335x/mmu.h
  25. 2 6
      libcpu/arm/am335x/stack.c
  26. 2 16
      libcpu/arm/am335x/start_gcc.S
  27. 2 16
      libcpu/arm/am335x/start_iar.s
  28. 2 6
      libcpu/arm/am335x/trap.c
  29. 2 16
      libcpu/arm/am335x/vector_gcc.S
  30. 2 16
      libcpu/arm/arm926/cpuport.c
  31. 2 16
      libcpu/arm/arm926/mmu.c
  32. 2 16
      libcpu/arm/arm926/mmu.h
  33. 2 16
      libcpu/arm/arm926/stack.c
  34. 3 17
      libcpu/arm/arm926/start_gcc.S
  35. 2 16
      libcpu/arm/arm926/trap.c
  36. 2 16
      libcpu/arm/armv6/arm_entry_gcc.S
  37. 2 16
      libcpu/arm/armv6/armv6.h
  38. 2 16
      libcpu/arm/armv6/context_gcc.S
  39. 2 16
      libcpu/arm/armv6/cpuport.c
  40. 2 16
      libcpu/arm/armv6/mmu.c
  41. 2 16
      libcpu/arm/armv6/mmu.h
  42. 2 16
      libcpu/arm/armv6/stack.c
  43. 2 16
      libcpu/arm/armv6/vfp.c
  44. 2 16
      libcpu/arm/armv6/vfp.h
  45. 2 6
      libcpu/arm/common/backtrace.c
  46. 8 0
      libcpu/arm/common/div0.c
  47. 8 0
      libcpu/arm/common/divsi3.S
  48. 2 6
      libcpu/arm/common/showmem.c
  49. 8 0
      libcpu/arm/cortex-a/armv7.h
  50. 2 16
      libcpu/arm/cortex-a/context_gcc.S
  51. 8 0
      libcpu/arm/cortex-a/cp15.h
  52. 2 17
      libcpu/arm/cortex-a/cp15_gcc.S
  53. 2 6
      libcpu/arm/cortex-a/cpu.c
  54. 2 6
      libcpu/arm/cortex-a/interrupt.c
  55. 2 6
      libcpu/arm/cortex-a/mmu.c
  56. 8 0
      libcpu/arm/cortex-a/pmu.c
  57. 8 0
      libcpu/arm/cortex-a/pmu.h
  58. 2 6
      libcpu/arm/cortex-a/stack.c
  59. 2 16
      libcpu/arm/cortex-a/start_gcc.S
  60. 2 6
      libcpu/arm/cortex-a/trap.c
  61. 2 16
      libcpu/arm/cortex-a/vector_gcc.S
  62. 2 6
      libcpu/arm/cortex-m0/context_gcc.S
  63. 2 6
      libcpu/arm/cortex-m0/cpuport.c
  64. 2 6
      libcpu/arm/cortex-m3/context_gcc.S
  65. 2 6
      libcpu/arm/cortex-m3/cpuport.c
  66. 2 6
      libcpu/arm/cortex-m4/context_gcc.S
  67. 2 6
      libcpu/arm/cortex-m7/context_gcc.S
  68. 8 0
      libcpu/arm/cortex-r4/armv7.h
  69. 2 6
      libcpu/arm/cortex-r4/context_gcc.S
  70. 2 6
      libcpu/arm/cortex-r4/cpu.c
  71. 2 6
      libcpu/arm/cortex-r4/interrupt.c
  72. 2 6
      libcpu/arm/cortex-r4/stack.c
  73. 8 0
      libcpu/arm/cortex-r4/start_gcc.S
  74. 2 6
      libcpu/arm/cortex-r4/trap.c
  75. 8 0
      libcpu/arm/cortex-r4/vector_gcc.S
  76. 2 16
      libcpu/arm/dm36x/context_gcc.S
  77. 2 16
      libcpu/arm/dm36x/cpuport.c
  78. 2 16
      libcpu/arm/dm36x/mmu.c
  79. 2 16
      libcpu/arm/dm36x/mmu.h
  80. 2 16
      libcpu/arm/dm36x/stack.c
  81. 38 30
      libcpu/arm/lpc214x/context_gcc.S
  82. 2 6
      libcpu/arm/lpc214x/cpuport.c
  83. 56 48
      libcpu/arm/lpc214x/startup_gcc.S
  84. 2 6
      libcpu/arm/lpc24xx/LPC24xx.h
  85. 2 6
      libcpu/arm/lpc24xx/context_gcc.S
  86. 2 6
      libcpu/arm/lpc24xx/cpu.c
  87. 2 6
      libcpu/arm/lpc24xx/interrupt.c
  88. 2 6
      libcpu/arm/lpc24xx/stack.c
  89. 2 6
      libcpu/arm/lpc24xx/start_gcc.S
  90. 8 0
      libcpu/arm/lpc24xx/start_rvds.S
  91. 2 6
      libcpu/arm/lpc24xx/trap.c
  92. 8 0
      libcpu/arm/realview-a8-vmm/armv7.h
  93. 2 16
      libcpu/arm/realview-a8-vmm/context_gcc.S
  94. 8 0
      libcpu/arm/realview-a8-vmm/cp15.h
  95. 2 17
      libcpu/arm/realview-a8-vmm/cp15_gcc.S
  96. 2 6
      libcpu/arm/realview-a8-vmm/cpu.c
  97. 2 6
      libcpu/arm/realview-a8-vmm/gic.c
  98. 2 6
      libcpu/arm/realview-a8-vmm/gic.h
  99. 2 6
      libcpu/arm/realview-a8-vmm/interrupt.c
  100. 2 6
      libcpu/arm/realview-a8-vmm/interrupt.h

+ 2 - 6
libcpu/arm/AT91SAM7S/AT91SAM7S.h

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : at91sam7s.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7S/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7S/cpu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7S/interrupt.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7S/serial.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : serial.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/AT91SAM7S/serial.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __RT_SERIAL_H__
 #ifndef __RT_SERIAL_H__
 #define __RT_SERIAL_H__
 #define __RT_SERIAL_H__
 
 

+ 2 - 6
libcpu/arm/AT91SAM7S/stack.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7S/start_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : start_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7S/trap.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7X/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7X/cpu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7X/interrupt.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7X/stack.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7X/start_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : start.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/AT91SAM7X/trap.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/am335x/am33xx.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __AM33XX_H__
 #ifndef __AM33XX_H__
 #define __AM33XX_H__
 #define __AM33XX_H__
 
 

+ 2 - 16
libcpu/arm/am335x/context_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 17
libcpu/arm/am335x/cp15_gcc.S

@@ -1,22 +1,7 @@
 /*
 /*
- * File      : cp15_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
- * http://www.rt-thread.org
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 17
libcpu/arm/am335x/cp15_iar.s

@@ -1,22 +1,7 @@
 /*
 /*
- * File      : cp15_iar.s
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2015, RT-Thread Development Team
- * http://www.rt-thread.org
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/am335x/cpu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/am335x/interrupt.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : interrupt.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2011, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/am335x/interrupt.h

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : interrupt.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2011, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/am335x/mmu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : mmu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 5 - 16
libcpu/arm/am335x/mmu.h

@@ -1,22 +1,11 @@
 /*
 /*
- * File      : mmu.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
+ * Change Logs:
+ * Date           Author       Notes
+ * 2012-01-10     bernard      porting to AM1808
  */
  */
 
 
 #ifndef __MMU_H__
 #ifndef __MMU_H__

+ 2 - 6
libcpu/arm/am335x/stack.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2011, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/am335x/start_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : start_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/am335x/start_iar.s

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : start_iar.s
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2015, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/am335x/trap.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/am335x/vector_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : vector_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/arm926/cpuport.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/arm926/mmu.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : mmu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/arm926/mmu.h

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : mmu.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/arm926/stack.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 3 - 17
libcpu/arm/arm926/start_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : start_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes
@@ -138,7 +124,7 @@ Reset_Handler:
     MSR     CPSR_cxsf, R0
     MSR     CPSR_cxsf, R0
     
     
     @; Set CO-Processor
     @; Set CO-Processor
-    @; little-end,disbale I/D Cache MMU, vector table is 0x00000000
+    @; little-end锛宒isbale I/D Cache MMU, vector table is 0x00000000
     MRC     P15, 0, R0, C1, C0, 0   @; Read CP15
     MRC     P15, 0, R0, C1, C0, 0   @; Read CP15
     LDR     R1, =0x00003085         @; set clear bits
     LDR     R1, =0x00003085         @; set clear bits
     BIC     R0, R0, R1
     BIC     R0, R0, R1

+ 2 - 16
libcpu/arm/arm926/trap.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/arm_entry_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : arm_entry_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/armv6.h

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : armv6.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/context_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/cpuport.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/mmu.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : mmu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/mmu.h

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : mmu.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/stack.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/vfp.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : vfp.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/armv6/vfp.h

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : vfp.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/common/backtrace.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : backtrace.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, 2008 RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/common/div0.c

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 void __div0 (void)
 void __div0 (void)
 {
 {
 	while (1) ;
 	while (1) ;

+ 8 - 0
libcpu/arm/common/divsi3.S

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 /*	$NetBSD: divsi3.S,v 1.5 2005/02/26 22:58:56 perry Exp $	*/
 /*	$NetBSD: divsi3.S,v 1.5 2005/02/26 22:58:56 perry Exp $	*/
 
 
 /*
 /*

+ 2 - 6
libcpu/arm/common/showmem.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : showmem.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, 2008 RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/cortex-a/armv7.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __ARMV7_H__
 #ifndef __ARMV7_H__
 #define __ARMV7_H__
 #define __ARMV7_H__
 
 

+ 2 - 16
libcpu/arm/cortex-a/context_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/cortex-a/cp15.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __CP15_H__
 #ifndef __CP15_H__
 #define __CP15_H__
 #define __CP15_H__
 
 

+ 2 - 17
libcpu/arm/cortex-a/cp15_gcc.S

@@ -1,22 +1,7 @@
 /*
 /*
- * File      : cp15_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
- * http://www.rt-thread.org
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-a/cpu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-a/interrupt.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : interrupt.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013-2014, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-a/mmu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : mmu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/cortex-a/pmu.c

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #include <rtthread.h>
 #include <rtthread.h>
 #include "pmu.h"
 #include "pmu.h"
 
 

+ 8 - 0
libcpu/arm/cortex-a/pmu.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __PMU_H__
 #ifndef __PMU_H__
 #define __PMU_H__
 #define __PMU_H__
 
 

+ 2 - 6
libcpu/arm/cortex-a/stack.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2011, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/cortex-a/start_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : start_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013-2014, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-a/trap.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/cortex-a/vector_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : vector_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-m0/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 - 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date         Author    Notes
  * Date         Author    Notes

+ 2 - 6
libcpu/arm/cortex-m0/cpuport.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpuport.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-m3/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date         Author    Notes
  * Date         Author    Notes

+ 2 - 6
libcpu/arm/cortex-m3/cpuport.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpuport.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date         Author      Notes
  * Date         Author      Notes

+ 2 - 6
libcpu/arm/cortex-m4/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-m7/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/cortex-r4/armv7.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __ARMV7_H__
 #ifndef __ARMV7_H__
 #define __ARMV7_H__
 #define __ARMV7_H__
 
 

+ 2 - 6
libcpu/arm/cortex-r4/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context_ccs.asm
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date       Author       Notes
  * Date       Author       Notes

+ 2 - 6
libcpu/arm/cortex-r4/cpu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-r4/interrupt.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/cortex-r4/stack.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/cortex-r4/start_gcc.S

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 @-------------------------------------------------------------------------------
 @-------------------------------------------------------------------------------
 @ sys_core.asm
 @ sys_core.asm
 @
 @

+ 2 - 6
libcpu/arm/cortex-r4/trap.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/cortex-r4/vector_gcc.S

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 @-------------------------------------------------------------------------------
 @-------------------------------------------------------------------------------
 @ sys_intvecs.asm
 @ sys_intvecs.asm
 @
 @

+ 2 - 16
libcpu/arm/dm36x/context_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/dm36x/cpuport.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/dm36x/mmu.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : mmu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/dm36x/mmu.h

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : mmu.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 16
libcpu/arm/dm36x/stack.c

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 38 - 30
libcpu/arm/lpc214x/context_gcc.S

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 .global rt_hw_interrupt_disable
 .global rt_hw_interrupt_disable
 .global rt_hw_interrupt_enable
 .global rt_hw_interrupt_enable
 .global rt_hw_context_switch
 .global rt_hw_context_switch
@@ -8,7 +16,7 @@
 
 
 /*
 /*
  * rt_base_t rt_hw_interrupt_disable();
  * rt_base_t rt_hw_interrupt_disable();
- 关闭中断,关闭前返回CPSR寄存器值
+ 鍏抽棴涓�柇锛屽叧闂�墠杩斿洖CPSR瀵勫瓨鍣ㄥ€�
  */
  */
 rt_hw_interrupt_disable:
 rt_hw_interrupt_disable:
 	//EXPORT rt_hw_interrupt_disable
 	//EXPORT rt_hw_interrupt_disable
@@ -20,7 +28,7 @@ rt_hw_interrupt_disable:
 
 
 /*
 /*
  * void rt_hw_interrupt_enable(rt_base_t level);
  * void rt_hw_interrupt_enable(rt_base_t level);
-  恢复中断状态
+  鎭㈠�涓�柇鐘舵€�
  */
  */
 rt_hw_interrupt_enable:
 rt_hw_interrupt_enable:
 	//EXPORT rt_hw_interrupt_enable
 	//EXPORT rt_hw_interrupt_enable
@@ -32,70 +40,70 @@ rt_hw_interrupt_enable:
  * void rt_hw_context_switch(rt_uint32 from, rt_uint32 to);
  * void rt_hw_context_switch(rt_uint32 from, rt_uint32 to);
  * r0 --> from
  * r0 --> from
  * r1 --> to
  * r1 --> to
- 进行线程的上下文切换
+ 杩涜�绾跨▼鐨勪笂涓嬫枃鍒囨崲
  */
  */
 rt_hw_context_switch:
 rt_hw_context_switch:
 	//EXPORT rt_hw_context_switch
 	//EXPORT rt_hw_context_switch
 	STMFD	sp!, {lr}			/* push pc (lr should be pushed in place of PC) */
 	STMFD	sp!, {lr}			/* push pc (lr should be pushed in place of PC) */
-							    /* 把LR寄存器压入栈(这个函数返回后的下一个执行处) */
+							    /* 鎶奓R瀵勫瓨鍣ㄥ帇鍏ユ爤锛堣繖涓�嚱鏁拌繑鍥炲悗鐨勪笅涓€涓�墽琛屽�锛� */
 	STMFD	sp!, {r0-r12, lr}	/* push lr & register file */
 	STMFD	sp!, {r0-r12, lr}	/* push lr & register file */
-								/*  把R0 – R12以及LR压入栈 */
+								/*  鎶奟0 鈥� R12浠ュ強LR鍘嬪叆鏍� */
 
 
-	MRS		r4, cpsr			/*  读取CPSR寄存器到R4寄存器 */
+	MRS		r4, cpsr			/*  璇诲彇CPSR瀵勫瓨鍣ㄥ埌R4瀵勫瓨鍣� */
 	STMFD	sp!, {r4}			/* push cpsr */
 	STMFD	sp!, {r4}			/* push cpsr */
-							    /* 把R4寄存器压栈(即上一指令取出的CPSR寄存器) */
-	MRS		r4, spsr		    /* 读取SPSR寄存器到R4寄存器 */
+							    /* 鎶奟4瀵勫瓨鍣ㄥ帇鏍堬紙鍗充笂涓€鎸囦护鍙栧嚭鐨凜PSR瀵勫瓨鍣�級 */
+	MRS		r4, spsr		    /* 璇诲彇SPSR瀵勫瓨鍣ㄥ埌R4瀵勫瓨鍣� */
 	STMFD	sp!, {r4}			/* push spsr */
 	STMFD	sp!, {r4}			/* push spsr */
-								/* 把R4寄存器压栈(即SPSR寄存器) */
+								/* 鎶奟4瀵勫瓨鍣ㄥ帇鏍堬紙鍗砈PSR瀵勫瓨鍣�級 */
 
 
 	STR	sp, [r0]				/* store sp in preempted tasks TCB */
 	STR	sp, [r0]				/* store sp in preempted tasks TCB */
-								/*  把栈指针更新到TCB的sp,是由R0传入此函数 */
-								/*  到这里换出线程的上下文都保存在栈中 */
+								/*  鎶婃爤鎸囬拡鏇存柊鍒癟CB鐨剆p锛屾槸鐢盧0浼犲叆姝ゅ嚱鏁� */
+								/*  鍒拌繖閲屾崲鍑虹嚎绋嬬殑涓婁笅鏂囬兘淇濆瓨鍦ㄦ爤涓� */
 	LDR	sp, [r1]				/* get new task stack pointer */
 	LDR	sp, [r1]				/* get new task stack pointer */
-								/*  载入切换到线程的TCB的sp */
-								/*  从切换到线程的栈中恢复上下文,次序和保存的时候刚好相反 */
+								/*  杞藉叆鍒囨崲鍒扮嚎绋嬬殑TCB鐨剆p */
+								/*  浠庡垏鎹㈠埌绾跨▼鐨勬爤涓�仮澶嶄笂涓嬫枃锛屾�搴忓拰淇濆瓨鐨勬椂鍊欏垰濂界浉鍙� */
 
 
 	LDMFD	sp!, {r4}			/* pop new task spsr */
 	LDMFD	sp!, {r4}			/* pop new task spsr */
-								/* 出栈到R4寄存器(保存了SPSR寄存器) */
-	MSR	spsr_cxsf, r4			/* 恢复SPSR寄存器 */
+								/* 鍑烘爤鍒癛4瀵勫瓨鍣�紙淇濆瓨浜哠PSR瀵勫瓨鍣�級 */
+	MSR	spsr_cxsf, r4			/* 鎭㈠�SPSR瀵勫瓨鍣� */
 	LDMFD	sp!, {r4}			/* pop new task cpsr */
 	LDMFD	sp!, {r4}			/* pop new task cpsr */
-								/* 出栈到R4寄存器(保存了CPSR寄存器) */
-	MSR	cpsr_cxsf, r4			/*  恢复CPSR寄存器 */
+								/* 鍑烘爤鍒癛4瀵勫瓨鍣�紙淇濆瓨浜咰PSR瀵勫瓨鍣�級 */
+	MSR	cpsr_cxsf, r4			/*  鎭㈠�CPSR瀵勫瓨鍣� */
 
 
 	LDMFD	sp!, {r0-r12, lr, pc}	/* pop new task r0-r12, lr & pc */
 	LDMFD	sp!, {r0-r12, lr, pc}	/* pop new task r0-r12, lr & pc */
-									/* 对R0 – R12及LR、PC进行恢复 */
+									/* 瀵筊0 鈥� R12鍙奓R銆丳C杩涜�鎭㈠� */
 	//ENDP
 	//ENDP
 
 
 rt_hw_context_switch_to:
 rt_hw_context_switch_to:
 	//EXPORT rt_hw_context_switch_to
 	//EXPORT rt_hw_context_switch_to
 	LDR	sp, [r0]				/* get new task stack pointer */
 	LDR	sp, [r0]				/* get new task stack pointer */
-								/* 获得切换到线程的SP指针 */
+								/* 鑾峰緱鍒囨崲鍒扮嚎绋嬬殑SP鎸囬拡 */
 
 
 	LDMFD	sp!, {r4}			/* pop new task spsr */
 	LDMFD	sp!, {r4}			/* pop new task spsr */
-								/* 出栈R4寄存器(保存了SPSR寄存器值) */
-	MSR	spsr_cxsf, r4			/* 恢复SPSR寄存器 */
+								/* 鍑烘爤R4瀵勫瓨鍣�紙淇濆瓨浜哠PSR瀵勫瓨鍣ㄥ€硷級 */
+	MSR	spsr_cxsf, r4			/* 鎭㈠�SPSR瀵勫瓨鍣� */
 	LDMFD	sp!, {r4}			/* pop new task cpsr */
 	LDMFD	sp!, {r4}			/* pop new task cpsr */
-								/* 出栈R4寄存器(保存了CPSR寄存器值) */
-	MSR	cpsr_cxsf, r4			/* 恢复CPSR寄存器 */
+								/* 鍑烘爤R4瀵勫瓨鍣�紙淇濆瓨浜咰PSR瀵勫瓨鍣ㄥ€硷級 */
+	MSR	cpsr_cxsf, r4			/* 鎭㈠�CPSR瀵勫瓨鍣� */
 
 
 	LDMFD	sp!, {r0-r12, lr, pc}	/* pop new task r0-r12, lr & pc */
 	LDMFD	sp!, {r0-r12, lr, pc}	/* pop new task r0-r12, lr & pc */
-									/* 恢复R0 – R12,LR及PC寄存器 */
+									/* 鎭㈠�R0 鈥� R12锛孡R鍙奝C瀵勫瓨鍣� */
 	//ENDP
 	//ENDP
 
 
 rt_hw_context_switch_interrupt:
 rt_hw_context_switch_interrupt:
 	//EXPORT rt_hw_context_switch_interrupt
 	//EXPORT rt_hw_context_switch_interrupt
 	LDR r2, =rt_thread_switch_interrupt_flag
 	LDR r2, =rt_thread_switch_interrupt_flag
-	LDR r3, [r2]						/* 载入中断中切换标致地址 */
-	CMP r3, #1							/* 等于 1 ?*/
-	BEQ _reswitch						/* 如果等于1,跳转到_reswitch*/
+	LDR r3, [r2]						/* 杞藉叆涓�柇涓�垏鎹㈡爣鑷村湴鍧€ */
+	CMP r3, #1							/* 绛変簬 1 锛�*/
+	BEQ _reswitch						/* 濡傛灉绛変簬1锛岃烦杞�埌_reswitch*/
 	MOV r3, #1							/* set rt_thread_switch_interrupt_flag to 1*/
 	MOV r3, #1							/* set rt_thread_switch_interrupt_flag to 1*/
-										/* 设置中断中切换标志位1 */
+										/* 璁剧疆涓�柇涓�垏鎹㈡爣蹇椾綅1 */
 	STR r3, [r2]						/* */
 	STR r3, [r2]						/* */
 	LDR r2, =rt_interrupt_from_thread	/* set rt_interrupt_from_thread*/
 	LDR r2, =rt_interrupt_from_thread	/* set rt_interrupt_from_thread*/
-	STR r0, [r2]						/* 保存切换出线程栈指针*/
+	STR r0, [r2]						/* 淇濆瓨鍒囨崲鍑虹嚎绋嬫爤鎸囬拡*/
 _reswitch:
 _reswitch:
 	LDR r2, =rt_interrupt_to_thread		/* set rt_interrupt_to_thread*/
 	LDR r2, =rt_interrupt_to_thread		/* set rt_interrupt_to_thread*/
-	STR r1, [r2]						/* 保存切换到线程栈指针*/
+	STR r1, [r2]						/* 淇濆瓨鍒囨崲鍒扮嚎绋嬫爤鎸囬拡*/
 	BX	lr
 	BX	lr
 	//ENDP
 	//ENDP
 
 

+ 2 - 6
libcpu/arm/lpc214x/cpuport.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpuport.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 - 2011, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 56 - 48
libcpu/arm/lpc214x/startup_gcc.S

@@ -1,4 +1,12 @@
-	.extern main                               /* 引入外部C入口 */
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
+	.extern main                               /* 寮曞叆澶栭儴C鍏ュ彛 */
 
 
 	.extern rt_interrupt_enter
 	.extern rt_interrupt_enter
 	.extern rt_interrupt_leave
 	.extern rt_interrupt_leave
@@ -54,7 +62,7 @@
 
 
     .equ  VICIntEnClr,	0xFFFFF014
     .equ  VICIntEnClr,	0xFFFFF014
     .equ  VICIntSelect,	0xFFFFF00C
     .equ  VICIntSelect,	0xFFFFF00C
-/************* 目标配置结束 *************/
+/************* 鐩�爣閰嶇疆缁撴潫 *************/
 
 
 
 
 /* Setup the operating mode & stack.*/
 /* Setup the operating mode & stack.*/
@@ -217,94 +225,94 @@ __pabt: b     .                         /* program abort			*/
 __dabt: b     .                         /* data abort				*/
 __dabt: b     .                         /* data abort				*/
 __fiq : b     .  					    /* FIQ						*/
 __fiq : b     .  					    /* FIQ						*/
 
 
-/* IRQ入口 */
+/* IRQ鍏ュ彛 */
 IRQ_Handler :
 IRQ_Handler :
-		stmfd	sp!, {r0-r12,lr} 			   /* 对R0 – R12,LR寄存器压栈      */
-		bl	rt_interrupt_enter	 			   /* 通知RT-Thread进入中断模式     */
-		bl	rt_hw_trap_irq		 			   /* 相应中断服务例程处理  	    */
-		bl	rt_interrupt_leave		           /* ; 通知RT-Thread要离开中断模式 */
+		stmfd	sp!, {r0-r12,lr} 			   /* 瀵筊0 鈥� R12锛孡R瀵勫瓨鍣ㄥ帇鏍�      */
+		bl	rt_interrupt_enter	 			   /* 閫氱煡RT-Thread杩涘叆涓�柇妯″紡     */
+		bl	rt_hw_trap_irq		 			   /* 鐩稿簲涓�柇鏈嶅姟渚嬬▼澶勭悊  	    */
+		bl	rt_interrupt_leave		           /* ; 閫氱煡RT-Thread瑕佺�寮€涓�柇妯″紡 */
 
 
-		/* 如果设置了rt_thread_switch_interrupt_flag,进行中断中的线程上下文处理 */
+		/* 濡傛灉璁剧疆浜唕t_thread_switch_interrupt_flag锛岃繘琛屼腑鏂�腑鐨勭嚎绋嬩笂涓嬫枃澶勭悊 */
 		ldr	r0, =rt_thread_switch_interrupt_flag
 		ldr	r0, =rt_thread_switch_interrupt_flag
 		ldr	r1, [r0]
 		ldr	r1, [r0]
 		cmp	r1, #1
 		cmp	r1, #1
-		beq	rt_hw_context_switch_interrupt_do  /* 中断中切换发生 */
-											   /* 如果跳转了,将不会回来 */
-		ldmfd	sp!, {r0-r12,lr}			   /* 恢复栈 */
-		subs	pc, lr, #4					   /* 从IRQ中返回 */
+		beq	rt_hw_context_switch_interrupt_do  /* 涓�柇涓�垏鎹㈠彂鐢� */
+											   /* 濡傛灉璺宠浆浜嗭紝灏嗕笉浼氬洖鏉� */
+		ldmfd	sp!, {r0-r12,lr}			   /* 鎭㈠�鏍� */
+		subs	pc, lr, #4					   /* 浠嶪RQ涓�繑鍥� */
 
 
 /*
 /*
 * void rt_hw_context_switch_interrupt_do(rt_base_t flag)
 * void rt_hw_context_switch_interrupt_do(rt_base_t flag)
-* 中断结束后的上下文切换
+* 涓�柇缁撴潫鍚庣殑涓婁笅鏂囧垏鎹�
 */
 */
 rt_hw_context_switch_interrupt_do:
 rt_hw_context_switch_interrupt_do:
 				mov	r1,  #0				/* clear flag */
 				mov	r1,  #0				/* clear flag */
-										/* 清楚中断中切换标志 */
+										/* 娓呮�涓�柇涓�垏鎹㈡爣蹇� */
 				str	r1,  [r0]			/* */
 				str	r1,  [r0]			/* */
 
 
 				ldmfd	sp!, {r0-r12,lr}/* reload saved registers */
 				ldmfd	sp!, {r0-r12,lr}/* reload saved registers */
-										/* 先恢复被中断线程的上下文 */
+										/* 鍏堟仮澶嶈�涓�柇绾跨▼鐨勪笂涓嬫枃 */
 				stmfd	sp!, {r0-r3}	/* save r0-r3 */
 				stmfd	sp!, {r0-r3}	/* save r0-r3 */
-										/* 对R0 – R3压栈,因为后面会用到 */
-				mov	r1,  sp				/* 把此处的栈值保存到R1 */
+										/* 瀵筊0 鈥� R3鍘嬫爤锛屽洜涓哄悗闈�細鐢ㄥ埌 */
+				mov	r1,  sp				/* 鎶婃�澶勭殑鏍堝€间繚瀛樺埌R1 */
 				add	sp,  sp, #16		/* restore sp */
 				add	sp,  sp, #16		/* restore sp */
-										/* 恢复IRQ的栈,后面会跳出IRQ模式 */
+										/* 鎭㈠�IRQ鐨勬爤锛屽悗闈�細璺冲嚭IRQ妯″紡 */
 				sub	r2,  lr, #4			/* save old task's pc to r2 */
 				sub	r2,  lr, #4			/* save old task's pc to r2 */
-										/* 保存切换出线程的PC到R2 */
+										/* 淇濆瓨鍒囨崲鍑虹嚎绋嬬殑PC鍒癛2 */
 
 
-				mrs	r3,  spsr			/* disable interrupt 保存中断前的CPSR到R3寄存器 */
-										/* 获得SPSR寄存器值 */
+				mrs	r3,  spsr			/* disable interrupt 淇濆瓨涓�柇鍓嶇殑CPSR鍒癛3瀵勫瓨鍣� */
+										/* 鑾峰緱SPSR瀵勫瓨鍣ㄥ€� */
 				orr	r0,  r3, #I_BIT|F_BIT
 				orr	r0,  r3, #I_BIT|F_BIT
-				msr	spsr_c, r0			/*  关闭SPSR中的IRQ/FIQ中断 */
-
-				ldr	r0,  =.+8		    /* 把当前地址+8载入到R0寄存器中 switch to interrupted task's stack */
-				movs pc,  r0            /* 退出IRQ模式,由于SPSR被设置成关中断模式 */
-										/* 所以从IRQ返回后,中断并没有打开
-										; R0寄存器中的位置实际就是下一条指令,
-										; 即PC继续往下走
-										; 此时
-										; 模式已经换成中断前的SVC模式,
-										; SP寄存器也是SVC模式下的栈寄存器
-										; R1保存IRQ模式下的栈指针
-										; R2保存切换出线程的PC
-										; R3保存切换出线程的CPSR */
+				msr	spsr_c, r0			/*  鍏抽棴SPSR涓�殑IRQ/FIQ涓�柇 */
+
+				ldr	r0,  =.+8		    /* 鎶婂綋鍓嶅湴鍧€+8杞藉叆鍒癛0瀵勫瓨鍣ㄤ腑 switch to interrupted task's stack */
+				movs pc,  r0            /* 閫€鍑篒RQ妯″紡锛岀敱浜嶴PSR琚��缃�垚鍏充腑鏂�ā寮� */
+										/* 鎵€浠ヤ粠IRQ杩斿洖鍚庯紝涓�柇骞舵病鏈夋墦寮€
+										; R0瀵勫瓨鍣ㄤ腑鐨勪綅缃�疄闄呭氨鏄�笅涓€鏉℃寚浠わ紝
+										; 鍗砅C缁х画寰€涓嬭蛋
+										; 姝ゆ椂
+										; 妯″紡宸茬粡鎹㈡垚涓�柇鍓嶇殑SVC妯″紡锛�
+										; SP瀵勫瓨鍣ㄤ篃鏄疭VC妯″紡涓嬬殑鏍堝瘎瀛樺櫒
+										; R1淇濆瓨IRQ妯″紡涓嬬殑鏍堟寚閽�
+										; R2淇濆瓨鍒囨崲鍑虹嚎绋嬬殑PC
+										; R3淇濆瓨鍒囨崲鍑虹嚎绋嬬殑CPSR */
 				stmfd	sp!, {r2}		/* push old task's pc */
 				stmfd	sp!, {r2}		/* push old task's pc */
-										/* 保存切换出任务的PC */
+										/* 淇濆瓨鍒囨崲鍑轰换鍔$殑PC */
 				stmfd	sp!, {r4-r12,lr}/* push old task's lr,r12-r4 */
 				stmfd	sp!, {r4-r12,lr}/* push old task's lr,r12-r4 */
-										/* 保存R4 – R12,LR寄存器 */
+										/* 淇濆瓨R4 鈥� R12锛孡R瀵勫瓨鍣� */
 				mov	r4,  r1				/* Special optimised code below */
 				mov	r4,  r1				/* Special optimised code below */
-										/* R1保存有压栈R0 – R3处的栈位置 */
-				mov	r5,  r3				/* R3切换出线程的CPSR */
-				ldmfd	r4!, {r0-r3}	/* 恢复R0 – R3 */
+										/* R1淇濆瓨鏈夊帇鏍圧0 鈥� R3澶勭殑鏍堜綅缃� */
+				mov	r5,  r3				/* R3鍒囨崲鍑虹嚎绋嬬殑CPSR */
+				ldmfd	r4!, {r0-r3}	/* 鎭㈠�R0 鈥� R3 */
 				stmfd	sp!, {r0-r3}	/* push old task's r3-r0 */
 				stmfd	sp!, {r0-r3}	/* push old task's r3-r0 */
-										/*  R0 – R3压栈到切换出线程 */
+										/*  R0 鈥� R3鍘嬫爤鍒板垏鎹㈠嚭绾跨▼ */
 				stmfd	sp!, {r5}		/* push old task's psr */
 				stmfd	sp!, {r5}		/* push old task's psr */
-										/* 切换出线程CPSR压栈 */
+										/* 鍒囨崲鍑虹嚎绋婥PSR鍘嬫爤 */
 				mrs	r4,  spsr
 				mrs	r4,  spsr
 				stmfd	sp!, {r4}		/* push old task's spsr */
 				stmfd	sp!, {r4}		/* push old task's spsr */
-										/* 切换出线程SPSR压栈 */
+										/* 鍒囨崲鍑虹嚎绋婼PSR鍘嬫爤 */
 
 
 				ldr	r4,  =rt_interrupt_from_thread
 				ldr	r4,  =rt_interrupt_from_thread
 				ldr	r5,  [r4]
 				ldr	r5,  [r4]
 				str	sp,  [r5]			/* store sp in preempted tasks's TCB */
 				str	sp,  [r5]			/* store sp in preempted tasks's TCB */
-										/* 保存切换出线程的SP指针 */
+										/* 淇濆瓨鍒囨崲鍑虹嚎绋嬬殑SP鎸囬拡 */
 
 
 				ldr	r6,  =rt_interrupt_to_thread
 				ldr	r6,  =rt_interrupt_to_thread
 				ldr	r6,  [r6]
 				ldr	r6,  [r6]
 				ldr	sp,  [r6]			/* get new task's stack pointer */
 				ldr	sp,  [r6]			/* get new task's stack pointer */
-										/* 获得切换到线程的栈 */
+										/* 鑾峰緱鍒囨崲鍒扮嚎绋嬬殑鏍� */
 
 
 				ldmfd	sp!, {r4}		/* pop new task's spsr */
 				ldmfd	sp!, {r4}		/* pop new task's spsr */
-										/* 恢复SPSR */
+										/* 鎭㈠�SPSR */
 				msr	SPSR_cxsf, r4
 				msr	SPSR_cxsf, r4
 				ldmfd	sp!, {r4}		/* pop new task's psr */
 				ldmfd	sp!, {r4}		/* pop new task's psr */
-										/* 恢复CPSR */
+										/* 鎭㈠�CPSR */
 				msr	CPSR_cxsf, r4
 				msr	CPSR_cxsf, r4
 
 
 				ldmfd	sp!, {r0-r12,lr,pc}	/* pop new task's r0-r12,lr & pc */
 				ldmfd	sp!, {r0-r12,lr,pc}	/* pop new task's r0-r12,lr & pc */
-											/* 恢复R0 – R12,LR及PC寄存器 */
+											/* 鎭㈠�R0 鈥� R12锛孡R鍙奝C瀵勫瓨鍣� */
 
 
-/* 代码加密功能 */
+/* 浠g爜鍔犲瘑鍔熻兘 */
 #if defined(CODE_PROTECTION)
 #if defined(CODE_PROTECTION)
 .org 0x01FC
 .org 0x01FC
 .word 0x87654321
 .word 0x87654321

+ 2 - 6
libcpu/arm/lpc24xx/LPC24xx.h

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : LPC2478.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/lpc24xx/context_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/lpc24xx/cpu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/lpc24xx/interrupt.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/lpc24xx/stack.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : stack.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/lpc24xx/start_gcc.S

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : start.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/lpc24xx/start_rvds.S

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 ;/*****************************************************************************/
 ;/*****************************************************************************/
 ;/* LPC2400.S: Startup file for Philips LPC2400 device series                 */
 ;/* LPC2400.S: Startup file for Philips LPC2400 device series                 */
 ;/*****************************************************************************/
 ;/*****************************************************************************/

+ 2 - 6
libcpu/arm/lpc24xx/trap.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : trap.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://openlab.rt-thread.com/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/realview-a8-vmm/armv7.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __ARMV7_H__
 #ifndef __ARMV7_H__
 #define __ARMV7_H__
 #define __ARMV7_H__
 
 

+ 2 - 16
libcpu/arm/realview-a8-vmm/context_gcc.S

@@ -1,21 +1,7 @@
 /*
 /*
- * File      : context.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 8 - 0
libcpu/arm/realview-a8-vmm/cp15.h

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 #ifndef __CP15_H__
 #ifndef __CP15_H__
 #define __CP15_H__
 #define __CP15_H__
 
 

+ 2 - 17
libcpu/arm/realview-a8-vmm/cp15_gcc.S

@@ -1,22 +1,7 @@
 /*
 /*
- * File      : cp15_gcc.S
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Development Team
- * http://www.rt-thread.org
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License along
- *  with this program; if not, write to the Free Software Foundation, Inc.,
- *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/realview-a8-vmm/cpu.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : cpu.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/realview-a8-vmm/gic.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : gic.c, ARM Generic Interrupt Controller
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013-2014, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/realview-a8-vmm/gic.h

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : gic.h, ARM Generic Interrupt Controller
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013, RT-Thread Develop Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/realview-a8-vmm/interrupt.c

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : interrupt.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2013-2014, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

+ 2 - 6
libcpu/arm/realview-a8-vmm/interrupt.h

@@ -1,11 +1,7 @@
 /*
 /*
- * File      : interrupt.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2011, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
  *
  *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  *
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes

Some files were not shown because too many files changed in this diff