public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48e4544
)
cpu-6809: add ntohs/ntohl for networking work
author
Alan Cox
<alan@linux.intel.com>
Mon, 1 Jun 2015 21:58:55 +0000
(22:58 +0100)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/Kernel/cpu-6809/cpu.h
b/Kernel/cpu-6809/cpu.h
index
7cb6f89
..
fe68c4b
100644
(file)
--- 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