diff options
| author | Michael Brown | 2015-03-02 17:25:53 +0100 |
|---|---|---|
| committer | Michael Brown | 2015-03-02 17:35:37 +0100 |
| commit | 01d16d821f4218ce0db9257013d0ad9b339cabe6 (patch) | |
| tree | 15cd12a97c17dd6806bcb32e204cc510aed9719a /src/arch | |
| parent | [libc] Rewrite setjmp() and longjmp() (diff) | |
| download | ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.gz ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.xz ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.zip | |
[libc] Rewrite byte-swapping code
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/i386/include/bits/endian.h | 8 | ||||
| -rw-r--r-- | src/arch/x86/include/bits/endian.h | 8 | ||||
| -rw-r--r-- | src/arch/x86_64/include/bits/endian.h | 6 |
3 files changed, 8 insertions, 14 deletions
diff --git a/src/arch/i386/include/bits/endian.h b/src/arch/i386/include/bits/endian.h deleted file mode 100644 index 841885424..000000000 --- a/src/arch/i386/include/bits/endian.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef ETHERBOOT_BITS_ENDIAN_H -#define ETHERBOOT_BITS_ENDIAN_H - -FILE_LICENCE ( GPL2_OR_LATER ); - -#define __BYTE_ORDER __LITTLE_ENDIAN - -#endif /* ETHERBOOT_BITS_ENDIAN_H */ diff --git a/src/arch/x86/include/bits/endian.h b/src/arch/x86/include/bits/endian.h new file mode 100644 index 000000000..85718cfdd --- /dev/null +++ b/src/arch/x86/include/bits/endian.h @@ -0,0 +1,8 @@ +#ifndef _BITS_ENDIAN_H +#define _BITS_ENDIAN_H + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#define __BYTE_ORDER __LITTLE_ENDIAN + +#endif /* _BITS_ENDIAN_H */ diff --git a/src/arch/x86_64/include/bits/endian.h b/src/arch/x86_64/include/bits/endian.h deleted file mode 100644 index 413e702db..000000000 --- a/src/arch/x86_64/include/bits/endian.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef ETHERBOOT_BITS_ENDIAN_H -#define ETHERBOOT_BITS_ENDIAN_H - -#define __BYTE_ORDER __LITTLE_ENDIAN - -#endif /* ETHERBOOT_BITS_ENDIAN_H */ |
