rename aligned() macro to _minix_aligned
This commit is contained in:
parent
c90cdadcfb
commit
493ea15714
|
@ -105,6 +105,6 @@
|
||||||
|
|
||||||
#define trunc_page_ps(va, ps) ((va) & ~(ps - 1))
|
#define trunc_page_ps(va, ps) ((va) & ~(ps - 1))
|
||||||
#define round_page_ps(va, ps) (((va) + (ps - 1)) & ~(ps - 1))
|
#define round_page_ps(va, ps) (((va) + (ps - 1)) & ~(ps - 1))
|
||||||
#define aligned(a, t) (trunc_page_ps((u_long)(a), sizeof(t)) == (u_long)(a))
|
#define _minix_aligned(a, t) (trunc_page_ps((u_long)(a), sizeof(t)) == (u_long)(a))
|
||||||
|
|
||||||
#endif /* !_I386_INCLUDE_PARAM_H_ */
|
#endif /* !_I386_INCLUDE_PARAM_H_ */
|
||||||
|
|
|
@ -53,7 +53,7 @@ int read_header_elf(
|
||||||
}
|
}
|
||||||
|
|
||||||
phdr = (const Elf_Phdr *)(exec_hdr + hdr->e_phoff);
|
phdr = (const Elf_Phdr *)(exec_hdr + hdr->e_phoff);
|
||||||
if (!aligned(phdr, Elf_Addr)) {
|
if (!_minix_aligned(phdr, Elf_Addr)) {
|
||||||
return ENOEXEC;
|
return ENOEXEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue