summaryrefslogtreecommitdiff
path: root/nuttx/arch/x86
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-25 06:47:14 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-25 06:47:14 -0600
commit59d9019f45c3e0229b12eda8a57118e6e69f99ea (patch)
tree72d90a1b7df8e083437b7dd94e1ac65dd7b345e3 /nuttx/arch/x86
parent01e51ebc5a45a44a722fa049d89de79690a0b79b (diff)
downloadnuttx-59d9019f45c3e0229b12eda8a57118e6e69f99ea.tar.gz
nuttx-59d9019f45c3e0229b12eda8a57118e6e69f99ea.tar.bz2
nuttx-59d9019f45c3e0229b12eda8a57118e6e69f99ea.zip
Change naming of ELF interfaces from arch_ to up_ for consistency
Diffstat (limited to 'nuttx/arch/x86')
-rw-r--r--nuttx/arch/x86/src/common/up_elf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/arch/x86/src/common/up_elf.c b/nuttx/arch/x86/src/common/up_elf.c
index fd80960bb..7c5772a9b 100644
--- a/nuttx/arch/x86/src/common/up_elf.c
+++ b/nuttx/arch/x86/src/common/up_elf.c
@@ -70,7 +70,7 @@
****************************************************************************/
/****************************************************************************
- * Name: arch_checkarch
+ * Name: up_checkarch
*
* Description:
* Given the ELF header in 'hdr', verify that the ELF file is appropriate
@@ -85,13 +85,13 @@
*
****************************************************************************/
-bool arch_checkarch(FAR const Elf32_Ehdr *hdr)
+bool up_checkarch(FAR const Elf32_Ehdr *hdr)
{
return hdr->e_machine == EM_386 || hdr->e_machine == EM_486;
}
/****************************************************************************
- * Name: arch_relocate and arch_relocateadd
+ * Name: up_relocate and up_relocateadd
*
* Description:
* Perform on architecture-specific ELF relocation. Every architecture
@@ -108,8 +108,8 @@ bool arch_checkarch(FAR const Elf32_Ehdr *hdr)
*
****************************************************************************/
-int arch_relocate(FAR const Elf32_Rel *rel, FAR const Elf32_Sym *sym,
- uintptr_t addr)
+int up_relocate(FAR const Elf32_Rel *rel, FAR const Elf32_Sym *sym,
+ uintptr_t addr)
{
FAR uint32_t *ptr = (FAR uint32_t *)addr;
@@ -130,8 +130,8 @@ int arch_relocate(FAR const Elf32_Rel *rel, FAR const Elf32_Sym *sym,
return OK;
}
-int arch_relocateadd(FAR const Elf32_Rela *rel, FAR const Elf32_Sym *sym,
- uintptr_t addr)
+int up_relocateadd(FAR const Elf32_Rela *rel, FAR const Elf32_Sym *sym,
+ uintptr_t addr)
{
bdbg("Not supported\n");
return -ENOSYS;