mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
0ae0b54565
Currently the bootwrapper has implementations of strchr() and strncmp(), but they're inlines in flatdevtree_env.h, rather than in string.S with all the rest of the string functions. This moves them to string.S. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
28 lines
700 B
C
28 lines
700 B
C
/*
|
|
* This file adds the header file glue so that the shared files
|
|
* flatdevicetree.[ch] can compile and work in the powerpc bootwrapper.
|
|
*
|
|
* strncmp & strchr copied from <file:lib/strings.c>
|
|
* Copyright (C) 1991, 1992 Linus Torvalds
|
|
*
|
|
* Maintained by: Mark A. Greer <mgreer@mvista.com>
|
|
*/
|
|
#ifndef _PPC_BOOT_FLATDEVTREE_ENV_H_
|
|
#define _PPC_BOOT_FLATDEVTREE_ENV_H_
|
|
|
|
#include <stdarg.h>
|
|
#include <stddef.h>
|
|
#include "types.h"
|
|
#include "string.h"
|
|
#include "stdio.h"
|
|
#include "ops.h"
|
|
|
|
#define be16_to_cpu(x) (x)
|
|
#define cpu_to_be16(x) (x)
|
|
#define be32_to_cpu(x) (x)
|
|
#define cpu_to_be32(x) (x)
|
|
#define be64_to_cpu(x) (x)
|
|
#define cpu_to_be64(x) (x)
|
|
|
|
#endif /* _PPC_BOOT_FLATDEVTREE_ENV_H_ */
|