Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
32014d86
Commit
32014d86
authored
Aug 19, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Reapply lost patch due to bk breakage.
parent
016a4b1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
40 deletions
+10
-40
arch/ia64/hp/sim/boot/Makefile
arch/ia64/hp/sim/boot/Makefile
+2
-2
arch/ia64/hp/sim/boot/bootloader.c
arch/ia64/hp/sim/boot/bootloader.c
+8
-38
No files found.
arch/ia64/hp/sim/boot/Makefile
View file @
32014d86
...
...
@@ -5,7 +5,7 @@
# License. See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1998 by David Mosberger-Tang <davidm@hpl.hp.com>
# Copyright (C) 1998
, 2003
by David Mosberger-Tang <davidm@hpl.hp.com>
#
targets-$(CONFIG_IA64_HP_SIM)
+=
bootloader
...
...
@@ -32,6 +32,6 @@ $(obj)/vmlinux.bin: vmlinux FORCE
LDFLAGS_bootloader
=
-static
-T
$(obj)/bootloader
:
$(src)/bootloader.lds $(obj)/bootloader.o $(obj)/fw-emu.o
\
$(obj)/bootloader
:
$(src)/bootloader.lds $(obj)/bootloader.o $(obj)/
boot_head.o $(obj)/
fw-emu.o
\
lib/lib.a arch/ia64/lib/lib.a FORCE
$(
call
if_changed,ld
)
arch/ia64/hp/sim/boot/bootloader.c
View file @
32014d86
/*
* arch/ia64/boot/bootloader.c
* arch/ia64/
hp/sim/
boot/bootloader.c
*
* Loads an ELF kernel.
*
* Copyright (C) 1998-200
2
Hewlett-Packard Co
* Copyright (C) 1998-200
3
Hewlett-Packard Co
* David Mosberger-Tang <davidm@hpl.hp.com>
* Stephane Eranian <eranian@hpl.hp.com>
*
...
...
@@ -17,32 +17,13 @@ struct task_struct; /* forward declaration for elf.h */
#include <linux/kernel.h>
#include <asm/elf.h>
#include <asm/intrinsics.h>
#include <asm/pal.h>
#include <asm/pgtable.h>
#include <asm/sal.h>
#include <asm/system.h>
#include <asm/intrinsics.h>
/* Simulator system calls: */
#define SSC_CONSOLE_INIT 20
#define SSC_GETCHAR 21
#define SSC_PUTCHAR 31
#define SSC_OPEN 50
#define SSC_CLOSE 51
#define SSC_READ 52
#define SSC_WRITE 53
#define SSC_GET_COMPLETION 54
#define SSC_WAIT_COMPLETION 55
#define SSC_CONNECT_INTERRUPT 58
#define SSC_GENERATE_INTERRUPT 59
#define SSC_SET_PERIODIC_INTERRUPT 60
#define SSC_GET_RTC 65
#define SSC_EXIT 66
#define SSC_LOAD_SYMBOLS 69
#define SSC_GET_TOD 74
#define SSC_GET_ARGS 75
#include "ssc.h"
struct
disk_req
{
unsigned
long
addr
;
...
...
@@ -54,10 +35,8 @@ struct disk_stat {
unsigned
count
;
};
#include "../kernel/fw-emu.c"
extern
void
jmp_to_kernel
(
ulong
sp
,
ulong
bp
,
ulong
e_entry
);
extern
void
__bsw1
(
void
);
extern
void
jmp_to_kernel
(
unsigned
long
bp
,
unsigned
long
e_entry
);
extern
struct
ia64_boot_param
*
sys_fw_init
(
const
char
*
args
,
int
arglen
);
/*
* Set a break point on this function so that symbols are available to set breakpoints in
...
...
@@ -83,9 +62,8 @@ cons_write (const char *buf)
#define MAX_ARGS 32
void
_start
(
void
)
start_bootloader
(
void
)
{
static
char
stack
[
16384
]
__attribute__
((
aligned
(
16
)));
static
char
mem
[
4096
];
static
char
buffer
[
1024
];
unsigned
long
off
;
...
...
@@ -99,13 +77,6 @@ _start (void)
char
*
kpath
,
*
args
;
long
arglen
=
0
;
extern
__u64
__gp
;
register
unsigned
long
tmp
=
(
unsigned
long
)
&
stack
[
0
];
ia64_setreg
(
_IA64_REG_GP
,
__gp
);
ia64_setreg
(
_IA64_REG_SP
,
tmp
);
__bsw1
();
ssc
(
0
,
0
,
0
,
0
,
SSC_CONSOLE_INIT
);
/*
...
...
@@ -206,8 +177,7 @@ _start (void)
ssc
(
0
,
(
long
)
kpath
,
0
,
0
,
SSC_LOAD_SYMBOLS
);
debug_break
();
tmp
=
__pa
(
&
stack
);
jmp_to_kernel
(
tmp
,
(
unsigned
long
)
bp
,
e_entry
);
jmp_to_kernel
((
unsigned
long
)
bp
,
e_entry
);
cons_write
(
"kernel returned!
\n
"
);
ssc
(
-
1
,
0
,
0
,
0
,
SSC_EXIT
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment