Skip to content

Commit

Permalink
[POWERPC] Make kernel_entry_t have global scope in bootwrapper
Browse files Browse the repository at this point in the history
For the convenience of custom platform code make the powerpc
bootwrapper typdef kernel_entry_t global in scope.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Jun 28, 2007
1 parent b96fbb6 commit 62cf6a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/powerpc/boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ struct addr_range {
unsigned long size;
};

typedef void (*kernel_entry_t)(unsigned long, unsigned long, void *);

#undef DEBUG

static struct addr_range prep_kernel(void)
Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/boot/ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#define MAX_PATH_LEN 256
#define MAX_PROP_LEN 256 /* What should this be? */

typedef void (*kernel_entry_t)(unsigned long r3, unsigned long r4, void *r5);

/* Platform specific operations */
struct platform_ops {
void (*fixups)(void);
Expand Down

0 comments on commit 62cf6a9

Please sign in to comment.