Commit Graph
6 Commits
Author SHA1 Message Date
Sebastian Huber 7ec23f42d6 bsps/mips: Report an exception as one
An exception which no handler consumed ended in
rtems_fatal_error_occurred(1), which is INTERNAL_ERROR_RTEMS_API, where
every other port reports RTEMS_FATAL_SOURCE_EXCEPTION with the exception
frame as the code.  A fatal error extension cannot recognise the former,
so a test which expects an exception and returns from its extension with
longjmp() could not resume.  That pattern is how tc-compiler-builtins.c
checks the break which the compiler emits for a division by zero, and it
stopped ts-unit-no-clock-0.

The exception vectors are dispatched like interrupt vectors and the GDB
stub installs handlers on several of them, so the dispatch stays and the
frame of the exception being vectored is published for the default
handler to recognise.  Report a vector without a frame as a spurious
interrupt, which is what the shared default handler does.

Do not print here.  The fatal error extension prints the frame when the
system really terminates, so a recovered exception stays silent instead
of writing two lines into the test output on every recovery.  The cause
table moves next to _CPU_Exception_frame_print(), which gains the cause
of the exception it prints.

Update #5691.

Assisted-by: Claude:claude-opus-5 claude-code
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-08-20 18:07:36 -05:00
Joel Sherrill b934583853 bsps/mips/include/libcpu/au1x00.h: Correct au_sync() prototype
GCC warns that ‘static’ is not at beginning of the function
declaration.
2025-07-24 19:48:22 -05:00
Gedare Bloom 0149e6e749 spdx: add 2-BSD SPDX tags on relicensed files
Updates the recently merged relicensed files with the 2-Clause BSD
SPDX annotation.

Closes #5208.
2025-03-01 04:14:54 +00:00
Gedare Bloom bc941aa99b mips/csb350: Relicense to 2BSD
Update licenses for contributions from Jay Monkman in MIPS BSPs.

Updates #3053.
2025-02-07 14:57:34 +00:00
Joel Sherrill 654ff835bb bsps/mips/include: Change license to BSD-2
Updates #3053.
2022-07-12 08:15:41 -05:00
Chris Johns 2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00