Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35461
b: refs/heads/master
c: 6ff6340
h: refs/heads/master
i:
  35459: 1486cbe
v: v3
  • Loading branch information
David Woodhouse committed Sep 21, 2006
1 parent eb5ed3b commit 8ac3490
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f8b444ceabb228594121d3ccea15248a4c2e1a4
refs/heads/master: 6ff6340abeaaf1a15587c87dac3e56754778cc7a
18 changes: 8 additions & 10 deletions trunk/include/asm-arm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

#include <asm/ptrace.h>
#include <asm/user.h>
#ifdef __KERNEL
#include <asm/procinfo.h>
#endif

typedef unsigned long elf_greg_t;
typedef unsigned long elf_freg_t[3];
Expand All @@ -31,11 +28,6 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG];

typedef struct user_fp elf_fpregset_t;

/*
* This is used to ensure we don't load something for the wrong architecture.
*/
#define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) )

/*
* These are used to set parameters in the core dumps.
*/
Expand All @@ -47,6 +39,14 @@ typedef struct user_fp elf_fpregset_t;
#endif
#define ELF_ARCH EM_ARM

#ifdef __KERNEL__
#include <asm/procinfo.h>

/*
* This is used to ensure we don't load something for the wrong architecture.
*/
#define elf_check_arch(x) ( ((x)->e_machine == EM_ARM) && (ELF_PROC_OK((x))) )

#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096

Expand Down Expand Up @@ -83,8 +83,6 @@ typedef struct user_fp elf_fpregset_t;
extern char elf_platform[];
#define ELF_PLATFORM (elf_platform)

#ifdef __KERNEL__

/*
* 32-bit code is always OK. Some cpus can do 26-bit, some can't.
*/
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-arm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
#define _ASMARM_PAGE_H


#ifdef __KERNEL__

/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))

#ifdef __KERNEL__

/* to align the pointer to the (next) page boundary */
#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)

Expand Down

0 comments on commit 8ac3490

Please sign in to comment.