cpu-6809: add ntohs/ntohl for networking work
authorAlan Cox <alan@linux.intel.com>
Mon, 1 Jun 2015 21:58:55 +0000 (22:58 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 1 Jun 2015 21:58:55 +0000 (22:58 +0100)
Starting here as it's easier to work on bigendian first

Kernel/cpu-6809/cpu.h

index 7cb6f89..fe68c4b 100644 (file)
@@ -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