diff options
Diffstat (limited to 'bsps/powerpc/t32mppc')
-rw-r--r-- | bsps/powerpc/t32mppc/clock/clock-config.c | 2 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/configsim.t32 | 4 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/console/console.c | 6 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/include/bsp.h | 2 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/include/bsp/irq.h | 25 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/init.cmm | 5 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/irq/irq.c | 24 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/make.cmm | 19 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/start/bspreset.c | 2 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/start/bspstart.c | 2 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/start/start.S | 2 | ||||
-rw-r--r-- | bsps/powerpc/t32mppc/win.cmm | 36 |
12 files changed, 91 insertions, 38 deletions
diff --git a/bsps/powerpc/t32mppc/clock/clock-config.c b/bsps/powerpc/t32mppc/clock/clock-config.c index 3cd4a8a49b..76ff39cd7f 100644 --- a/bsps/powerpc/t32mppc/clock/clock-config.c +++ b/bsps/powerpc/t32mppc/clock/clock-config.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (c) 2011, 2017 embedded brains GmbH. All rights reserved. + * Copyright (C) 2011, 2017 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/bsps/powerpc/t32mppc/configsim.t32 b/bsps/powerpc/t32mppc/configsim.t32 index 02dc794672..72cbff690c 100644 --- a/bsps/powerpc/t32mppc/configsim.t32 +++ b/bsps/powerpc/t32mppc/configsim.t32 @@ -1,5 +1 @@ PBI=SIM -SCREEN= -HEADER=Simulator -FONT=DEC -FONT=SMALL diff --git a/bsps/powerpc/t32mppc/console/console.c b/bsps/powerpc/t32mppc/console/console.c index 59fc02f54d..fd1474e364 100644 --- a/bsps/powerpc/t32mppc/console/console.c +++ b/bsps/powerpc/t32mppc/console/console.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (c) 2012, 2015 embedded brains GmbH. All rights reserved. + * Copyright (C) 2012, 2015 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -35,9 +35,9 @@ #include <rtems/console.h> #include <rtems/termiostypes.h> -volatile unsigned char messagebufferin[256]; +RTEMS_SECTION(".rtemsrwset.t32") volatile unsigned char messagebufferin[256]; -volatile unsigned char messagebufferout[256]; +RTEMS_SECTION(".rtemsrwset.t32") volatile unsigned char messagebufferout[256]; typedef struct { rtems_termios_device_context base; diff --git a/bsps/powerpc/t32mppc/include/bsp.h b/bsps/powerpc/t32mppc/include/bsp.h index 45bbee4b42..1f8d2871c9 100644 --- a/bsps/powerpc/t32mppc/include/bsp.h +++ b/bsps/powerpc/t32mppc/include/bsp.h @@ -9,7 +9,7 @@ */ /* - * Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved. + * Copyright (C) 2012, 2017 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/bsps/powerpc/t32mppc/include/bsp/irq.h b/bsps/powerpc/t32mppc/include/bsp/irq.h index a860dc28e1..e4f4614a53 100644 --- a/bsps/powerpc/t32mppc/include/bsp/irq.h +++ b/bsps/powerpc/t32mppc/include/bsp/irq.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved. + * Copyright (C) 2012, 2017 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,9 +29,6 @@ #define LIBBSP_POWERPC_T32MPPC_IRQ_H #include <rtems.h> -#include <rtems/irq.h> -#include <rtems/irq-extension.h> -#include <rtems/score/processormask.h> #ifdef __cplusplus extern "C" { @@ -39,26 +36,6 @@ extern "C" { #define BSP_INTERRUPT_VECTOR_COUNT 1 -RTEMS_INLINE_ROUTINE rtems_status_code bsp_interrupt_set_affinity( - rtems_vector_number vector, - const Processor_mask *affinity -) -{ - (void) vector; - (void) affinity; - return RTEMS_SUCCESSFUL; -} - -RTEMS_INLINE_ROUTINE rtems_status_code bsp_interrupt_get_affinity( - rtems_vector_number vector, - Processor_mask *affinity -) -{ - (void) vector; - _Processor_mask_From_index( affinity, 0 ); - return RTEMS_SUCCESSFUL; -} - #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/bsps/powerpc/t32mppc/init.cmm b/bsps/powerpc/t32mppc/init.cmm index 019fd2c014..4cfb6ec6fa 100644 --- a/bsps/powerpc/t32mppc/init.cmm +++ b/bsps/powerpc/t32mppc/init.cmm @@ -6,11 +6,14 @@ system.up per.s spr:0x11f %long %be 0x80200000 ; Load application -Data.LOAD.Elf /home/sh/build/t32mppc/powerpc-rtems4.11/c/t32mppc/testsuites/samples/ticker/ticker.exe +Data.LOAD.Elf build/powerpc/t32mppc/testsuites/samples/ticker/ticker.exe ; Configure memory-based terminal term.reset term.method buffere v.address("messagebufferout") v.address("messagebufferin") +term.mode VT100 +term.scroll on +term.size 80. 200. 10000. term.gate ; Initialize RTOS support diff --git a/bsps/powerpc/t32mppc/irq/irq.c b/bsps/powerpc/t32mppc/irq/irq.c index 0320e40a8b..a3f2504443 100644 --- a/bsps/powerpc/t32mppc/irq/irq.c +++ b/bsps/powerpc/t32mppc/irq/irq.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved. + * Copyright (C) 2012, 2017 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -92,6 +92,28 @@ rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector) return RTEMS_SUCCESSFUL; } +#if defined(RTEMS_SMP) +rtems_status_code bsp_interrupt_get_affinity( + rtems_vector_number vector, + Processor_mask *affinity +) +{ + (void) vector; + _Processor_mask_From_index( affinity, 0 ); + return RTEMS_UNSATISFIED; +} + +rtems_status_code bsp_interrupt_set_affinity( + rtems_vector_number vector, + const Processor_mask *affinity +) +{ + (void) vector; + (void) affinity; + return RTEMS_UNSATISFIED; +} +#endif + void bsp_interrupt_facility_initialize(void) { /* Nothing to do */ diff --git a/bsps/powerpc/t32mppc/make.cmm b/bsps/powerpc/t32mppc/make.cmm new file mode 100644 index 0000000000..a8e9e1e605 --- /dev/null +++ b/bsps/powerpc/t32mppc/make.cmm @@ -0,0 +1,19 @@ +; Set CPU +system.cpu mpc8540 +system.up + +; Set PVR +per.s spr:0x11f %long %be 0x80200000 + +; Load application +Data.LOAD.Elf /home/EB/sebastian_h/src/rtems/build/powerpc/t32mppc/testsuites/validation/ts-validation-intr.exe + +; Configure memory-based terminal +term.reset +term.method buffere v.address("messagebufferout") v.address("messagebufferin") +term.gate + +; Initialize RTOS support +task.config ~~/demo/powerpc/kernel/rtems/rtems.t32 +menu.reprogram ~~/demo/powerpc/kernel/rtems/rtems.men +task.stack.pattern 0xa5 diff --git a/bsps/powerpc/t32mppc/start/bspreset.c b/bsps/powerpc/t32mppc/start/bspreset.c index 99077b2068..5ba20c6195 100644 --- a/bsps/powerpc/t32mppc/start/bspreset.c +++ b/bsps/powerpc/t32mppc/start/bspreset.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (c) 2012 embedded brains GmbH. All rights reserved. + * Copyright (c) 2012 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/bsps/powerpc/t32mppc/start/bspstart.c b/bsps/powerpc/t32mppc/start/bspstart.c index 2e16768dce..cbed7fa3ee 100644 --- a/bsps/powerpc/t32mppc/start/bspstart.c +++ b/bsps/powerpc/t32mppc/start/bspstart.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved. + * Copyright (C) 2012, 2017 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/bsps/powerpc/t32mppc/start/start.S b/bsps/powerpc/t32mppc/start/start.S index 166599027b..f509dc12f7 100644 --- a/bsps/powerpc/t32mppc/start/start.S +++ b/bsps/powerpc/t32mppc/start/start.S @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (c) 2012, 2017 embedded brains GmbH. All rights reserved. + * Copyright (C) 2012, 2017 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/bsps/powerpc/t32mppc/win.cmm b/bsps/powerpc/t32mppc/win.cmm new file mode 100644 index 0000000000..b65d22ab67 --- /dev/null +++ b/bsps/powerpc/t32mppc/win.cmm @@ -0,0 +1,36 @@ +// T32 Thu Oct 12 15:59:29 2023 + +B:: + +TOOLBAR ON +STATUSBAR ON +FramePOS 0.0,72.0,,,Maximized +WinPAGE.RESet + +WinPAGE.Create P000 +WinCLEAR + +WinPOS 0.0 0.0 77. 21. 0. 0. W001 +wl.Register + +WinPOS 0.0 24.533 133. 47. 14. 1. W002 +WinTABS 10. 10. 25. +wl.List + +WinPOS 275.57 23.0 80. 24. 0. 0. W000 +wl.term.gate + +WinPOS 136.57 0.0 105. 25. 5. 0. W003 +wl.Frame + +WinPOS 136.43 30.4 106. 13. 24. 1. W004 +WinTABS 13. 0. 0. 0. 0. 0. 0. 0. 0. 54. +wl.Break.List + +WinPOS 136.57 50.0 106. 23. 0. 1. W005 +WinTABS 41. 31. +wl.sYmbol.Browse.sYmbol + +WinPAGE.select P000 + +ENDDO |