mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Here is a pure sh-rtems bug-fix patch. The defines to enable the network to host conversion macros in netinet/in.h were missing in sh/cpu.h
This commit is contained in:
@@ -248,6 +248,24 @@ extern "C" {
|
||||
|
||||
#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned(16)))
|
||||
|
||||
/*
|
||||
* Define what is required to specify how the network to host conversion
|
||||
* routines are handled.
|
||||
*
|
||||
* NOTE: SHes can be big or little endian, the default is big endian
|
||||
*/
|
||||
|
||||
#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
|
||||
|
||||
/* __LITTLE_ENDIAN__ is defined if -ml is given to gcc */
|
||||
#if defined(__LITTLE_ENDIAN__)
|
||||
#define CPU_BIG_ENDIAN FALSE
|
||||
#define CPU_LITTLE_ENDIAN TRUE
|
||||
#else
|
||||
#define CPU_BIG_ENDIAN TRUE
|
||||
#define CPU_LITTLE_ENDIAN FALSE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The following defines the number of bits actually used in the
|
||||
* interrupt field of the task mode. How those bits map to the
|
||||
|
||||
Reference in New Issue
Block a user