rename aligned() macro to _minix_aligned

This commit is contained in:
Ben Gras 2011-03-02 16:05:59 +00:00
parent c90cdadcfb
commit 493ea15714
2 changed files with 2 additions and 2 deletions

View file

@ -105,6 +105,6 @@
#define trunc_page_ps(va, ps) ((va) & ~(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_ */

View file

@ -53,7 +53,7 @@ int read_header_elf(
}
phdr = (const Elf_Phdr *)(exec_hdr + hdr->e_phoff);
if (!aligned(phdr, Elf_Addr)) {
if (!_minix_aligned(phdr, Elf_Addr)) {
return ENOEXEC;
}