mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-07 13:45:07 -05:00
libfdt: Fixups for 64-bit machines
The error encoding for pointers is incorrect on machines where sizeof(int) != sizeof(void *), which includes most 64-bit platforms (in particular, AMD64 and powerpc64). This patch fixes it.
This commit is contained in:
parent
e25487db34
commit
1a765f51a4
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ const char *_fdt_find_string(const char *strtab, int tabsize, const char *s);
|
|||
int _fdt_node_end_offset(struct fdt_header *fdt, int nodeoffset);
|
||||
|
||||
#define OFFSET_ERROR(code) -(code)
|
||||
#define PTR_ERROR(code) (void *)(-(code))
|
||||
#define PTR_ERROR(code) (void *)(-(long)(code))
|
||||
|
||||
#define SW_MAGIC (~FDT_MAGIC)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue