openocd: remove further obsolete hooks for building on eCos
The eCos build has been dropped in 2012 with commit 39650e2273
("ecosboard: delete bit-rotted eCos code").
Drop last eCos related code.
Change-Id: I6b0de6386386c0102d540504236dda58d7a664b9
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9092
Tested-by: jenkins
This commit is contained in:
@@ -190,7 +190,6 @@ Remember: OpenOCD runs on:
|
|||||||
-# FreeBSD
|
-# FreeBSD
|
||||||
-# Cygwin
|
-# Cygwin
|
||||||
-# MinGW32
|
-# MinGW32
|
||||||
-# Ecos
|
|
||||||
|
|
||||||
How can we get that to work?
|
How can we get that to work?
|
||||||
|
|
||||||
|
|||||||
@@ -39,13 +39,6 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __ECOS
|
|
||||||
/* missing from eCos */
|
|
||||||
#ifndef EFAULT
|
|
||||||
#define EFAULT 14 /* Bad address */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -276,62 +276,6 @@ static inline int parity_u32(uint32_t x)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__ECOS)
|
|
||||||
|
|
||||||
/* eCos plain lacks these definition... A series of upstream patches
|
|
||||||
* could probably repair it, but it seems like too much work to be
|
|
||||||
* worth it.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if !defined(_STDINT_H)
|
|
||||||
#define PRId32 "d"
|
|
||||||
#define PRIi32 "i"
|
|
||||||
#define PRIo32 "o"
|
|
||||||
#define PRIu32 "u"
|
|
||||||
#define PRIx32 "x"
|
|
||||||
#define PRIX32 "X"
|
|
||||||
#define SCNx32 "x"
|
|
||||||
#define PRId8 PRId32
|
|
||||||
#define SCNx64 "llx"
|
|
||||||
#define PRId64 "lld"
|
|
||||||
#define PRIi64 "lli"
|
|
||||||
#define PRIo64 "llo"
|
|
||||||
#define PRIu64 "llu"
|
|
||||||
#define PRIx64 "llx"
|
|
||||||
#define PRIX64 "llX"
|
|
||||||
|
|
||||||
typedef CYG_ADDRWORD intptr_t;
|
|
||||||
typedef int64_t intmax_t;
|
|
||||||
typedef uint64_t uintmax_t;
|
|
||||||
#define INT8_MAX 0x7f
|
|
||||||
#define INT8_MIN (-INT8_MAX - 1)
|
|
||||||
# define UINT8_MAX (255)
|
|
||||||
#define INT16_MAX 0x7fff
|
|
||||||
#define INT16_MIN (-INT16_MAX - 1)
|
|
||||||
# define UINT16_MAX (65535)
|
|
||||||
#define INT32_MAX 0x7fffffffL
|
|
||||||
#define INT32_MIN (-INT32_MAX - 1L)
|
|
||||||
# define UINT32_MAX (4294967295U)
|
|
||||||
#define INT64_MAX 0x7fffffffffffffffLL
|
|
||||||
#define INT64_MIN (-INT64_MAX - 1LL)
|
|
||||||
#define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef LLONG_MAX
|
|
||||||
#define ULLONG_MAX UINT64_C(0xFFFFFFFFFFFFFFFF)
|
|
||||||
#define LLONG_MAX INT64_C(0x7FFFFFFFFFFFFFFF)
|
|
||||||
#define LLONG_MIN ULLONG_MAX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define ULLONG_MAX 18446744073709551615
|
|
||||||
|
|
||||||
/* C99, eCos is C90 compliant (with bits of C99) */
|
|
||||||
#define isblank(c) ((c) == ' ' || (c) == '\t')
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef uint64_t target_addr_t;
|
typedef uint64_t target_addr_t;
|
||||||
#define TARGET_ADDR_MAX UINT64_MAX
|
#define TARGET_ADDR_MAX UINT64_MAX
|
||||||
#define TARGET_PRIdADDR PRId64
|
#define TARGET_PRIdADDR PRId64
|
||||||
|
|||||||
Reference in New Issue
Block a user