From 4707f28538630c59877de09145cf21c17e6835c3 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 1 Jun 2015 22:58:55 +0100 Subject: [PATCH] cpu-6809: add ntohs/ntohl for networking work Starting here as it's easier to work on bigendian first --- Kernel/cpu-6809/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.34.1