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
nexedi
linux
Commits
912c173d
Commit
912c173d
authored
Apr 28, 2002
by
Brian Gerst
Committed by
Jaroslav Kysela
Apr 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Removing SYMBOL_NAME part 4
m68k arch
parent
e64a5d08
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
426 additions
and
426 deletions
+426
-426
arch/m68k/atari/ataints.c
arch/m68k/atari/ataints.c
+9
-9
arch/m68k/fpsp040/skeleton.S
arch/m68k/fpsp040/skeleton.S
+21
-21
arch/m68k/ifpsp060/fskeleton.S
arch/m68k/ifpsp060/fskeleton.S
+9
-9
arch/m68k/ifpsp060/iskeleton.S
arch/m68k/ifpsp060/iskeleton.S
+4
-4
arch/m68k/ifpsp060/os.S
arch/m68k/ifpsp060/os.S
+2
-2
arch/m68k/kernel/entry.S
arch/m68k/kernel/entry.S
+285
-285
arch/m68k/kernel/head.S
arch/m68k/kernel/head.S
+50
-50
arch/m68k/kernel/signal.c
arch/m68k/kernel/signal.c
+2
-2
arch/m68k/kernel/sun3-head.S
arch/m68k/kernel/sun3-head.S
+28
-28
arch/m68k/kernel/traps.c
arch/m68k/kernel/traps.c
+1
-1
arch/m68k/lib/semaphore.S
arch/m68k/lib/semaphore.S
+4
-4
arch/m68k/math-emu/fp_entry.S
arch/m68k/math-emu/fp_entry.S
+10
-10
include/asm-m68k/system.h
include/asm-m68k/system.h
+1
-1
No files found.
arch/m68k/atari/ataints.c
View file @
912c173d
...
@@ -168,8 +168,8 @@ asmlinkage void IRQ_NAME(n); \
...
@@ -168,8 +168,8 @@ asmlinkage void IRQ_NAME(n); \
/* Dummy function to allow asm with operands. */
\
/* Dummy function to allow asm with operands. */
\
void atari_slow_irq_##n##_dummy (void) { \
void atari_slow_irq_##n##_dummy (void) { \
__asm__ (__ALIGN_STR "\n" \
__asm__ (__ALIGN_STR "\n" \
SYMBOL_NAME_STR(atari_slow_irq_) #n "_handler:\t"
\
"atari_slow_irq_" #n "_handler:\t"
\
" addql #1,
"SYMBOL_NAME_STR(irq_stat)"+8\n"
/* local_irq_count */
\
" addql #1,
irq_stat+8\n"
/* local_irq_count */
\
SAVE_ALL_INT "\n" \
SAVE_ALL_INT "\n" \
GET_CURRENT(%%d0) "\n" \
GET_CURRENT(%%d0) "\n" \
" andb #~(1<<(%c3&7)),%a4:w\n"
/* mask this interrupt */
\
" andb #~(1<<(%c3&7)),%a4:w\n"
/* mask this interrupt */
\
...
@@ -190,7 +190,7 @@ SYMBOL_NAME_STR(atari_slow_irq_) #n "_handler:\t" \
...
@@ -190,7 +190,7 @@ SYMBOL_NAME_STR(atari_slow_irq_) #n "_handler:\t" \
" orw #0x0600,%%sr\n" \
" orw #0x0600,%%sr\n" \
" andw #0xfeff,%%sr\n"
/* set IPL = 6 again */
\
" andw #0xfeff,%%sr\n"
/* set IPL = 6 again */
\
" orb #(1<<(%c3&7)),%a4:w\n"
/* now unmask the int again */
\
" orb #(1<<(%c3&7)),%a4:w\n"
/* now unmask the int again */
\
" jbra
"SYMBOL_NAME_STR(ret_from_interrupt)"\n"
\
" jbra
ret_from_interrupt\n"
\
: : "i" (&kstat.irqs[0][n+8]), "i" (&irq_handler[n+8]), \
: : "i" (&kstat.irqs[0][n+8]), "i" (&irq_handler[n+8]), \
"n" (PT_OFF_SR), "n" (n), \
"n" (PT_OFF_SR), "n" (n), \
"i" (n & 8 ? (n & 16 ? &tt_mfp.int_mk_a : &mfp.int_mk_a) \
"i" (n & 8 ? (n & 16 ? &tt_mfp.int_mk_a : &mfp.int_mk_a) \
...
@@ -272,10 +272,10 @@ asmlinkage void atari_prio_irq_handler( void );
...
@@ -272,10 +272,10 @@ asmlinkage void atari_prio_irq_handler( void );
/* Dummy function to allow asm with operands. */
/* Dummy function to allow asm with operands. */
void
atari_fast_prio_irq_dummy
(
void
)
{
void
atari_fast_prio_irq_dummy
(
void
)
{
__asm__
(
__ALIGN_STR
"
\n
"
__asm__
(
__ALIGN_STR
"
\n
"
SYMBOL_NAME_STR
(
atari_fast_irq_handler
)
"
:
"atari_fast_irq_handler
:
orw #0x700,%%sr /* disable all interrupts */
orw #0x700,%%sr /* disable all interrupts */
"
SYMBOL_NAME_STR
(
atari_prio_irq_handler
)
"
:
\t
atari_prio_irq_handler
:
\t
addql #1,
"
SYMBOL_NAME_STR
(
irq_stat
)
"
+8
\n
"
/* local_irq_count */
addql #1,
irq_stat
+8
\n
"
/* local_irq_count */
SAVE_ALL_INT
"
\n
"
SAVE_ALL_INT
"
\n
"
GET_CURRENT
(
%%
d0
)
"
GET_CURRENT
(
%%
d0
)
"
/* get vector number from stack frame and convert to source */
/* get vector number from stack frame and convert to source */
...
@@ -285,7 +285,7 @@ SYMBOL_NAME_STR(atari_fast_irq_handler) ":
...
@@ -285,7 +285,7 @@ SYMBOL_NAME_STR(atari_fast_irq_handler) ":
addw #(0x40-8-0x18),%%d0
addw #(0x40-8-0x18),%%d0
1: lea %a0,%%a0
1: lea %a0,%%a0
addql #1,%%a0@(%%d0:l:4)
addql #1,%%a0@(%%d0:l:4)
lea
"
SYMBOL_NAME_STR
(
irq_handler
)
"
,%%a0
lea
irq_handler
,%%a0
lea %%a0@(%%d0:l:8),%%a0
lea %%a0@(%%d0:l:8),%%a0
pea %%sp@ /* push frame address */
pea %%sp@ /* push frame address */
movel %%a0@(4),%%sp@- /* push handler data */
movel %%a0@(4),%%sp@- /* push handler data */
...
@@ -294,7 +294,7 @@ SYMBOL_NAME_STR(atari_fast_irq_handler) ":
...
@@ -294,7 +294,7 @@ SYMBOL_NAME_STR(atari_fast_irq_handler) ":
jsr %%a0@ /* and call the handler */
jsr %%a0@ /* and call the handler */
addql #8,%%sp
addql #8,%%sp
addql #4,%%sp
addql #4,%%sp
jbra
"
SYMBOL_NAME_STR
(
ret_from_interrupt
)
jbra
ret_from_interrupt"
:
:
"i"
(
&
kstat
.
irqs
[
0
]),
"n"
(
PT_OFF_FORMATVEC
)
:
:
"i"
(
&
kstat
.
irqs
[
0
]),
"n"
(
PT_OFF_FORMATVEC
)
);
);
}
}
...
@@ -306,7 +306,7 @@ SYMBOL_NAME_STR(atari_fast_irq_handler) ":
...
@@ -306,7 +306,7 @@ SYMBOL_NAME_STR(atari_fast_irq_handler) ":
asmlinkage
void
falcon_hblhandler
(
void
);
asmlinkage
void
falcon_hblhandler
(
void
);
asm
(
".text
\n
"
asm
(
".text
\n
"
__ALIGN_STR
"
\n
"
__ALIGN_STR
"
\n
"
SYMBOL_NAME_STR
(
falcon_hblhandler
)
"
:
"falcon_hblhandler
:
orw #0x200,%sp@ /* set saved ipl to 2 */
orw #0x200,%sp@ /* set saved ipl to 2 */
rte"
);
rte"
);
...
...
arch/m68k/fpsp040/skeleton.S
View file @
912c173d
...
@@ -73,9 +73,9 @@ real_dz:
...
@@ -73,9 +73,9 @@ real_dz:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
Inexact
exception
|
Inexact
exception
...
@@ -164,9 +164,9 @@ inex_done:
...
@@ -164,9 +164,9 @@ inex_done:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
Overflow
exception
|
Overflow
exception
...
@@ -190,9 +190,9 @@ ovfl_done:
...
@@ -190,9 +190,9 @@ ovfl_done:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
Underflow
exception
|
Underflow
exception
...
@@ -216,9 +216,9 @@ unfl_done:
...
@@ -216,9 +216,9 @@ unfl_done:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
Signalling
NAN
exception
|
Signalling
NAN
exception
...
@@ -238,9 +238,9 @@ real_snan:
...
@@ -238,9 +238,9 @@ real_snan:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
Operand
Error
exception
|
Operand
Error
exception
...
@@ -260,9 +260,9 @@ real_operr:
...
@@ -260,9 +260,9 @@ real_operr:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
...
@@ -288,9 +288,9 @@ real_bsun:
...
@@ -288,9 +288,9 @@ real_bsun:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
F
-
line
exception
|
F
-
line
exception
...
@@ -309,9 +309,9 @@ real_fline:
...
@@ -309,9 +309,9 @@ real_fline:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
Unsupported
data
type
exception
|
Unsupported
data
type
exception
...
@@ -331,9 +331,9 @@ real_unsupp:
...
@@ -331,9 +331,9 @@ real_unsupp:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
bral
SYMBOL_NAME
(
ret_from_exception
)
bral
ret_from_exception
|
|
|
Trace
exception
|
Trace
exception
...
@@ -341,7 +341,7 @@ real_unsupp:
...
@@ -341,7 +341,7 @@ real_unsupp:
.
global
real_trace
.
global
real_trace
real_trace
:
real_trace
:
|
|
bral
SYMBOL_NAME
(
trap
)
bral
trap
|
|
|
fpsp_fmt_error
---
exit
point
for
frame
format
error
|
fpsp_fmt_error
---
exit
point
for
frame
format
error
...
@@ -382,7 +382,7 @@ fpsp_done:
...
@@ -382,7 +382,7 @@ fpsp_done:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
tstl
%
curptr
@
(
TASK_NEEDRESCHED
)
tstl
%
curptr
@
(
TASK_NEEDRESCHED
)
jne
SYMBOL_NAME
(
ret_from_exception
)
|
deliver
signals
,
jne
ret_from_exception
|
deliver
signals
,
|
reschedule
etc
..
|
reschedule
etc
..
RESTORE_ALL
RESTORE_ALL
...
@@ -505,7 +505,7 @@ in_ea:
...
@@ -505,7 +505,7 @@ in_ea:
.
section
.
fixup
,#
alloc
,#
execinstr
.
section
.
fixup
,#
alloc
,#
execinstr
.
even
.
even
1
:
1
:
jbra
SYMBOL_NAME
(
fpsp040_die
)
jbra
fpsp040_die
.
section
__ex_table
,#
alloc
.
section
__ex_table
,#
alloc
.
align
4
.
align
4
...
...
arch/m68k/ifpsp060/fskeleton.S
View file @
912c173d
...
@@ -80,7 +80,7 @@ _060_real_ovfl:
...
@@ -80,7 +80,7 @@ _060_real_ovfl:
fsave
-(%
sp
)
fsave
-(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
frestore
(%
sp
)+
frestore
(%
sp
)+
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
...
@@ -99,7 +99,7 @@ _060_real_unfl:
...
@@ -99,7 +99,7 @@ _060_real_unfl:
fsave
-(%
sp
)
fsave
-(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
frestore
(%
sp
)+
frestore
(%
sp
)+
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_operr
():
|
_060_real_operr
():
...
@@ -118,7 +118,7 @@ _060_real_operr:
...
@@ -118,7 +118,7 @@ _060_real_operr:
fsave
-(%
sp
)
fsave
-(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
frestore
(%
sp
)+
frestore
(%
sp
)+
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_snan
():
|
_060_real_snan
():
...
@@ -137,7 +137,7 @@ _060_real_snan:
...
@@ -137,7 +137,7 @@ _060_real_snan:
fsave
-(%
sp
)
fsave
-(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
frestore
(%
sp
)+
frestore
(%
sp
)+
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_dz
():
|
_060_real_dz
():
...
@@ -156,7 +156,7 @@ _060_real_dz:
...
@@ -156,7 +156,7 @@ _060_real_dz:
fsave
-(%
sp
)
fsave
-(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
frestore
(%
sp
)+
frestore
(%
sp
)+
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_inex
():
|
_060_real_inex
():
...
@@ -175,7 +175,7 @@ _060_real_inex:
...
@@ -175,7 +175,7 @@ _060_real_inex:
fsave
-(%
sp
)
fsave
-(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
move.w
#
0x6000
,
0x2
(%
sp
)
frestore
(%
sp
)+
frestore
(%
sp
)+
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_bsun
():
|
_060_real_bsun
():
...
@@ -197,7 +197,7 @@ _060_real_bsun:
...
@@ -197,7 +197,7 @@ _060_real_bsun:
andi.b
#
0xfe
,(%
sp
)
andi.b
#
0xfe
,(%
sp
)
fmove.l
(%
sp
)+,%
fpsr
fmove.l
(%
sp
)+,%
fpsr
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_fline
():
|
_060_real_fline
():
...
@@ -211,7 +211,7 @@ _060_real_bsun:
...
@@ -211,7 +211,7 @@ _060_real_bsun:
|
|
.
global
_060_real_fline
.
global
_060_real_fline
_060_real_fline
:
_060_real_fline
:
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_fpu_disabled
():
|
_060_real_fpu_disabled
():
...
@@ -250,7 +250,7 @@ _060_real_fpu_disabled:
...
@@ -250,7 +250,7 @@ _060_real_fpu_disabled:
|
|
.
global
_060_real_trap
.
global
_060_real_trap
_060_real_trap
:
_060_real_trap
:
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|############################################################################
|############################################################################
...
...
arch/m68k/ifpsp060/iskeleton.S
View file @
912c173d
...
@@ -76,7 +76,7 @@ _060_isp_done:
...
@@ -76,7 +76,7 @@ _060_isp_done:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
tstl
%
curptr
@
(
TASK_NEEDRESCHED
)
tstl
%
curptr
@
(
TASK_NEEDRESCHED
)
jne
SYMBOL_NAME
(
ret_from_exception
)
|
deliver
signals
,
jne
ret_from_exception
|
deliver
signals
,
|
reschedule
etc
..
|
reschedule
etc
..
RESTORE_ALL
RESTORE_ALL
...
@@ -113,7 +113,7 @@ _060_real_chk:
...
@@ -113,7 +113,7 @@ _060_real_chk:
|
bral
_060_real_trace
|
bral
_060_real_trace
real_chk_end
:
real_chk_end
:
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|
|
|
_060_real_divbyzero
:
|
_060_real_divbyzero
:
...
@@ -153,7 +153,7 @@ _060_real_divbyzero:
...
@@ -153,7 +153,7 @@ _060_real_divbyzero:
|
bral
_060_real_trace
|
bral
_060_real_trace
real_divbyzero_end
:
real_divbyzero_end
:
bral
SYMBOL_NAME
(
trap
)
|
jump
to
trap
handler
bral
trap
|
jump
to
trap
handler
|##########################
|##########################
...
...
arch/m68k/ifpsp060/os.S
View file @
912c173d
...
@@ -358,7 +358,7 @@ copyinae:
...
@@ -358,7 +358,7 @@ copyinae:
|
|
.
global
_060_real_trace
.
global
_060_real_trace
_060_real_trace
:
_060_real_trace
:
bral
SYMBOL_NAME
(
trap
)
bral
trap
|
|
|
_060_real_access
():
|
_060_real_access
():
...
@@ -374,7 +374,7 @@ _060_real_trace:
...
@@ -374,7 +374,7 @@ _060_real_trace:
|
|
.
global
_060_real_access
.
global
_060_real_access
_060_real_access
:
_060_real_access
:
bral
SYMBOL_NAME
(
buserr
)
bral
buserr
...
...
arch/m68k/kernel/entry.S
View file @
912c173d
...
@@ -44,36 +44,36 @@
...
@@ -44,36 +44,36 @@
#include "m68k_defs.h"
#include "m68k_defs.h"
.
globl
SYMBOL_NAME
(
system_call
),
SYMBOL_NAME
(
buserr
),
SYMBOL_NAME
(
trap
)
.
globl
system_call
,
buserr
,
trap
.
globl
SYMBOL_NAME
(
resume
),
SYMBOL_NAME
(
ret_from_exception
)
.
globl
resume
,
ret_from_exception
.
globl
SYMBOL_NAME
(
ret_from_signal
)
.
globl
ret_from_signal
.
globl
SYMBOL_NAME
(
inthandler
),
SYMBOL_NAME
(
sys_call_table
)
.
globl
inthandler
,
sys_call_table
.
globl
SYMBOL_NAME
(
sys_fork
),
SYMBOL_NAME
(
sys_clone
),
SYMBOL_NAME
(
sys_vfork
)
.
globl
sys_fork
,
sys_clone
,
sys_vfork
.
globl
SYMBOL_NAME
(
ret_from_interrupt
),
SYMBOL_NAME
(
bad_interrupt
)
.
globl
ret_from_interrupt
,
bad_interrupt
.
text
.
text
ENTRY
(
buserr
)
ENTRY
(
buserr
)
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
buserr_c
)
bsrl
buserr_c
addql
#
4
,%
sp
addql
#
4
,%
sp
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
ENTRY
(
trap
)
ENTRY
(
trap
)
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
movel
%
sp
,%
sp
@
-
|
stack
frame
pointer
argument
bsrl
SYMBOL_NAME
(
trap_c
)
bsrl
trap_c
addql
#
4
,%
sp
addql
#
4
,%
sp
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
ENTRY
(
reschedule
)
ENTRY
(
reschedule
)
|
save
top
of
frame
|
save
top
of
frame
movel
%
sp
,%
curptr
@
(
TASK_THREAD
+
THREAD_ESP0
)
movel
%
sp
,%
curptr
@
(
TASK_THREAD
+
THREAD_ESP0
)
pea
SYMBOL_NAME
(
ret_from_exception
)
pea
ret_from_exception
jmp
SYMBOL_NAME
(
schedule
)
jmp
schedule
|
After
a
fork
we
jump
here
directly
from
resume
,
|
After
a
fork
we
jump
here
directly
from
resume
,
|
so
that
%
d1
contains
the
previous
task
|
so
that
%
d1
contains
the
previous
task
...
@@ -81,32 +81,32 @@ ENTRY(reschedule)
...
@@ -81,32 +81,32 @@ ENTRY(reschedule)
|
what
happens
in
schedule_tail
()
in
future
...
|
what
happens
in
schedule_tail
()
in
future
...
ENTRY
(
ret_from_fork
)
ENTRY
(
ret_from_fork
)
movel
%
d1
,%
sp
@
-
movel
%
d1
,%
sp
@
-
jsr
SYMBOL_NAME
(
schedule_tail
)
jsr
schedule_tail
addql
#
4
,%
sp
addql
#
4
,%
sp
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
badsys
:
badsys
:
movel
#-
ENOSYS
,%
sp
@
(
PT_D0
)
movel
#-
ENOSYS
,%
sp
@
(
PT_D0
)
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
do_trace
:
do_trace
:
movel
#-
ENOSYS
,%
sp
@
(
PT_D0
)
|
needed
for
strace
movel
#-
ENOSYS
,%
sp
@
(
PT_D0
)
|
needed
for
strace
subql
#
4
,%
sp
subql
#
4
,%
sp
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
jbsr
SYMBOL_NAME
(
syscall_trace
)
jbsr
syscall_trace
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
addql
#
4
,%
sp
addql
#
4
,%
sp
movel
%
sp
@
(
PT_ORIG_D0
),%
d1
movel
%
sp
@
(
PT_ORIG_D0
),%
d1
movel
#-
ENOSYS
,%
d0
movel
#-
ENOSYS
,%
d0
cmpl
#
NR_syscalls
,%
d1
cmpl
#
NR_syscalls
,%
d1
jcc
1
f
jcc
1
f
jbsr
@
(
SYMBOL_NAME
(
sys_call_table
)
,%
d1
:
l
:
4
)
@
(
0
)
jbsr
@
(
sys_call_table
,%
d1
:
l
:
4
)
@
(
0
)
1
:
movel
%
d0
,%
sp
@
(
PT_D0
)
|
save
the
return
value
1
:
movel
%
d0
,%
sp
@
(
PT_D0
)
|
save
the
return
value
subql
#
4
,%
sp
|
dummy
return
address
subql
#
4
,%
sp
|
dummy
return
address
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
jbsr
SYMBOL_NAME
(
syscall_trace
)
jbsr
syscall_trace
SYMBOL_NAME_LABEL
(
ret_from_signal
)
ret_from_signal
:
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
addql
#
4
,%
sp
addql
#
4
,%
sp
/*
on
68040
complete
pending
writebacks
if
any
*/
/*
on
68040
complete
pending
writebacks
if
any
*/
...
@@ -115,11 +115,11 @@ SYMBOL_NAME_LABEL(ret_from_signal)
...
@@ -115,11 +115,11 @@ SYMBOL_NAME_LABEL(ret_from_signal)
subql
#
7
,%
d0
|
bus
error
frame
?
subql
#
7
,%
d0
|
bus
error
frame
?
jbne
1
f
jbne
1
f
movel
%
sp
,%
sp
@
-
movel
%
sp
,%
sp
@
-
jbsr
SYMBOL_NAME
(
berr_040cleanup
)
jbsr
berr_040cleanup
addql
#
4
,%
sp
addql
#
4
,%
sp
1
:
1
:
#endif
#endif
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
ENTRY
(
system_call
)
ENTRY
(
system_call
)
SAVE_ALL_SYS
SAVE_ALL_SYS
...
@@ -132,10 +132,10 @@ ENTRY(system_call)
...
@@ -132,10 +132,10 @@ ENTRY(system_call)
jne
do_trace
jne
do_trace
cmpl
#
NR_syscalls
,%
d0
cmpl
#
NR_syscalls
,%
d0
jcc
badsys
jcc
badsys
jbsr
@
(
SYMBOL_NAME
(
sys_call_table
)
,%
d0
:
l
:
4
)
@
(
0
)
jbsr
@
(
sys_call_table
,%
d0
:
l
:
4
)
@
(
0
)
movel
%
d0
,%
sp
@
(
PT_D0
)
|
save
the
return
value
movel
%
d0
,%
sp
@
(
PT_D0
)
|
save
the
return
value
SYMBOL_NAME_LABEL
(
ret_from_exception
)
ret_from_exception
:
btst
#
5
,%
sp
@
(
PT_SR
)
|
check
if
returning
to
kernel
btst
#
5
,%
sp
@
(
PT_SR
)
|
check
if
returning
to
kernel
bnes
2
f
|
if
so
,
skip
resched
,
signals
bnes
2
f
|
if
so
,
skip
resched
,
signals
|
only
allow
interrupts
when
we
are
really
the
last
one
on
the
|
only
allow
interrupts
when
we
are
really
the
last
one
on
the
...
@@ -143,9 +143,9 @@ SYMBOL_NAME_LABEL(ret_from_exception)
...
@@ -143,9 +143,9 @@ SYMBOL_NAME_LABEL(ret_from_exception)
|
heavy
interrupt
load
|
heavy
interrupt
load
andw
#
ALLOWINT
,%
sr
andw
#
ALLOWINT
,%
sr
tstl
%
curptr
@
(
TASK_NEEDRESCHED
)
tstl
%
curptr
@
(
TASK_NEEDRESCHED
)
jne
SYMBOL_NAME
(
reschedule
)
jne
reschedule
#if 0
#if 0
cmpl
#
SYMBOL_NAME
(
task
),%
curptr
|
task
[
0
]
cannot
have
signals
cmpl
#
task
,%
curptr
|
task
[
0
]
cannot
have
signals
jeq
2
f
jeq
2
f
#endif
#endif
|
check
for
delayed
trace
|
check
for
delayed
trace
...
@@ -153,7 +153,7 @@ SYMBOL_NAME_LABEL(ret_from_exception)
...
@@ -153,7 +153,7 @@ SYMBOL_NAME_LABEL(ret_from_exception)
jne
do_delayed_trace
jne
do_delayed_trace
5
:
5
:
tstl
%
curptr
@
(
TASK_STATE
)
|
state
tstl
%
curptr
@
(
TASK_STATE
)
|
state
jne
SYMBOL_NAME
(
reschedule
)
jne
reschedule
tstl
%
curptr
@
(
TASK_SIGPENDING
)
tstl
%
curptr
@
(
TASK_SIGPENDING
)
jne
Lsignal_return
jne
Lsignal_return
...
@@ -164,7 +164,7 @@ Lsignal_return:
...
@@ -164,7 +164,7 @@ Lsignal_return:
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
clrl
%
sp
@
-
clrl
%
sp
@
-
bsrl
SYMBOL_NAME
(
do_signal
)
bsrl
do_signal
addql
#
8
,%
sp
addql
#
8
,%
sp
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
addql
#
4
,%
sp
addql
#
4
,%
sp
...
@@ -175,7 +175,7 @@ do_delayed_trace:
...
@@ -175,7 +175,7 @@ do_delayed_trace:
pea
1
|
send
SIGTRAP
pea
1
|
send
SIGTRAP
movel
%
curptr
,%
sp
@
-
movel
%
curptr
,%
sp
@
-
pea
LSIGTRAP
pea
LSIGTRAP
jbsr
SYMBOL_NAME
(
send_sig
)
jbsr
send_sig
addql
#
8
,%
sp
addql
#
8
,%
sp
addql
#
4
,%
sp
addql
#
4
,%
sp
jra
5
b
jra
5
b
...
@@ -183,15 +183,15 @@ do_delayed_trace:
...
@@ -183,15 +183,15 @@ do_delayed_trace:
#if 0
#if 0
#if CONFIG_AMIGA
#if CONFIG_AMIGA
SYMBOL_NAME_LABEL
(
ami_inthandler
)
ami_inthandler
:
addql
#
1
,
SYMBOL_NAME
(
irq_stat
)+
8
|
local_irq_count
addql
#
1
,
irq_stat
+
8
|
local_irq_count
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
bfextu
%
sp
@
(
PT_VECTOR
){#
4
,#
12
},%
d0
bfextu
%
sp
@
(
PT_VECTOR
){#
4
,#
12
},%
d0
movel
%
d0
,
%a0
movel
%
d0
,
%a0
addql
#
1
,
%a0
@
(
SYMBOL_NAME
(
kstat
)
+
STAT_IRQ
-
VECOFF
(
VEC_SPUR
))
addql
#
1
,
%a0
@
(
kstat
+
STAT_IRQ
-
VECOFF
(
VEC_SPUR
))
movel
%a0
@
(
SYMBOL_NAME
(
autoirq_list
)
-
VECOFF
(
VEC_SPUR
)),
%a0
movel
%a0
@
(
autoirq_list
-
VECOFF
(
VEC_SPUR
)),
%a0
|
amiga
vector
int
handler
get
the
req
mask
instead
of
irq
vector
|
amiga
vector
int
handler
get
the
req
mask
instead
of
irq
vector
lea
CUSTOMBASE
,
%a1
lea
CUSTOMBASE
,
%a1
...
@@ -202,7 +202,7 @@ SYMBOL_NAME_LABEL(ami_inthandler)
...
@@ -202,7 +202,7 @@ SYMBOL_NAME_LABEL(ami_inthandler)
pea
%
sp
@
pea
%
sp
@
movel
%a0
@
(
IRQ_DEVID
),%
sp
@
-
movel
%a0
@
(
IRQ_DEVID
),%
sp
@
-
movel
%
d0
,%
sp
@
-
movel
%
d0
,%
sp
@
-
pea
%
pc
@
(
SYMBOL_NAME
(
ret_from_interrupt
)
:
w
)
pea
%
pc
@
(
ret_from_interrupt
:
w
)
jbra
@
(
IRQ_HANDLER
,
%a0
)
@
(
0
)
jbra
@
(
IRQ_HANDLER
,
%a0
)
@
(
0
)
ENTRY
(
nmi_handler
)
ENTRY
(
nmi_handler
)
...
@@ -213,10 +213,10 @@ ENTRY(nmi_handler)
...
@@ -213,10 +213,10 @@ ENTRY(nmi_handler)
/*
/*
**
This
is
the
main
interrupt
handler
,
responsible
for
calling
process_int
()
**
This
is
the
main
interrupt
handler
,
responsible
for
calling
process_int
()
*/
*/
SYMBOL_NAME_LABEL
(
inthandler
)
inthandler
:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
addql
#
1
,
SYMBOL_NAME
(
irq_stat
)+
8
|
local_irq_count
addql
#
1
,
irq_stat
+
8
|
local_irq_count
|
put
exception
#
in
d0
|
put
exception
#
in
d0
bfextu
%
sp
@
(
PT_VECTOR
){#
4
,#
10
},%
d0
bfextu
%
sp
@
(
PT_VECTOR
){#
4
,#
10
},%
d0
...
@@ -227,15 +227,15 @@ SYMBOL_NAME_LABEL(inthandler)
...
@@ -227,15 +227,15 @@ SYMBOL_NAME_LABEL(inthandler)
jbeq
1
f
jbeq
1
f
btstb
#
3
,
0xff000004
btstb
#
3
,
0xff000004
jbeq
1
f
jbeq
1
f
jbsr
SYMBOL_NAME
(
floppy_hardint
)
jbsr
floppy_hardint
jbra
3
f
jbra
3
f
1
:
1
:
#endif
#endif
jbsr
SYMBOL_NAME
(
process_int
)
|
process
the
IRQ
jbsr
process_int
|
process
the
IRQ
3
:
addql
#
8
,%
sp
|
pop
parameters
off
stack
3
:
addql
#
8
,%
sp
|
pop
parameters
off
stack
SYMBOL_NAME_LABEL
(
ret_from_interrupt
)
ret_from_interrupt
:
subql
#
1
,
SYMBOL_NAME
(
irq_stat
)+
8
|
local_irq_count
subql
#
1
,
irq_stat
+
8
|
local_irq_count
jeq
1
f
jeq
1
f
2
:
2
:
RESTORE_ALL
RESTORE_ALL
...
@@ -249,24 +249,24 @@ SYMBOL_NAME_LABEL(ret_from_interrupt)
...
@@ -249,24 +249,24 @@ SYMBOL_NAME_LABEL(ret_from_interrupt)
#endif
#endif
/
*
check
if
we
need
to
do
software
interrupts
*/
/
*
check
if
we
need
to
do
software
interrupts
*/
movel
SYMBOL_NAME
(
irq_stat
),%
d0
|
softirq_active
movel
irq_stat
,%
d0
|
softirq_active
andl
SYMBOL_NAME
(
irq_stat
)+
4
,%
d0
|
softirq_mask
andl
irq_stat
+
4
,%
d0
|
softirq_mask
jeq
SYMBOL_NAME
(
ret_from_exception
)
jeq
ret_from_exception
pea
SYMBOL_NAME
(
ret_from_exception
)
pea
ret_from_exception
jra
SYMBOL_NAME
(
do_softirq
)
jra
do_softirq
/*
Handler
for
uninitialized
and
spurious
interrupts
*/
/*
Handler
for
uninitialized
and
spurious
interrupts
*/
SYMBOL_NAME_LABEL
(
bad_interrupt
)
bad_interrupt
:
addql
#
1
,
SYMBOL_NAME
(
num_spurious
)
addql
#
1
,
num_spurious
rte
rte
ENTRY
(
sys_fork
)
ENTRY
(
sys_fork
)
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
jbsr
SYMBOL_NAME
(
m68k_fork
)
jbsr
m68k_fork
addql
#
4
,%
sp
addql
#
4
,%
sp
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
rts
rts
...
@@ -274,7 +274,7 @@ ENTRY(sys_fork)
...
@@ -274,7 +274,7 @@ ENTRY(sys_fork)
ENTRY
(
sys_clone
)
ENTRY
(
sys_clone
)
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
jbsr
SYMBOL_NAME
(
m68k_clone
)
jbsr
m68k_clone
addql
#
4
,%
sp
addql
#
4
,%
sp
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
rts
rts
...
@@ -282,7 +282,7 @@ ENTRY(sys_clone)
...
@@ -282,7 +282,7 @@ ENTRY(sys_clone)
ENTRY
(
sys_vfork
)
ENTRY
(
sys_vfork
)
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
jbsr
SYMBOL_NAME
(
m68k_vfork
)
jbsr
m68k_vfork
addql
#
4
,%
sp
addql
#
4
,%
sp
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
rts
rts
...
@@ -290,7 +290,7 @@ ENTRY(sys_vfork)
...
@@ -290,7 +290,7 @@ ENTRY(sys_vfork)
ENTRY
(
sys_sigsuspend
)
ENTRY
(
sys_sigsuspend
)
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
jbsr
SYMBOL_NAME
(
do_sigsuspend
)
jbsr
do_sigsuspend
addql
#
4
,%
sp
addql
#
4
,%
sp
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
rts
rts
...
@@ -298,24 +298,24 @@ ENTRY(sys_sigsuspend)
...
@@ -298,24 +298,24 @@ ENTRY(sys_sigsuspend)
ENTRY
(
sys_rt_sigsuspend
)
ENTRY
(
sys_rt_sigsuspend
)
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
pea
%
sp
@
(
SWITCH_STACK_SIZE
)
jbsr
SYMBOL_NAME
(
do_rt_sigsuspend
)
jbsr
do_rt_sigsuspend
addql
#
4
,%
sp
addql
#
4
,%
sp
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
rts
rts
ENTRY
(
sys_sigreturn
)
ENTRY
(
sys_sigreturn
)
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
jbsr
SYMBOL_NAME
(
do_sigreturn
)
jbsr
do_sigreturn
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
rts
rts
ENTRY
(
sys_rt_sigreturn
)
ENTRY
(
sys_rt_sigreturn
)
SAVE_SWITCH_STACK
SAVE_SWITCH_STACK
jbsr
SYMBOL_NAME
(
do_rt_sigreturn
)
jbsr
do_rt_sigreturn
RESTORE_SWITCH_STACK
RESTORE_SWITCH_STACK
rts
rts
SYMBOL_NAME_LABEL
(
resume
)
resume
:
/
*
/
*
*
Beware
-
when
entering
resume
,
prev
(
the
current
task
)
is
*
Beware
-
when
entering
resume
,
prev
(
the
current
task
)
is
*
in
a0
,
next
(
the
new
task
)
is
in
a1
,
so
don
't change these
*
in
a0
,
next
(
the
new
task
)
is
in
a1
,
so
don
't change these
...
@@ -343,14 +343,14 @@ SYMBOL_NAME_LABEL(resume)
...
@@ -343,14 +343,14 @@ SYMBOL_NAME_LABEL(resume)
/
*
save
floating
point
context
*/
/
*
save
floating
point
context
*/
#ifndef CONFIG_M68KFPU_EMU_ONLY
#ifndef CONFIG_M68KFPU_EMU_ONLY
#ifdef CONFIG_M68KFPU_EMU
#ifdef CONFIG_M68KFPU_EMU
tstl
SYMBOL_NAME
(
m68k_fputype
)
tstl
m68k_fputype
jeq
3
f
jeq
3
f
#endif
#endif
fsave
%a0
@
(
TASK_THREAD
+
THREAD_FPSTATE
)
fsave
%a0
@
(
TASK_THREAD
+
THREAD_FPSTATE
)
#if defined(CONFIG_M68060)
#if defined(CONFIG_M68060)
#if !defined(CPU_M68060_ONLY)
#if !defined(CPU_M68060_ONLY)
btst
#
3
,
SYMBOL_NAME
(
m68k_cputype
)
+
3
btst
#
3
,
m68k_cputype
+
3
beqs
1
f
beqs
1
f
#endif
#endif
/
*
The
060
FPU
keeps
status
in
bits
15
-
8
of
the
first
longword
*/
/
*
The
060
FPU
keeps
status
in
bits
15
-
8
of
the
first
longword
*/
...
@@ -377,12 +377,12 @@ SYMBOL_NAME_LABEL(resume)
...
@@ -377,12 +377,12 @@ SYMBOL_NAME_LABEL(resume)
/
*
restore
floating
point
context
*/
/
*
restore
floating
point
context
*/
#ifndef CONFIG_M68KFPU_EMU_ONLY
#ifndef CONFIG_M68KFPU_EMU_ONLY
#ifdef CONFIG_M68KFPU_EMU
#ifdef CONFIG_M68KFPU_EMU
tstl
SYMBOL_NAME
(
m68k_fputype
)
tstl
m68k_fputype
jeq
4
f
jeq
4
f
#endif
#endif
#if defined(CONFIG_M68060)
#if defined(CONFIG_M68060)
#if !defined(CPU_M68060_ONLY)
#if !defined(CPU_M68060_ONLY)
btst
#
3
,
SYMBOL_NAME
(
m68k_cputype
)
+
3
btst
#
3
,
m68k_cputype
+
3
beqs
1
f
beqs
1
f
#endif
#endif
/
*
The
060
FPU
keeps
status
in
bits
15
-
8
of
the
first
longword
*/
/
*
The
060
FPU
keeps
status
in
bits
15
-
8
of
the
first
longword
*/
...
@@ -424,231 +424,231 @@ SYMBOL_NAME_LABEL(resume)
...
@@ -424,231 +424,231 @@ SYMBOL_NAME_LABEL(resume)
.
data
.
data
ALIGN
ALIGN
SYMBOL_NAME_LABEL
(
sys_call_table
)
sys_call_table
:
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
0
-
old
"setup()"
system
call
*/
.
long
sys_ni_syscall
/*
0
-
old
"setup()"
system
call
*/
.
long
SYMBOL_NAME
(
sys_exit
)
.
long
sys_exit
.
long
SYMBOL_NAME
(
sys_fork
)
.
long
sys_fork
.
long
SYMBOL_NAME
(
sys_read
)
.
long
sys_read
.
long
SYMBOL_NAME
(
sys_write
)
.
long
sys_write
.
long
SYMBOL_NAME
(
sys_open
)
/*
5
*/
.
long
sys_open
/*
5
*/
.
long
SYMBOL_NAME
(
sys_close
)
.
long
sys_close
.
long
SYMBOL_NAME
(
sys_waitpid
)
.
long
sys_waitpid
.
long
SYMBOL_NAME
(
sys_creat
)
.
long
sys_creat
.
long
SYMBOL_NAME
(
sys_link
)
.
long
sys_link
.
long
SYMBOL_NAME
(
sys_unlink
)
/*
10
*/
.
long
sys_unlink
/*
10
*/
.
long
SYMBOL_NAME
(
sys_execve
)
.
long
sys_execve
.
long
SYMBOL_NAME
(
sys_chdir
)
.
long
sys_chdir
.
long
SYMBOL_NAME
(
sys_time
)
.
long
sys_time
.
long
SYMBOL_NAME
(
sys_mknod
)
.
long
sys_mknod
.
long
SYMBOL_NAME
(
sys_chmod
)
/*
15
*/
.
long
sys_chmod
/*
15
*/
.
long
SYMBOL_NAME
(
sys_chown16
)
.
long
sys_chown16
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
break
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
break
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_stat
)
.
long
sys_stat
.
long
SYMBOL_NAME
(
sys_lseek
)
.
long
sys_lseek
.
long
SYMBOL_NAME
(
sys_getpid
)
/*
20
*/
.
long
sys_getpid
/*
20
*/
.
long
SYMBOL_NAME
(
sys_mount
)
.
long
sys_mount
.
long
SYMBOL_NAME
(
sys_oldumount
)
.
long
sys_oldumount
.
long
SYMBOL_NAME
(
sys_setuid16
)
.
long
sys_setuid16
.
long
SYMBOL_NAME
(
sys_getuid16
)
.
long
sys_getuid16
.
long
SYMBOL_NAME
(
sys_stime
)
/*
25
*/
.
long
sys_stime
/*
25
*/
.
long
SYMBOL_NAME
(
sys_ptrace
)
.
long
sys_ptrace
.
long
SYMBOL_NAME
(
sys_alarm
)
.
long
sys_alarm
.
long
SYMBOL_NAME
(
sys_fstat
)
.
long
sys_fstat
.
long
SYMBOL_NAME
(
sys_pause
)
.
long
sys_pause
.
long
SYMBOL_NAME
(
sys_utime
)
/*
30
*/
.
long
sys_utime
/*
30
*/
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
stty
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
stty
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
gtty
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
gtty
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_access
)
.
long
sys_access
.
long
SYMBOL_NAME
(
sys_nice
)
.
long
sys_nice
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
35
*/
/*
old
ftime
syscall
holder
*/
.
long
sys_ni_syscall
/*
35
*/
/*
old
ftime
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_sync
)
.
long
sys_sync
.
long
SYMBOL_NAME
(
sys_kill
)
.
long
sys_kill
.
long
SYMBOL_NAME
(
sys_rename
)
.
long
sys_rename
.
long
SYMBOL_NAME
(
sys_mkdir
)
.
long
sys_mkdir
.
long
SYMBOL_NAME
(
sys_rmdir
)
/*
40
*/
.
long
sys_rmdir
/*
40
*/
.
long
SYMBOL_NAME
(
sys_dup
)
.
long
sys_dup
.
long
SYMBOL_NAME
(
sys_pipe
)
.
long
sys_pipe
.
long
SYMBOL_NAME
(
sys_times
)
.
long
sys_times
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
prof
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
prof
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_brk
)
/*
45
*/
.
long
sys_brk
/*
45
*/
.
long
SYMBOL_NAME
(
sys_setgid16
)
.
long
sys_setgid16
.
long
SYMBOL_NAME
(
sys_getgid16
)
.
long
sys_getgid16
.
long
SYMBOL_NAME
(
sys_signal
)
.
long
sys_signal
.
long
SYMBOL_NAME
(
sys_geteuid16
)
.
long
sys_geteuid16
.
long
SYMBOL_NAME
(
sys_getegid16
)
/*
50
*/
.
long
sys_getegid16
/*
50
*/
.
long
SYMBOL_NAME
(
sys_acct
)
.
long
sys_acct
.
long
SYMBOL_NAME
(
sys_umount
)
/*
recycled
never
used
phys
()
*/
.
long
sys_umount
/*
recycled
never
used
phys
()
*/
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
lock
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
lock
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_ioctl
)
.
long
sys_ioctl
.
long
SYMBOL_NAME
(
sys_fcntl
)
/*
55
*/
.
long
sys_fcntl
/*
55
*/
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
mpx
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
mpx
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_setpgid
)
.
long
sys_setpgid
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
ulimit
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
ulimit
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
.
long
sys_ni_syscall
.
long
SYMBOL_NAME
(
sys_umask
)
/*
60
*/
.
long
sys_umask
/*
60
*/
.
long
SYMBOL_NAME
(
sys_chroot
)
.
long
sys_chroot
.
long
SYMBOL_NAME
(
sys_ustat
)
.
long
sys_ustat
.
long
SYMBOL_NAME
(
sys_dup2
)
.
long
sys_dup2
.
long
SYMBOL_NAME
(
sys_getppid
)
.
long
sys_getppid
.
long
SYMBOL_NAME
(
sys_getpgrp
)
/*
65
*/
.
long
sys_getpgrp
/*
65
*/
.
long
SYMBOL_NAME
(
sys_setsid
)
.
long
sys_setsid
.
long
SYMBOL_NAME
(
sys_sigaction
)
.
long
sys_sigaction
.
long
SYMBOL_NAME
(
sys_sgetmask
)
.
long
sys_sgetmask
.
long
SYMBOL_NAME
(
sys_ssetmask
)
.
long
sys_ssetmask
.
long
SYMBOL_NAME
(
sys_setreuid16
)
/*
70
*/
.
long
sys_setreuid16
/*
70
*/
.
long
SYMBOL_NAME
(
sys_setregid16
)
.
long
sys_setregid16
.
long
SYMBOL_NAME
(
sys_sigsuspend
)
.
long
sys_sigsuspend
.
long
SYMBOL_NAME
(
sys_sigpending
)
.
long
sys_sigpending
.
long
SYMBOL_NAME
(
sys_sethostname
)
.
long
sys_sethostname
.
long
SYMBOL_NAME
(
sys_setrlimit
)
/*
75
*/
.
long
sys_setrlimit
/*
75
*/
.
long
SYMBOL_NAME
(
sys_old_getrlimit
)
.
long
sys_old_getrlimit
.
long
SYMBOL_NAME
(
sys_getrusage
)
.
long
sys_getrusage
.
long
SYMBOL_NAME
(
sys_gettimeofday
)
.
long
sys_gettimeofday
.
long
SYMBOL_NAME
(
sys_settimeofday
)
.
long
sys_settimeofday
.
long
SYMBOL_NAME
(
sys_getgroups16
)
/*
80
*/
.
long
sys_getgroups16
/*
80
*/
.
long
SYMBOL_NAME
(
sys_setgroups16
)
.
long
sys_setgroups16
.
long
SYMBOL_NAME
(
old_select
)
.
long
old_select
.
long
SYMBOL_NAME
(
sys_symlink
)
.
long
sys_symlink
.
long
SYMBOL_NAME
(
sys_lstat
)
.
long
sys_lstat
.
long
SYMBOL_NAME
(
sys_readlink
)
/*
85
*/
.
long
sys_readlink
/*
85
*/
.
long
SYMBOL_NAME
(
sys_uselib
)
.
long
sys_uselib
.
long
SYMBOL_NAME
(
sys_swapon
)
.
long
sys_swapon
.
long
SYMBOL_NAME
(
sys_reboot
)
.
long
sys_reboot
.
long
SYMBOL_NAME
(
old_readdir
)
.
long
old_readdir
.
long
SYMBOL_NAME
(
old_mmap
)
/*
90
*/
.
long
old_mmap
/*
90
*/
.
long
SYMBOL_NAME
(
sys_munmap
)
.
long
sys_munmap
.
long
SYMBOL_NAME
(
sys_truncate
)
.
long
sys_truncate
.
long
SYMBOL_NAME
(
sys_ftruncate
)
.
long
sys_ftruncate
.
long
SYMBOL_NAME
(
sys_fchmod
)
.
long
sys_fchmod
.
long
SYMBOL_NAME
(
sys_fchown16
)
/*
95
*/
.
long
sys_fchown16
/*
95
*/
.
long
SYMBOL_NAME
(
sys_getpriority
)
.
long
sys_getpriority
.
long
SYMBOL_NAME
(
sys_setpriority
)
.
long
sys_setpriority
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
old
profil
syscall
holder
*/
.
long
sys_ni_syscall
/*
old
profil
syscall
holder
*/
.
long
SYMBOL_NAME
(
sys_statfs
)
.
long
sys_statfs
.
long
SYMBOL_NAME
(
sys_fstatfs
)
/*
100
*/
.
long
sys_fstatfs
/*
100
*/
.
long
SYMBOL_NAME
(
sys_ioperm
)
.
long
sys_ioperm
.
long
SYMBOL_NAME
(
sys_socketcall
)
.
long
sys_socketcall
.
long
SYMBOL_NAME
(
sys_syslog
)
.
long
sys_syslog
.
long
SYMBOL_NAME
(
sys_setitimer
)
.
long
sys_setitimer
.
long
SYMBOL_NAME
(
sys_getitimer
)
/*
105
*/
.
long
sys_getitimer
/*
105
*/
.
long
SYMBOL_NAME
(
sys_newstat
)
.
long
sys_newstat
.
long
SYMBOL_NAME
(
sys_newlstat
)
.
long
sys_newlstat
.
long
SYMBOL_NAME
(
sys_newfstat
)
.
long
sys_newfstat
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
.
long
sys_ni_syscall
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
iopl
for
i386
*/
/*
110
*/
.
long
sys_ni_syscall
/*
iopl
for
i386
*/
/*
110
*/
.
long
SYMBOL_NAME
(
sys_vhangup
)
.
long
sys_vhangup
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
obsolete
idle
()
syscall
*/
.
long
sys_ni_syscall
/*
obsolete
idle
()
syscall
*/
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
vm86old
for
i386
*/
.
long
sys_ni_syscall
/*
vm86old
for
i386
*/
.
long
SYMBOL_NAME
(
sys_wait4
)
.
long
sys_wait4
.
long
SYMBOL_NAME
(
sys_swapoff
)
/*
115
*/
.
long
sys_swapoff
/*
115
*/
.
long
SYMBOL_NAME
(
sys_sysinfo
)
.
long
sys_sysinfo
.
long
SYMBOL_NAME
(
sys_ipc
)
.
long
sys_ipc
.
long
SYMBOL_NAME
(
sys_fsync
)
.
long
sys_fsync
.
long
SYMBOL_NAME
(
sys_sigreturn
)
.
long
sys_sigreturn
.
long
SYMBOL_NAME
(
sys_clone
)
/*
120
*/
.
long
sys_clone
/*
120
*/
.
long
SYMBOL_NAME
(
sys_setdomainname
)
.
long
sys_setdomainname
.
long
SYMBOL_NAME
(
sys_newuname
)
.
long
sys_newuname
.
long
SYMBOL_NAME
(
sys_cacheflush
)
/*
modify_ldt
for
i386
*/
.
long
sys_cacheflush
/*
modify_ldt
for
i386
*/
.
long
SYMBOL_NAME
(
sys_adjtimex
)
.
long
sys_adjtimex
.
long
SYMBOL_NAME
(
sys_mprotect
)
/*
125
*/
.
long
sys_mprotect
/*
125
*/
.
long
SYMBOL_NAME
(
sys_sigprocmask
)
.
long
sys_sigprocmask
.
long
SYMBOL_NAME
(
sys_create_module
)
.
long
sys_create_module
.
long
SYMBOL_NAME
(
sys_init_module
)
.
long
sys_init_module
.
long
SYMBOL_NAME
(
sys_delete_module
)
.
long
sys_delete_module
.
long
SYMBOL_NAME
(
sys_get_kernel_syms
)
/*
130
*/
.
long
sys_get_kernel_syms
/*
130
*/
.
long
SYMBOL_NAME
(
sys_quotactl
)
.
long
sys_quotactl
.
long
SYMBOL_NAME
(
sys_getpgid
)
.
long
sys_getpgid
.
long
SYMBOL_NAME
(
sys_fchdir
)
.
long
sys_fchdir
.
long
SYMBOL_NAME
(
sys_bdflush
)
.
long
sys_bdflush
.
long
SYMBOL_NAME
(
sys_sysfs
)
/*
135
*/
.
long
sys_sysfs
/*
135
*/
.
long
SYMBOL_NAME
(
sys_personality
)
.
long
sys_personality
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
for
afs_syscall
*/
.
long
sys_ni_syscall
/*
for
afs_syscall
*/
.
long
SYMBOL_NAME
(
sys_setfsuid16
)
.
long
sys_setfsuid16
.
long
SYMBOL_NAME
(
sys_setfsgid16
)
.
long
sys_setfsgid16
.
long
SYMBOL_NAME
(
sys_llseek
)
/*
140
*/
.
long
sys_llseek
/*
140
*/
.
long
SYMBOL_NAME
(
sys_getdents
)
.
long
sys_getdents
.
long
SYMBOL_NAME
(
sys_select
)
.
long
sys_select
.
long
SYMBOL_NAME
(
sys_flock
)
.
long
sys_flock
.
long
SYMBOL_NAME
(
sys_msync
)
.
long
sys_msync
.
long
SYMBOL_NAME
(
sys_readv
)
/*
145
*/
.
long
sys_readv
/*
145
*/
.
long
SYMBOL_NAME
(
sys_writev
)
.
long
sys_writev
.
long
SYMBOL_NAME
(
sys_getsid
)
.
long
sys_getsid
.
long
SYMBOL_NAME
(
sys_fdatasync
)
.
long
sys_fdatasync
.
long
SYMBOL_NAME
(
sys_sysctl
)
.
long
sys_sysctl
.
long
SYMBOL_NAME
(
sys_mlock
)
/*
150
*/
.
long
sys_mlock
/*
150
*/
.
long
SYMBOL_NAME
(
sys_munlock
)
.
long
sys_munlock
.
long
SYMBOL_NAME
(
sys_mlockall
)
.
long
sys_mlockall
.
long
SYMBOL_NAME
(
sys_munlockall
)
.
long
sys_munlockall
.
long
SYMBOL_NAME
(
sys_sched_setparam
)
.
long
sys_sched_setparam
.
long
SYMBOL_NAME
(
sys_sched_getparam
)
/*
155
*/
.
long
sys_sched_getparam
/*
155
*/
.
long
SYMBOL_NAME
(
sys_sched_setscheduler
)
.
long
sys_sched_setscheduler
.
long
SYMBOL_NAME
(
sys_sched_getscheduler
)
.
long
sys_sched_getscheduler
.
long
SYMBOL_NAME
(
sys_sched_yield
)
.
long
sys_sched_yield
.
long
SYMBOL_NAME
(
sys_sched_get_priority_max
)
.
long
sys_sched_get_priority_max
.
long
SYMBOL_NAME
(
sys_sched_get_priority_min
)
/*
160
*/
.
long
sys_sched_get_priority_min
/*
160
*/
.
long
SYMBOL_NAME
(
sys_sched_rr_get_interval
)
.
long
sys_sched_rr_get_interval
.
long
SYMBOL_NAME
(
sys_nanosleep
)
.
long
sys_nanosleep
.
long
SYMBOL_NAME
(
sys_mremap
)
.
long
sys_mremap
.
long
SYMBOL_NAME
(
sys_setresuid16
)
.
long
sys_setresuid16
.
long
SYMBOL_NAME
(
sys_getresuid16
)
/*
165
*/
.
long
sys_getresuid16
/*
165
*/
.
long
SYMBOL_NAME
(
sys_getpagesize
)
.
long
sys_getpagesize
.
long
SYMBOL_NAME
(
sys_query_module
)
.
long
sys_query_module
.
long
SYMBOL_NAME
(
sys_poll
)
.
long
sys_poll
.
long
SYMBOL_NAME
(
sys_nfsservctl
)
.
long
sys_nfsservctl
.
long
SYMBOL_NAME
(
sys_setresgid16
)
/*
170
*/
.
long
sys_setresgid16
/*
170
*/
.
long
SYMBOL_NAME
(
sys_getresgid16
)
.
long
sys_getresgid16
.
long
SYMBOL_NAME
(
sys_prctl
)
.
long
sys_prctl
.
long
SYMBOL_NAME
(
sys_rt_sigreturn
)
.
long
sys_rt_sigreturn
.
long
SYMBOL_NAME
(
sys_rt_sigaction
)
.
long
sys_rt_sigaction
.
long
SYMBOL_NAME
(
sys_rt_sigprocmask
)
/*
175
*/
.
long
sys_rt_sigprocmask
/*
175
*/
.
long
SYMBOL_NAME
(
sys_rt_sigpending
)
.
long
sys_rt_sigpending
.
long
SYMBOL_NAME
(
sys_rt_sigtimedwait
)
.
long
sys_rt_sigtimedwait
.
long
SYMBOL_NAME
(
sys_rt_sigqueueinfo
)
.
long
sys_rt_sigqueueinfo
.
long
SYMBOL_NAME
(
sys_rt_sigsuspend
)
.
long
sys_rt_sigsuspend
.
long
SYMBOL_NAME
(
sys_pread
)
/*
180
*/
.
long
sys_pread
/*
180
*/
.
long
SYMBOL_NAME
(
sys_pwrite
)
.
long
sys_pwrite
.
long
SYMBOL_NAME
(
sys_lchown16
)
;
.
long
sys_lchown16
;
.
long
SYMBOL_NAME
(
sys_getcwd
)
.
long
sys_getcwd
.
long
SYMBOL_NAME
(
sys_capget
)
.
long
sys_capget
.
long
SYMBOL_NAME
(
sys_capset
)
/*
185
*/
.
long
sys_capset
/*
185
*/
.
long
SYMBOL_NAME
(
sys_sigaltstack
)
.
long
sys_sigaltstack
.
long
SYMBOL_NAME
(
sys_sendfile
)
.
long
sys_sendfile
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
streams1
*/
.
long
sys_ni_syscall
/*
streams1
*/
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
/*
streams2
*/
.
long
sys_ni_syscall
/*
streams2
*/
.
long
SYMBOL_NAME
(
sys_vfork
)
/*
190
*/
.
long
sys_vfork
/*
190
*/
.
long
SYMBOL_NAME
(
sys_getrlimit
)
.
long
sys_getrlimit
.
long
SYMBOL_NAME
(
sys_mmap2
)
.
long
sys_mmap2
.
long
SYMBOL_NAME
(
sys_truncate64
)
.
long
sys_truncate64
.
long
SYMBOL_NAME
(
sys_ftruncate64
)
.
long
sys_ftruncate64
.
long
SYMBOL_NAME
(
sys_stat64
)
/*
195
*/
.
long
sys_stat64
/*
195
*/
.
long
SYMBOL_NAME
(
sys_lstat64
)
.
long
sys_lstat64
.
long
SYMBOL_NAME
(
sys_fstat64
)
.
long
sys_fstat64
.
long
SYMBOL_NAME
(
sys_chown
)
.
long
sys_chown
.
long
SYMBOL_NAME
(
sys_getuid
)
.
long
sys_getuid
.
long
SYMBOL_NAME
(
sys_getgid
)
/*
200
*/
.
long
sys_getgid
/*
200
*/
.
long
SYMBOL_NAME
(
sys_geteuid
)
.
long
sys_geteuid
.
long
SYMBOL_NAME
(
sys_getegid
)
.
long
sys_getegid
.
long
SYMBOL_NAME
(
sys_setreuid
)
.
long
sys_setreuid
.
long
SYMBOL_NAME
(
sys_setregid
)
.
long
sys_setregid
.
long
SYMBOL_NAME
(
sys_getgroups
)
/*
205
*/
.
long
sys_getgroups
/*
205
*/
.
long
SYMBOL_NAME
(
sys_setgroups
)
.
long
sys_setgroups
.
long
SYMBOL_NAME
(
sys_fchown
)
.
long
sys_fchown
.
long
SYMBOL_NAME
(
sys_setresuid
)
.
long
sys_setresuid
.
long
SYMBOL_NAME
(
sys_getresuid
)
.
long
sys_getresuid
.
long
SYMBOL_NAME
(
sys_setresgid
)
/*
210
*/
.
long
sys_setresgid
/*
210
*/
.
long
SYMBOL_NAME
(
sys_getresgid
)
.
long
sys_getresgid
.
long
SYMBOL_NAME
(
sys_lchown
)
.
long
sys_lchown
.
long
SYMBOL_NAME
(
sys_setuid
)
.
long
sys_setuid
.
long
SYMBOL_NAME
(
sys_setgid
)
.
long
sys_setgid
.
long
SYMBOL_NAME
(
sys_setfsuid
)
/*
215
*/
.
long
sys_setfsuid
/*
215
*/
.
long
SYMBOL_NAME
(
sys_setfsgid
)
.
long
sys_setfsgid
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
.
long
sys_ni_syscall
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
.
long
sys_ni_syscall
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
.
long
sys_ni_syscall
.
long
SYMBOL_NAME
(
sys_getdents64
)
/*
220
*/
.
long
sys_getdents64
/*
220
*/
.
long
SYMBOL_NAME
(
sys_gettid
)
.
long
sys_gettid
.
long
SYMBOL_NAME
(
sys_tkill
)
.
long
sys_tkill
.
rept
NR_syscalls
-(
.
-
SYMBOL_NAME
(
sys_call_table
)
)/
4
.
rept
NR_syscalls
-(
.
-
sys_call_table
)/
4
.
long
SYMBOL_NAME
(
sys_ni_syscall
)
.
long
sys_ni_syscall
.
endr
.
endr
arch/m68k/kernel/head.S
View file @
912c173d
...
@@ -302,15 +302,15 @@
...
@@ -302,15 +302,15 @@
/*
#
define
FONT_8x16
*/
/*
2
nd
choice
*/
/*
#
define
FONT_8x16
*/
/*
2
nd
choice
*/
/*
#
define
FONT_6x11
*/
/*
3
rd
choice
*/
/*
#
define
FONT_6x11
*/
/*
3
rd
choice
*/
.
globl
SYMBOL_NAME
(
kernel_pg_dir
)
.
globl
kernel_pg_dir
.
globl
SYMBOL_NAME
(
availmem
)
.
globl
availmem
.
globl
SYMBOL_NAME
(
m68k_pgtable_cachemode
)
.
globl
m68k_pgtable_cachemode
.
globl
SYMBOL_NAME
(
m68k_supervisor_cachemode
)
.
globl
m68k_supervisor_cachemode
#ifdef CONFIG_MVME16x
#ifdef CONFIG_MVME16x
.
globl
SYMBOL_NAME
(
mvme_bdid
)
.
globl
mvme_bdid
#endif
#endif
#ifdef CONFIG_Q40
#ifdef CONFIG_Q40
.
globl
SYMBOL_NAME
(
q40_mem_cptr
)
.
globl
q40_mem_cptr
#endif
#endif
CPUTYPE_040
=
1
/*
indicates
an
040
*/
CPUTYPE_040
=
1
/*
indicates
an
040
*/
...
@@ -585,40 +585,40 @@ ENTRY(_stext)
...
@@ -585,40 +585,40 @@ ENTRY(_stext)
.
long
MACH_MAC
,
MAC_BOOTI_VERSION
.
long
MACH_MAC
,
MAC_BOOTI_VERSION
.
long
MACH_Q40
,
Q40_BOOTI_VERSION
.
long
MACH_Q40
,
Q40_BOOTI_VERSION
.
long
0
.
long
0
1
:
jra
SYMBOL_NAME
(
__start
)
1
:
jra
__start
.
equ
SYMBOL_NAME
(
kernel_pg_dir
),
SYMBOL_NAME
(
_stext
)
.
equ
kernel_pg_dir
,
_stext
.
equ
.,
SYMBOL_NAME
(
_stext
)
+
PAGESIZE
.
equ
.,
_stext
+
PAGESIZE
ENTRY
(
_start
)
ENTRY
(
_start
)
jra
SYMBOL_NAME
(
__start
)
jra
__start
__INIT
__INIT
ENTRY
(
__start
)
ENTRY
(
__start
)
/*
/*
*
Setup
initial
stack
pointer
*
Setup
initial
stack
pointer
*/
*/
lea
%
pc
@
(
SYMBOL_NAME
(
_stext
)
),%
sp
lea
%
pc
@
(
_stext
),%
sp
/*
/*
*
Record
the
CPU
and
machine
type
.
*
Record
the
CPU
and
machine
type
.
*/
*/
get_bi_record
BI_MACHTYPE
get_bi_record
BI_MACHTYPE
lea
%
pc
@
(
SYMBOL_NAME
(
m68k_machtype
)
),
%a1
lea
%
pc
@
(
m68k_machtype
),
%a1
movel
%a0
@
,
%a1
@
movel
%a0
@
,
%a1
@
get_bi_record
BI_FPUTYPE
get_bi_record
BI_FPUTYPE
lea
%
pc
@
(
SYMBOL_NAME
(
m68k_fputype
)
),
%a1
lea
%
pc
@
(
m68k_fputype
),
%a1
movel
%a0
@
,
%a1
@
movel
%a0
@
,
%a1
@
get_bi_record
BI_MMUTYPE
get_bi_record
BI_MMUTYPE
lea
%
pc
@
(
SYMBOL_NAME
(
m68k_mmutype
)
),
%a1
lea
%
pc
@
(
m68k_mmutype
),
%a1
movel
%a0
@
,
%a1
@
movel
%a0
@
,
%a1
@
get_bi_record
BI_CPUTYPE
get_bi_record
BI_CPUTYPE
lea
%
pc
@
(
SYMBOL_NAME
(
m68k_cputype
)
),
%a1
lea
%
pc
@
(
m68k_cputype
),
%a1
movel
%a0
@
,
%a1
@
movel
%a0
@
,
%a1
@
#ifdef CONFIG_MAC
#ifdef CONFIG_MAC
...
@@ -682,7 +682,7 @@ L(test_notmac):
...
@@ -682,7 +682,7 @@ L(test_notmac):
*
and
is
converted
here
from
a
booter
type
definition
to
a
separate
bit
*
and
is
converted
here
from
a
booter
type
definition
to
a
separate
bit
*
number
which
allows
for
the
standard
is_0x0
macro
tests
.
*
number
which
allows
for
the
standard
is_0x0
macro
tests
.
*/
*/
movel
%
pc
@
(
SYMBOL_NAME
(
m68k_cputype
)
),%
d0
movel
%
pc
@
(
m68k_cputype
),%
d0
/
*
/
*
*
Assume
it
's an 030
*
Assume
it
's an 030
*/
*/
...
@@ -766,9 +766,9 @@ L(test_notmac):
...
@@ -766,9 +766,9 @@ L(test_notmac):
L
(
save_cachetype
):
L
(
save_cachetype
):
/
*
Save
cache
mode
for
supervisor
mode
and
page
tables
/
*
Save
cache
mode
for
supervisor
mode
and
page
tables
*/
*/
lea
%
pc
@
(
SYMBOL_NAME
(
m68k_supervisor_cachemode
)
),
%a0
lea
%
pc
@
(
m68k_supervisor_cachemode
),
%a0
movel
%
d0
,
%a0
@
movel
%
d0
,
%a0
@
lea
%
pc
@
(
SYMBOL_NAME
(
m68k_pgtable_cachemode
)
),
%a0
lea
%
pc
@
(
m68k_pgtable_cachemode
),
%a0
movel
%
d1
,
%a0
@
movel
%
d1
,
%a0
@
/*
/*
...
@@ -804,7 +804,7 @@ L(save_cachetype):
...
@@ -804,7 +804,7 @@ L(save_cachetype):
tstl
%
d0
tstl
%
d0
jbmi
1
f
jbmi
1
f
movel
%a0
@
,%
d3
movel
%a0
@
,%
d3
lea
%
pc
@
(
SYMBOL_NAME
(
atari_mch_type
)
),
%a0
lea
%
pc
@
(
atari_mch_type
),
%a0
movel
%
d3
,
%a0
@
movel
%
d3
,
%a0
@
1
:
1
:
/
*
On
the
Hades
,
the
iobase
must
be
set
up
before
opening
the
/
*
On
the
Hades
,
the
iobase
must
be
set
up
before
opening
the
...
@@ -834,7 +834,7 @@ L(getvmetype):
...
@@ -834,7 +834,7 @@ L(getvmetype):
tstl
%
d0
tstl
%
d0
jbmi
1
f
jbmi
1
f
movel
%a0
@
,%
d3
movel
%a0
@
,%
d3
lea
%
pc
@
(
SYMBOL_NAME
(
vme_brdtype
)
),
%a0
lea
%
pc
@
(
vme_brdtype
),
%a0
movel
%
d3
,
%a0
@
movel
%
d3
,
%a0
@
1
:
1
:
#ifdef CONFIG_MVME16x
#ifdef CONFIG_MVME16x
...
@@ -854,7 +854,7 @@ L(getvmetype):
...
@@ -854,7 +854,7 @@ L(getvmetype):
.
word
0x70
/*
trap
0x70
-
.
BRD_ID
*/
.
word
0x70
/*
trap
0x70
-
.
BRD_ID
*/
movel
%
sp
@
+,
%a0
movel
%
sp
@
+,
%a0
1
:
1
:
lea
%
pc
@
(
SYMBOL_NAME
(
mvme_bdid
)
),
%a1
lea
%
pc
@
(
mvme_bdid
),
%a1
/
*
Structure
is
32
bytes
long
*/
/
*
Structure
is
32
bytes
long
*/
movel
%a0
@
+,
%a1
@
+
movel
%a0
@
+,
%a1
@
+
movel
%a0
@
+,
%a1
@
+
movel
%a0
@
+,
%a1
@
+
...
@@ -894,16 +894,16 @@ L(nocon):
...
@@ -894,16 +894,16 @@ L(nocon):
putc
'\n'
putc
'\n'
putc
'A'
putc
'A'
dputn
%
pc
@
(
L
(
cputype
))
dputn
%
pc
@
(
L
(
cputype
))
dputn
%
pc
@
(
SYMBOL_NAME
(
m68k_supervisor_cachemode
)
)
dputn
%
pc
@
(
m68k_supervisor_cachemode
)
dputn
%
pc
@
(
SYMBOL_NAME
(
m68k_pgtable_cachemode
)
)
dputn
%
pc
@
(
m68k_pgtable_cachemode
)
dputc
'\n'
dputc
'\n'
/*
/*
*
Save
physical
start
address
of
kernel
*
Save
physical
start
address
of
kernel
*/
*/
lea
%
pc
@
(
L
(
phys_kernel_start
)),
%a0
lea
%
pc
@
(
L
(
phys_kernel_start
)),
%a0
lea
%
pc
@
(
SYMBOL_NAME
(
_stext
)
),
%a1
lea
%
pc
@
(
_stext
),
%a1
subl
#
SYMBOL_NAME
(
_stext
)
,
%a1
subl
#
_stext
,
%a1
addl
#
PAGE_OFFSET
,
%a1
addl
#
PAGE_OFFSET
,
%a1
movel
%a1
,
%a0
@
movel
%a1
,
%a0
@
...
@@ -920,7 +920,7 @@ L(nocon):
...
@@ -920,7 +920,7 @@ L(nocon):
*/
*/
mmu_map
#
PAGE_OFFSET
,%
pc
@
(
L
(
phys_kernel_start
)),#
4
*
1024
*
1024
,
\
mmu_map
#
PAGE_OFFSET
,%
pc
@
(
L
(
phys_kernel_start
)),#
4
*
1024
*
1024
,
\
%
pc
@(
SYMBOL_NAME
(
m68k_supervisor_cachemode
)
)
%
pc
@(
m68k_supervisor_cachemode
)
putc
'C'
putc
'C'
...
@@ -984,7 +984,7 @@ L(mmu_init_atari):
...
@@ -984,7 +984,7 @@ L(mmu_init_atari):
/
*
I
/
O
base
addr
for
non
-
Medusa
,
non
-
Hades
:
0x00000000
*/
/
*
I
/
O
base
addr
for
non
-
Medusa
,
non
-
Hades
:
0x00000000
*/
moveq
#
0
,%
d0
moveq
#
0
,%
d0
movel
%
pc
@
(
SYMBOL_NAME
(
atari_mch_type
)
),%
d3
movel
%
pc
@
(
atari_mch_type
),%
d3
cmpl
#
ATARI_MACH_MEDUSA
,%
d3
cmpl
#
ATARI_MACH_MEDUSA
,%
d3
jbeq
2
f
jbeq
2
f
cmpl
#
ATARI_MACH_HADES
,%
d3
cmpl
#
ATARI_MACH_HADES
,%
d3
...
@@ -1263,7 +1263,7 @@ L(mmu_fixup):
...
@@ -1263,7 +1263,7 @@ L(mmu_fixup):
*/
*/
movel
%
pc
@
(
L
(
phys_kernel_start
)),%
d0
movel
%
pc
@
(
L
(
phys_kernel_start
)),%
d0
subl
#
PAGE_OFFSET
,%
d0
subl
#
PAGE_OFFSET
,%
d0
lea
%
pc
@
(
SYMBOL_NAME
(
_stext
)
),
%a0
lea
%
pc
@
(
_stext
),
%a0
subl
%
d0
,
%a0
subl
%
d0
,
%a0
mmu_fixup_page_mmu_cache
%a0
mmu_fixup_page_mmu_cache
%a0
...
@@ -1461,7 +1461,7 @@ L(cache_done):
...
@@ -1461,7 +1461,7 @@ L(cache_done):
/*
/*
*
Setup
initial
stack
pointer
*
Setup
initial
stack
pointer
*/
*/
lea
SYMBOL_NAME
(
init_task_union
)
,%
curptr
lea
init_task_union
,%
curptr
lea
0x2000
(%
curptr
),%
sp
lea
0x2000
(%
curptr
),%
sp
putc
'K'
putc
'K'
...
@@ -1471,14 +1471,14 @@ L(cache_done):
...
@@ -1471,14 +1471,14 @@ L(cache_done):
/*
/*
*
The
new
64
bit
printf
support
requires
an
early
exception
initialization
.
*
The
new
64
bit
printf
support
requires
an
early
exception
initialization
.
*/
*/
jbsr
SYMBOL_NAME
(
base_trap_init
)
jbsr
base_trap_init
/*
jump
to
the
kernel
start
*/
/*
jump
to
the
kernel
start
*/
putc
'\n'
putc
'\n'
leds
0x55
leds
0x55
jbsr
SYMBOL_NAME
(
start_kernel
)
jbsr
start_kernel
/*
/*
*
Find
a
tag
record
in
the
bootinfo
structure
*
Find
a
tag
record
in
the
bootinfo
structure
...
@@ -1489,7 +1489,7 @@ L(cache_done):
...
@@ -1489,7 +1489,7 @@ L(cache_done):
func_start
get_bi_record
,%
d1
func_start
get_bi_record
,%
d1
movel
ARG1
,%
d0
movel
ARG1
,%
d0
lea
%
pc
@
(
SYMBOL_NAME
(
_end
)
),
%a0
lea
%
pc
@
(
_end
),
%a0
1
:
tstw
%a0
@
(
BIR_TAG
)
1
:
tstw
%a0
@
(
BIR_TAG
)
jeq
3
f
jeq
3
f
cmpw
%a0
@
(
BIR_TAG
),%
d0
cmpw
%a0
@
(
BIR_TAG
),%
d0
...
@@ -1669,7 +1669,7 @@ mmu_040_print:
...
@@ -1669,7 +1669,7 @@ mmu_040_print:
jbra
1
b
jbra
1
b
#endif /* MMU 040 Dumping code that's gory and detailed */
#endif /* MMU 040 Dumping code that's gory and detailed */
lea
%
pc
@
(
SYMBOL_NAME
(
kernel_pg_dir
)
),
%a5
lea
%
pc
@
(
kernel_pg_dir
),
%a5
movel
%a5
,
%a0
/*
a0
has
the
address
of
the
root
table
ptr
*/
movel
%a5
,
%a0
/*
a0
has
the
address
of
the
root
table
ptr
*/
movel
#
0x00000000
,
%a4
/*
logical
address
*/
movel
#
0x00000000
,
%a4
/*
logical
address
*/
moveql
#
0
,%
d0
moveql
#
0
,%
d0
...
@@ -2286,7 +2286,7 @@ func_start mmu_fixup_page_mmu_cache,%d0/%a0
...
@@ -2286,7 +2286,7 @@ func_start mmu_fixup_page_mmu_cache,%d0/%a0
movel
%a0
@
,%
d0
movel
%a0
@
,%
d0
andil
#
_CACHEMASK040
,%
d0
andil
#
_CACHEMASK040
,%
d0
orl
%
pc
@
(
SYMBOL_NAME
(
m68k_pgtable_cachemode
)
),%
d0
orl
%
pc
@
(
m68k_pgtable_cachemode
),%
d0
movel
%
d0
,
%a0
@
movel
%
d0
,
%a0
@
dputc
'\n'
dputc
'\n'
...
@@ -2516,7 +2516,7 @@ func_start mmu_get_root_table_entry,%d0/%a1
...
@@ -2516,7 +2516,7 @@ func_start mmu_get_root_table_entry,%d0/%a1
*
in
mm
/
init
.
c
simply
expects
kernel_pg_dir
there
,
the
rest
of
*
in
mm
/
init
.
c
simply
expects
kernel_pg_dir
there
,
the
rest
of
*
page
is
used
for
further
ptr
tables
in
get_ptr_table
.
*
page
is
used
for
further
ptr
tables
in
get_ptr_table
.
*/
*/
lea
%
pc
@
(
SYMBOL_NAME
(
_stext
)
),
%a0
lea
%
pc
@
(
_stext
),
%a0
lea
%
pc
@
(
L
(
mmu_cached_pointer_tables
)),
%a1
lea
%
pc
@
(
L
(
mmu_cached_pointer_tables
)),
%a1
movel
%a0
,
%a1
@
movel
%a0
,
%a1
@
addl
#
ROOT_TABLE_SIZE
*
4
,
%a1
@
addl
#
ROOT_TABLE_SIZE
*
4
,
%a1
@
...
@@ -2907,7 +2907,7 @@ L(serial_init_not_mac):
...
@@ -2907,7 +2907,7 @@ L(serial_init_not_mac):
is_not_q40
(2
f
)
is_not_q40
(2
f
)
/*
debug
output
goes
into
SRAM
,
so
we
don
't do it unless requested
/*
debug
output
goes
into
SRAM
,
so
we
don
't do it unless requested
-
check
for
'%LX
$
'
signature
in
SRAM
*/
-
check
for
'%LX
$
'
signature
in
SRAM
*/
lea
%
pc
@
(
SYMBOL_NAME
(
q40_mem_cptr
)
),
%a1
lea
%
pc
@
(
q40_mem_cptr
),
%a1
move.l
#
0xff020010
,
%a1
@
/*
must
be
inited
-
also
used
by
debug
=
mem
*/
move.l
#
0xff020010
,
%a1
@
/*
must
be
inited
-
also
used
by
debug
=
mem
*/
move.l
#
0xff020000
,
%a1
move.l
#
0xff020000
,
%a1
cmp.b
#
'%'
,
%a1
@
cmp.b
#
'%'
,
%a1
@
...
@@ -3040,7 +3040,7 @@ func_start serial_putc,%d0/%d1/%a0/%a1
...
@@ -3040,7 +3040,7 @@ func_start serial_putc,%d0/%d1/%a0/%a1
*
the
SRAM
,
which
is
non
-
standard
.
*
the
SRAM
,
which
is
non
-
standard
.
*/
*/
moveml
%
d0
-%
d7
/
%a2
-
%a6
,%
sp
@
-
moveml
%
d0
-%
d7
/
%a2
-
%a6
,%
sp
@
-
movel
SYMBOL_NAME
(
vme_brdtype
)
,%
d1
movel
vme_brdtype
,%
d1
jeq
1
f
|
No
tag
-
use
the
Bug
jeq
1
f
|
No
tag
-
use
the
Bug
cmpi
#
VME_TYPE_MVME162
,%
d1
cmpi
#
VME_TYPE_MVME162
,%
d1
jeq
6
f
jeq
6
f
...
@@ -3112,7 +3112,7 @@ func_start serial_putc,%d0/%d1/%a0/%a1
...
@@ -3112,7 +3112,7 @@ func_start serial_putc,%d0/%d1/%a0/%a1
is_not_q40
(2
f
)
is_not_q40
(2
f
)
tst.l
%
pc
@
(
L
(
q40_do_debug
))
/*
only
debug
if
requested
*/
tst.l
%
pc
@
(
L
(
q40_do_debug
))
/*
only
debug
if
requested
*/
beq
2
f
beq
2
f
lea
%
pc
@
(
SYMBOL_NAME
(
q40_mem_cptr
)
),
%a1
lea
%
pc
@
(
q40_mem_cptr
),
%a1
move.l
%a1
@
,
%a0
move.l
%a1
@
,
%a0
move.b
%
d0
,
%a0
@
move.b
%
d0
,
%a0
@
addq.l
#
4
,
%a0
addq.l
#
4
,
%a0
...
@@ -3287,13 +3287,13 @@ console_clear_loop:
...
@@ -3287,13 +3287,13 @@ console_clear_loop:
/
*
Calculate
font
size
*/
/
*
Calculate
font
size
*/
#if defined(FONT_8x8)
#if defined(FONT_8x8)
lea
%
pc
@
(
SYMBOL_NAME
(
font_vga_8x8
)
),
%a0
lea
%
pc
@
(
font_vga_8x8
),
%a0
#elif defined(FONT_8x16)
#elif defined(FONT_8x16)
lea
%
pc
@
(
SYMBOL_NAME
(
font_vga_8x16
)
),
%a0
lea
%
pc
@
(
font_vga_8x16
),
%a0
#elif defined(FONT_6x11)
#elif defined(FONT_6x11)
lea
%
pc
@
(
SYMBOL_NAME
(
font_vga_6x11
)
),
%a0
lea
%
pc
@
(
font_vga_6x11
),
%a0
#else /* (FONT_8x8) default */
#else /* (FONT_8x8) default */
lea
%
pc
@
(
SYMBOL_NAME
(
font_vga_8x8
)
),
%a0
lea
%
pc
@
(
font_vga_8x8
),
%a0
#endif
#endif
/
*
/
*
...
@@ -3347,11 +3347,11 @@ L(console_put_stats):
...
@@ -3347,11 +3347,11 @@ L(console_put_stats):
putn
%
pc
@
(
L
(
mac_videobase
))
/*
video
addr
.
*/
putn
%
pc
@
(
L
(
mac_videobase
))
/*
video
addr
.
*/
puts
"\n _stext:"
puts
"\n _stext:"
lea
%
pc
@
(
SYMBOL_NAME
(
_stext
)
),
%a0
lea
%
pc
@
(
_stext
),
%a0
putn
%a0
putn
%a0
puts
"\nbootinfo:"
puts
"\nbootinfo:"
lea
%
pc
@
(
SYMBOL_NAME
(
_end
)
),
%a0
lea
%
pc
@
(
_end
),
%a0
putn
%a0
putn
%a0
puts
"\ncpuid:"
puts
"\ncpuid:"
...
@@ -3380,7 +3380,7 @@ L(console_put_penguin):
...
@@ -3380,7 +3380,7 @@ L(console_put_penguin):
subil
#
64
,%
d0
/*
snug
up
against
the
right
edge
*/
subil
#
64
,%
d0
/*
snug
up
against
the
right
edge
*/
clrl
%
d1
/*
start
at
the
top
*/
clrl
%
d1
/*
start
at
the
top
*/
movel
#
73
,%
d7
movel
#
73
,%
d7
lea
%
pc
@
(
SYMBOL_NAME
(
that_penguin
)
),
%a1
lea
%
pc
@
(
that_penguin
),
%a1
console_penguin_row
:
console_penguin_row
:
movel
#
31
,%
d6
movel
#
31
,%
d6
console_penguin_pixel_pair
:
console_penguin_pixel_pair
:
...
@@ -3846,18 +3846,18 @@ __FINIT
...
@@ -3846,18 +3846,18 @@ __FINIT
.
data
.
data
.
align
4
.
align
4
SYMBOL_NAME_LABEL
(
availmem
)
availmem
:
.
long
0
.
long
0
SYMBOL_NAME_LABEL
(
m68k_pgtable_cachemode
)
m68k_pgtable_cachemode
:
.
long
0
.
long
0
SYMBOL_NAME_LABEL
(
m68k_supervisor_cachemode
)
m68k_supervisor_cachemode
:
.
long
0
.
long
0
#if defined(CONFIG_MVME16x)
#if defined(CONFIG_MVME16x)
SYMBOL_NAME_LABEL
(
mvme_bdid
)
mvme_bdid
:
.
long
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
.
long
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
#endif
#endif
#if defined(CONFIG_Q40)
#if defined(CONFIG_Q40)
SYMBOL_NAME_LABEL
(
q40_mem_cptr
)
q40_mem_cptr
:
.
long
0
.
long
0
L
(
q40_do_debug
):
L
(
q40_do_debug
):
.
long
0
.
long
0
...
...
arch/m68k/kernel/signal.c
View file @
912c173d
...
@@ -408,7 +408,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext *usc, void *fp,
...
@@ -408,7 +408,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext *usc, void *fp,
"2: movesl %4@+,%2
\n\t
"
"2: movesl %4@+,%2
\n\t
"
"3: movel %2,%/a0@+
\n\t
"
"3: movel %2,%/a0@+
\n\t
"
" dbra %1,2b
\n\t
"
" dbra %1,2b
\n\t
"
" bral
"
SYMBOL_NAME_STR
(
ret_from_signal
)
"
\n
"
" bral
ret_from_signal
\n
"
"4:
\n
"
"4:
\n
"
".section __ex_table,
\"
a
\"\n
"
".section __ex_table,
\"
a
\"\n
"
" .align 4
\n
"
" .align 4
\n
"
...
@@ -507,7 +507,7 @@ rt_restore_ucontext(struct pt_regs *regs, struct switch_stack *sw,
...
@@ -507,7 +507,7 @@ rt_restore_ucontext(struct pt_regs *regs, struct switch_stack *sw,
"2: movesl %4@+,%2
\n\t
"
"2: movesl %4@+,%2
\n\t
"
"3: movel %2,%/a0@+
\n\t
"
"3: movel %2,%/a0@+
\n\t
"
" dbra %1,2b
\n\t
"
" dbra %1,2b
\n\t
"
" bral
"
SYMBOL_NAME_STR
(
ret_from_signal
)
"
\n
"
" bral
ret_from_signal
\n
"
"4:
\n
"
"4:
\n
"
".section __ex_table,
\"
a
\"\n
"
".section __ex_table,
\"
a
\"\n
"
" .align 4
\n
"
" .align 4
\n
"
...
...
arch/m68k/kernel/sun3-head.S
View file @
912c173d
...
@@ -12,27 +12,27 @@ CACHES_OFF = 0x00000008 | actually a clear and disable --m
...
@@ -12,27 +12,27 @@ CACHES_OFF = 0x00000008 | actually a clear and disable --m
ROOT_TABLE_SIZE
=
128
ROOT_TABLE_SIZE
=
128
PAGESIZE
=
8192
PAGESIZE
=
8192
SUN3_INVALID_PMEG
=
255
SUN3_INVALID_PMEG
=
255
.
globl
SYMBOL_NAME
(
bootup_user_stack
)
.
globl
bootup_user_stack
.
globl
SYMBOL_NAME
(
bootup_kernel_stack
)
.
globl
bootup_kernel_stack
.
globl
SYMBOL_NAME
(
pg0
)
.
globl
pg0
.
globl
SYMBOL_NAME
(
empty_bad_page
)
.
globl
empty_bad_page
.
globl
SYMBOL_NAME
(
empty_bad_page_table
)
.
globl
empty_bad_page_table
.
globl
SYMBOL_NAME
(
empty_zero_page
)
.
globl
empty_zero_page
.
globl
SYMBOL_NAME
(
swapper_pg_dir
)
.
globl
swapper_pg_dir
.
globl
SYMBOL_NAME
(
kernel_pmd_table
)
.
globl
kernel_pmd_table
.
globl
SYMBOL_NAME
(
availmem
)
.
globl
availmem
.
global
SYMBOL_NAME
(
m68k_pgtable_cachemode
)
.
global
m68k_pgtable_cachemode
.
global
SYMBOL_NAME
(
kpt
)
.
global
kpt
|
todo
:
all
these
should
be
in
bss
!
|
todo
:
all
these
should
be
in
bss
!
SYMBOL_NAME
(
swapper_pg_dir
)
:
.
skip
0x2000
swapper_pg_dir
:
.
skip
0x2000
SYMBOL_NAME
(
pg0
)
:
.
skip
0x2000
pg0
:
.
skip
0x2000
SYMBOL_NAME
(
empty_bad_page
)
:
.
skip
0x2000
empty_bad_page
:
.
skip
0x2000
SYMBOL_NAME
(
empty_bad_page_table
)
:
.
skip
0x2000
empty_bad_page_table
:
.
skip
0x2000
SYMBOL_NAME
(
kernel_pmd_table
)
:
.
skip
0x2000
kernel_pmd_table
:
.
skip
0x2000
SYMBOL_NAME
(
empty_zero_page
)
:
.
skip
0x2000
empty_zero_page
:
.
skip
0x2000
.
globl
SYMBOL_NAME
(
kernel_pg_dir
)
.
globl
kernel_pg_dir
.
equ
SYMBOL_NAME
(
kernel_pg_dir
),
SYMBOL_NAME
(
kernel_pmd_table
)
.
equ
kernel_pg_dir
,
kernel_pmd_table
.
section
.
head
.
section
.
head
ENTRY
(
_stext
)
ENTRY
(
_stext
)
...
@@ -69,11 +69,11 @@ ENTRY(_start)
...
@@ -69,11 +69,11 @@ ENTRY(_start)
jmp
1
f
:
l
jmp
1
f
:
l
/*
Following
code
executes
at
high
addresses
(
0xE000
xxx
)
.
*/
/*
Following
code
executes
at
high
addresses
(
0xE000
xxx
)
.
*/
1
:
lea
SYMBOL_NAME
(
init_task_union
),
%a2
|
get
initial
thread
...
1
:
lea
init_task_union
,
%a2
|
get
initial
thread
...
lea
%a2
@
(
KTHREAD_SIZE
),%
sp
|
...
and
its
stack
.
lea
%a2
@
(
KTHREAD_SIZE
),%
sp
|
...
and
its
stack
.
/*
copy
bootinfo
records
from
the
loader
to
_end
*/
/*
copy
bootinfo
records
from
the
loader
to
_end
*/
lea
SYMBOL_NAME
(
_end
)
,
%a1
lea
_end
,
%a1
lea
BI_START
,
%a0
lea
BI_START
,
%a0
/
*
number
of
longs
to
copy
*/
/
*
number
of
longs
to
copy
*/
movel
%a0
@
,
%
d0
movel
%a0
@
,
%
d0
...
@@ -88,22 +88,22 @@ ENTRY(_start)
...
@@ -88,22 +88,22 @@ ENTRY(_start)
moveq
#-
1
,%
d0
moveq
#-
1
,%
d0
movsb
%
d0
,(
AC_SEGMAP
+
0x0
)
movsb
%
d0
,(
AC_SEGMAP
+
0x0
)
jbsr
SYMBOL_NAME
(
sun3_init
)
jbsr
sun3_init
jbsr
SYMBOL_NAME
(
base_trap_init
)
jbsr
base_trap_init
jbsr
SYMBOL_NAME
(
start_kernel
)
jbsr
start_kernel
trap
#
15
trap
#
15
.
data
.
data
.
even
.
even
SYMBOL_NAME_LABEL
(
kpt
)
kpt
:
.
long
0
.
long
0
SYMBOL_NAME_LABEL
(
availmem
)
availmem
:
.
long
0
.
long
0
|
todo
:
remove
next
two
.
--
m
|
todo
:
remove
next
two
.
--
m
SYMBOL_NAME_LABEL
(
is_medusa
)
is_medusa
:
.
long
0
.
long
0
SYMBOL_NAME_LABEL
(
m68k_pgtable_cachemode
)
m68k_pgtable_cachemode
:
.
long
0
.
long
0
arch/m68k/kernel/traps.c
View file @
912c173d
...
@@ -64,7 +64,7 @@ e_vector vectors[256] = {
...
@@ -64,7 +64,7 @@ e_vector vectors[256] = {
/* nmi handler for the Amiga */
/* nmi handler for the Amiga */
asm
(
".text
\n
"
asm
(
".text
\n
"
__ALIGN_STR
"
\n
"
__ALIGN_STR
"
\n
"
SYMBOL_NAME_STR
(
nmihandler
)
"
: rte"
);
"nmihandler
: rte"
);
/*
/*
* this must be called very early as the kernel might
* this must be called very early as the kernel might
...
...
arch/m68k/lib/semaphore.S
View file @
912c173d
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
ENTRY
(
__down_failed
)
ENTRY
(
__down_failed
)
moveml
%a0
/%
d0
/%
d1
,-(%
sp
)
moveml
%a0
/%
d0
/%
d1
,-(%
sp
)
movel
%a1
,-(%
sp
)
movel
%a1
,-(%
sp
)
jbsr
SYMBOL_NAME
(
__down
)
jbsr
__down
movel
(%
sp
)+,
%a1
movel
(%
sp
)+,
%a1
moveml
(%
sp
)+,
%a0
/%
d0
/%
d1
moveml
(%
sp
)+,
%a0
/%
d0
/%
d1
rts
rts
...
@@ -27,7 +27,7 @@ ENTRY(__down_failed_interruptible)
...
@@ -27,7 +27,7 @@ ENTRY(__down_failed_interruptible)
movel
%a0
,-(%
sp
)
movel
%a0
,-(%
sp
)
movel
%
d1
,-(%
sp
)
movel
%
d1
,-(%
sp
)
movel
%a1
,-(%
sp
)
movel
%a1
,-(%
sp
)
jbsr
SYMBOL_NAME
(
__down_interruptible
)
jbsr
__down_interruptible
movel
(%
sp
)+,
%a1
movel
(%
sp
)+,
%a1
movel
(%
sp
)+,%
d1
movel
(%
sp
)+,%
d1
movel
(%
sp
)+,
%a0
movel
(%
sp
)+,
%a0
...
@@ -37,7 +37,7 @@ ENTRY(__down_failed_trylock)
...
@@ -37,7 +37,7 @@ ENTRY(__down_failed_trylock)
movel
%a0
,-(%
sp
)
movel
%a0
,-(%
sp
)
movel
%
d1
,-(%
sp
)
movel
%
d1
,-(%
sp
)
movel
%a1
,-(%
sp
)
movel
%a1
,-(%
sp
)
jbsr
SYMBOL_NAME
(
__down_trylock
)
jbsr
__down_trylock
movel
(%
sp
)+,
%a1
movel
(%
sp
)+,
%a1
movel
(%
sp
)+,%
d1
movel
(%
sp
)+,%
d1
movel
(%
sp
)+,
%a0
movel
(%
sp
)+,
%a0
...
@@ -46,7 +46,7 @@ ENTRY(__down_failed_trylock)
...
@@ -46,7 +46,7 @@ ENTRY(__down_failed_trylock)
ENTRY
(
__up_wakeup
)
ENTRY
(
__up_wakeup
)
moveml
%a0
/%
d0
/%
d1
,-(%
sp
)
moveml
%a0
/%
d0
/%
d1
,-(%
sp
)
movel
%a1
,-(%
sp
)
movel
%a1
,-(%
sp
)
jbsr
SYMBOL_NAME
(
__up
)
jbsr
__up
movel
(%
sp
)+,
%a1
movel
(%
sp
)+,
%a1
moveml
(%
sp
)+,
%a0
/%
d0
/%
d1
moveml
(%
sp
)+,
%a0
/%
d0
/%
d1
rts
rts
...
...
arch/m68k/math-emu/fp_entry.S
View file @
912c173d
...
@@ -41,17 +41,17 @@
...
@@ -41,17 +41,17 @@
#include "fp_emu.h"
#include "fp_emu.h"
.
globl
SYMBOL_NAME
(
fpu_emu
)
.
globl
fpu_emu
.
globl
fp_debugprint
.
globl
fp_debugprint
.
globl
fp_err_ua1
,
fp_err_ua2
.
globl
fp_err_ua1
,
fp_err_ua2
.
text
.
text
SYMBOL_NAME_LABEL
(
fpu_emu
)
fpu_emu
:
SAVE_ALL_INT
SAVE_ALL_INT
GET_CURRENT
(%
d0
)
GET_CURRENT
(%
d0
)
#if defined(CPU_M68020_OR_M68030) && defined(CPU_M68040_OR_M68060)
#if defined(CPU_M68020_OR_M68030) && defined(CPU_M68040_OR_M68060)
tst.l
SYMBOL_NAME
(
m68k_is040or060
)
tst.l
m68k_is040or060
jeq
1
f
jeq
1
f
#endif
#endif
#if defined(CPU_M68040_OR_M68060)
#if defined(CPU_M68040_OR_M68060)
...
@@ -63,7 +63,7 @@ SYMBOL_NAME_LABEL(fpu_emu)
...
@@ -63,7 +63,7 @@ SYMBOL_NAME_LABEL(fpu_emu)
#if defined(CONFIG_M68060)
#if defined(CONFIG_M68060)
#if !defined(CPU_M68060_ONLY)
#if !defined(CPU_M68060_ONLY)
btst
#
3
,
SYMBOL_NAME
(
m68k_cputype
)
+
3
btst
#
3
,
m68k_cputype
+
3
jeq
1
f
jeq
1
f
#endif
#endif
btst
#
7
,(
FPS_SR
,%
sp
)
btst
#
7
,(
FPS_SR
,%
sp
)
...
@@ -72,11 +72,11 @@ SYMBOL_NAME_LABEL(fpu_emu)
...
@@ -72,11 +72,11 @@ SYMBOL_NAME_LABEL(fpu_emu)
1
:
1
:
|
emulation
successful
?
|
emulation
successful
?
tst.l
%
d0
tst.l
%
d0
jeq
SYMBOL_NAME
(
ret_from_exception
)
jeq
ret_from_exception
|
send
some
signal
to
program
here
|
send
some
signal
to
program
here
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
|
we
jump
here
after
an
access
error
while
trying
to
access
|
we
jump
here
after
an
access
error
while
trying
to
access
|
user
space
,
we
correct
stackpointer
and
send
a
SIGSEGV
to
|
user
space
,
we
correct
stackpointer
and
send
a
SIGSEGV
to
...
@@ -88,9 +88,9 @@ fp_err_ua1:
...
@@ -88,9 +88,9 @@ fp_err_ua1:
move.l
%a0
,-(%
sp
)
move.l
%a0
,-(%
sp
)
pea
SEGV_MAPERR
pea
SEGV_MAPERR
pea
SIGSEGV
pea
SIGSEGV
jsr
SYMBOL_NAME
(
fpemu_signal
)
jsr
fpemu_signal
add.w
#
12
,%
sp
add.w
#
12
,%
sp
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
#if defined(CONFIG_M68060)
#if defined(CONFIG_M68060)
|
send
a
trace
signal
if
we
are
debugged
|
send
a
trace
signal
if
we
are
debugged
...
@@ -99,9 +99,9 @@ fp_sendtrace060:
...
@@ -99,9 +99,9 @@ fp_sendtrace060:
move.l
(
FPS_PC
,%
sp
),-(%
sp
)
move.l
(
FPS_PC
,%
sp
),-(%
sp
)
pea
TRAP_TRACE
pea
TRAP_TRACE
pea
SIGTRAP
pea
SIGTRAP
jsr
SYMBOL_NAME
(
fpemu_signal
)
jsr
fpemu_signal
add.w
#
12
,%
sp
add.w
#
12
,%
sp
jra
SYMBOL_NAME
(
ret_from_exception
)
jra
ret_from_exception
#endif
#endif
.
globl
fp_get_data_reg
,
fp_put_data_reg
.
globl
fp_get_data_reg
,
fp_put_data_reg
...
...
include/asm-m68k/system.h
View file @
912c173d
...
@@ -40,7 +40,7 @@ asmlinkage void resume(void);
...
@@ -40,7 +40,7 @@ asmlinkage void resume(void);
register void *_prev __asm__ ("a0") = (prev); \
register void *_prev __asm__ ("a0") = (prev); \
register void *_next __asm__ ("a1") = (next); \
register void *_next __asm__ ("a1") = (next); \
register void *_last __asm__ ("d1"); \
register void *_last __asm__ ("d1"); \
__asm__ __volatile__("jbsr
" SYMBOL_NAME_STR(resume)
\
__asm__ __volatile__("jbsr
resume"
\
: "=d" (_last) : "a" (_prev), "a" (_next) \
: "=d" (_last) : "a" (_prev), "a" (_next) \
: "d0",
/* "d1", */
"d2", "d3", "d4", "d5", "a0", "a1"); \
: "d0",
/* "d1", */
"d2", "d3", "d4", "d5", "a0", "a1"); \
(last) = _last; \
(last) = _last; \
...
...
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