From: Alan Cox Date: Mon, 1 Jun 2015 21:58:55 +0000 (+0100) Subject: cpu-6809: add ntohs/ntohl for networking work X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4707f28538630c59877de09145cf21c17e6835c3;p=FUZIX.git cpu-6809: add ntohs/ntohl for networking work Starting here as it's easier to work on bigendian first --- diff --git a/Kernel/cpu-6809/cpu.h b/Kernel/cpu-6809/cpu.h index 7cb6f89b..fe68c4bd 100644 --- a/Kernel/cpu-6809/cpu.h +++ b/Kernel/cpu-6809/cpu.h @@ -28,6 +28,10 @@ extern void *memset(void *, int, size_t); extern size_t strlen(const char *); extern uint16_t swab(uint16_t); +/* 6809 wins on this one! */ +#define ntohs(x) (x) +#define ntohl(x) (x) + /* 6809 doesn't benefit from making a few key variables in non-reentrant functions static */ #define staticfast auto