This is an automated email from Gerrit.

"Antonio Borneo <[email protected]>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9092

-- gerrit

commit 1258560001862dd8b4ab9772ebef2a64423b577c
Author: Antonio Borneo <[email protected]>
Date:   Thu Aug 21 11:14:36 2025 +0200

    openocd: remove further obsolete hooks for building on eCos
    
    The eCos build has been dropped in 2012 with commit 39650e2273bc
    ("ecosboard: delete bit-rotted eCos code").
    
    Drop last eCos related code.
    
    Change-Id: I6b0de6386386c0102d540504236dda58d7a664b9
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/doc/manual/server.txt b/doc/manual/server.txt
index 20e48c1f43..3c31e6fc62 100644
--- a/doc/manual/server.txt
+++ b/doc/manual/server.txt
@@ -190,7 +190,6 @@ Remember: OpenOCD runs on:
 -# FreeBSD
 -# Cygwin
 -# MinGW32
--# Ecos
 
 How can we get that to work?
 
diff --git a/src/helper/system.h b/src/helper/system.h
index bd96d626ab..60308abcd6 100644
--- a/src/helper/system.h
+++ b/src/helper/system.h
@@ -39,13 +39,6 @@
 #include <poll.h>
 #endif
 
-#ifdef __ECOS
-/* missing from eCos */
-#ifndef EFAULT
-#define EFAULT 14      /* Bad address */
-#endif
-#endif
-
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
diff --git a/src/helper/types.h b/src/helper/types.h
index b3edd21184..8b02d213b1 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -276,62 +276,6 @@ static inline int parity_u32(uint32_t x)
 #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;
 #define TARGET_ADDR_MAX UINT64_MAX
 #define TARGET_PRIdADDR PRId64

-- 

Reply via email to