summaryrefslogtreecommitdiff
path: root/ldso/ldso/m68k
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-28 21:33:41 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-28 21:33:41 +0000
commita46c34c4ec04aa052116f787040180d12b74793b (patch)
tree6a12ad7d75020df4db4f4fef3ac80173e72abac4 /ldso/ldso/m68k
parent6a44e26b674d67ec8e326bd1f85e9cdb9fbd59c2 (diff)
Patch from Tobias Anderberg <tobias.anderberg@axis.com> to abstract
out page alignment issues. As we we were assuming 4k pages, which need not be the case...
Diffstat (limited to 'ldso/ldso/m68k')
-rw-r--r--ldso/ldso/m68k/dl-sysdep.h5
-rw-r--r--ldso/ldso/m68k/ld_sysdep.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/ldso/ldso/m68k/dl-sysdep.h b/ldso/ldso/m68k/dl-sysdep.h
index a9089286b..2a8dcca5f 100644
--- a/ldso/ldso/m68k/dl-sysdep.h
+++ b/ldso/ldso/m68k/dl-sysdep.h
@@ -81,3 +81,8 @@ extern unsigned int _dl_linux_resolver (int, int, struct elf_resolve *, int);
/* Define this because we do not want to call .udiv in the library.
Not needed for m68k. */
#define do_rem(result, n, base) ((result) = (n) % (base))
+
+/* 4096 bytes alignment */
+#define PAGE_ALIGN 0xfffff000
+#define ADDR_ALIGN 0xfff
+#define OFFS_ALIGN 0x7ffff000
diff --git a/ldso/ldso/m68k/ld_sysdep.h b/ldso/ldso/m68k/ld_sysdep.h
index a9089286b..2a8dcca5f 100644
--- a/ldso/ldso/m68k/ld_sysdep.h
+++ b/ldso/ldso/m68k/ld_sysdep.h
@@ -81,3 +81,8 @@ extern unsigned int _dl_linux_resolver (int, int, struct elf_resolve *, int);
/* Define this because we do not want to call .udiv in the library.
Not needed for m68k. */
#define do_rem(result, n, base) ((result) = (n) % (base))
+
+/* 4096 bytes alignment */
+#define PAGE_ALIGN 0xfffff000
+#define ADDR_ALIGN 0xfff
+#define OFFS_ALIGN 0x7ffff000