Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
d3163d3f
Commit
d3163d3f
authored
22 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Initial revision
parent
2f001a3c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/syscall.S
+64
-0
64 additions, 0 deletions
examples/syscall.S
with
64 additions
and
0 deletions
examples/syscall.S
0 → 100644
+
64
−
0
View file @
d3163d3f
#include <ppc_asm.tmpl>
#include <ppc_defs.h>
#include <syscall.h>
#ifdef CONFIG_ARM /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
#warning ARM version not implemented yet /* XXXXXXXXXXXXXXXXXXXXXXXXXXXX */
.
global
mon_getc
.
type
mon_getc
,
function
mon_getc
:
.
global
mon_tstc
.
type
mon_tstc
,
function
mon_tstc
:
.
global
mon_putc
.
type
mon_putc
,
function
mon_putc
:
.
global
mon_puts
.
type
mon_puts
,
function
mon_puts
:
.
global
mon_printf
.
type
mon_printf
,
function
mon_printf
:
.
global
mon_install_hdlr
.
type
mon_install_hdlr
,
function
mon_install_hdlr
:
.
global
mon_free_hdlr
.
type
mon_free_hdlr
,
function
mon_free_hdlr
:
.
global
mon_malloc
.
type
mon_malloc
,
function
mon_malloc
:
.
global
mon_free
.
type
mon_free
,
function
mon_free
:
@
args
=
0
,
pretend
=
0
,
frame
=
0
@
frame_needed
=
1
,
current_function_anonymous_args
=
0
mov
ip
,
sp
stmfd
sp
!,
{
fp
,
ip
,
lr
,
pc
}
sub
fp
,
ip
,
#
4
ldmea
fp
,
{
fp
,
sp
,
pc
}
#else /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
#define SYSCALL(name,n) \
.
globl
name
; \
name
:
; \
li
r0
,
n
; \
sc
; \
blr
.
text
/
*
*
Make
sure
these
functions
are
in
the
same
order
as
they
*
appear
in
the
"include/syscall.h"
header
file
!!!
*/
SYSCALL
(
mon_getc
,
SYSCALL_GETC
)
SYSCALL
(
mon_tstc
,
SYSCALL_TSTC
)
SYSCALL
(
mon_putc
,
SYSCALL_PUTC
)
SYSCALL
(
mon_puts
,
SYSCALL_PUTS
)
SYSCALL
(
mon_printf
,
SYSCALL_PRINTF
)
SYSCALL
(
mon_install_hdlr
,
SYSCALL_INSTALL_HDLR
)
SYSCALL
(
mon_free_hdlr
,
SYSCALL_FREE_HDLR
)
SYSCALL
(
mon_malloc
,
SYSCALL_MALLOC
)
SYSCALL
(
mon_free
,
SYSCALL_FREE
)
#endif /* CONFIG_ARM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment