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
78e8fcd6
Commit
78e8fcd6
authored
Mar 19, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge alpha Kconfig
parents
3e17e2a4
8208fc00
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
356 additions
and
196 deletions
+356
-196
arch/alpha/Kconfig
arch/alpha/Kconfig
+3
-14
arch/alpha/defconfig
arch/alpha/defconfig
+308
-137
arch/alpha/kernel/alpha_ksyms.c
arch/alpha/kernel/alpha_ksyms.c
+3
-0
arch/alpha/kernel/time.c
arch/alpha/kernel/time.c
+6
-4
arch/alpha/kernel/traps.c
arch/alpha/kernel/traps.c
+36
-41
No files found.
arch/alpha/Kconfig
View file @
78e8fcd6
...
...
@@ -188,7 +188,7 @@ config ALPHA_MIATA
help
The Digital PersonalWorkStation (PWS 433a, 433au, 500a, 500au, 600a,
or 600au). There is an Installation HOWTO for this hardware at
<http://
members.brabant.chello.nl/~s.vandereijk
/miata.html>.
<http://
eijk.homelinux.org/~stefan
/miata.html>.
config ALPHA_MIKASA
bool "Mikasa"
...
...
@@ -486,19 +486,8 @@ config SMP
singleprocessor machines. On a singleprocessor machine, the kernel
will run faster if you say N here.
Note that if you say Y here and choose architecture "586" or
"Pentium" under "Processor family", the kernel will not work on 486
architectures. Similarly, multiprocessor kernels for the "PPro"
architecture may not work on all Pentium based boards.
People using multiprocessor machines who say Y here should also say
Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
Management" code will be disabled if you say Y here.
See also the <file:Documentation/smp.txt>,
<file:Documentation/i386/IO-APIC.txt>,
<file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
<http://www.tldp.org/docs.html#howto>.
See also the <file:Documentation/smp.tex>, and the SMP-HOWTO
available at <http://www.tldp.org/docs.html#howto>.
If you don't know what to do here, say N.
...
...
arch/alpha/defconfig
View file @
78e8fcd6
This diff is collapsed.
Click to expand it.
arch/alpha/kernel/alpha_ksyms.c
View file @
78e8fcd6
...
...
@@ -35,6 +35,9 @@
#include <asm/cacheflush.h>
#include <asm/vga.h>
#define __KERNEL_SYSCALLS__
#include <asm/unistd.h>
extern
struct
hwrpb_struct
*
hwrpb
;
extern
void
dump_thread
(
struct
pt_regs
*
,
struct
user
*
);
extern
spinlock_t
rtc_lock
;
...
...
arch/alpha/kernel/time.c
View file @
78e8fcd6
...
...
@@ -24,6 +24,8 @@
* 2000-08-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* Fixed time_init to be aware of epoches != 1900. This prevents
* booting up in 2048 for me;) Code is stolen from rtc.c.
* 2003-06-03 R. Scott Bailey <scott.bailey@eds.com>
* Tighten sanity in time_init from 1% (10,000 PPM) to 250 PPM
*/
#include <linux/config.h>
#include <linux/errno.h>
...
...
@@ -306,7 +308,7 @@ void __init
time_init
(
void
)
{
unsigned
int
year
,
mon
,
day
,
hour
,
min
,
sec
,
cc1
,
cc2
,
epoch
;
unsigned
long
cycle_freq
,
one_percent
;
unsigned
long
cycle_freq
,
tolerance
;
long
diff
;
/* Calibrate CPU clock -- attempt #1. */
...
...
@@ -324,13 +326,13 @@ time_init(void)
cycle_freq
=
hwrpb
->
cycle_freq
;
if
(
est_cycle_freq
)
{
/* If the given value is within
1% of what we calculated,
/* If the given value is within
250 PPM of what we calculated,
accept it. Otherwise, use what we found. */
one_percent
=
cycle_freq
/
1
00
;
tolerance
=
cycle_freq
/
40
00
;
diff
=
cycle_freq
-
est_cycle_freq
;
if
(
diff
<
0
)
diff
=
-
diff
;
if
((
unsigned
long
)
diff
>
one_percent
)
{
if
((
unsigned
long
)
diff
>
tolerance
)
{
cycle_freq
=
est_cycle_freq
;
printk
(
"HWRPB cycle frequency bogus. "
"Estimated %lu Hz
\n
"
,
cycle_freq
);
...
...
arch/alpha/kernel/traps.c
View file @
78e8fcd6
...
...
@@ -15,6 +15,7 @@
#include <linux/delay.h>
#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/init.h>
#include <asm/gentrap.h>
#include <asm/uaccess.h>
...
...
@@ -25,35 +26,37 @@
#include "proto.h"
/* data/code implementing a work-around for some SRMs which
mishandle opDEC faults
*/
static
int
opDEC_testing
=
0
;
static
int
opDEC_fix
=
0
;
static
int
opDEC_checked
=
0
;
static
unsigned
long
opDEC_test_pc
=
0
;
/* Work-around for some SRMs which mishandle opDEC faults. */
static
void
static
int
opDEC_fix
;
static
void
__init
opDEC_check
(
void
)
{
unsigned
long
test_pc
;
if
(
opDEC_checked
)
return
;
lock_kernel
();
opDEC_testing
=
1
;
__asm__
__volatile__
(
" br %0,1f
\n
"
"1: addq %0,8,%0
\n
"
" stq %0,%1
\n
"
" cvttq/svm $f31,$f31
\n
"
:
"=&r"
(
test_pc
),
"=m"
(
opDEC_test_pc
)
:
);
opDEC_testing
=
0
;
opDEC_checked
=
1
;
unlock_kernel
();
__asm__
__volatile__
(
/* Load the address of... */
" br $16, 1f
\n
"
/* A stub instruction fault handler. Just add 4 to the
pc and continue. */
" ldq $16, 8($sp)
\n
"
" addq $16, 4, $16
\n
"
" stq $16, 8($sp)
\n
"
" call_pal %[rti]
\n
"
/* Install the instruction fault handler. */
"1: lda $17, 3
\n
"
" call_pal %[wrent]
\n
"
/* With that in place, the fault from the round-to-minf fp
insn will arrive either at the "lda 4" insn (bad) or one
past that (good). This places the correct fixup in %0. */
" lda %[fix], 0
\n
"
" cvttq/svm $f31,$f31
\n
"
" lda %[fix], 4"
:
[
fix
]
"=r"
(
opDEC_fix
)
:
[
rti
]
"n"
(
PAL_rti
),
[
wrent
]
"n"
(
PAL_wrent
)
:
"$0"
,
"$1"
,
"$16"
,
"$17"
,
"$22"
,
"$23"
,
"$24"
,
"$25"
);
if
(
opDEC_fix
)
printk
(
"opDEC fixup enabled.
\n
"
);
}
void
...
...
@@ -244,7 +247,7 @@ do_entIF(unsigned long type, struct pt_regs *regs)
siginfo_t
info
;
int
signo
,
code
;
if
(
!
opDEC_testing
||
type
!=
4
)
{
if
(
regs
->
ps
==
0
)
{
if
(
type
==
1
)
{
const
unsigned
int
*
data
=
(
const
unsigned
int
*
)
regs
->
pc
;
...
...
@@ -359,14 +362,6 @@ do_entIF(unsigned long type, struct pt_regs *regs)
fault during the boot sequence and testing if
we get the correct PC. If not, we set a flag
to correct it every time through. */
if
(
opDEC_testing
)
{
if
(
regs
->
pc
==
opDEC_test_pc
)
{
opDEC_fix
=
4
;
regs
->
pc
+=
4
;
printk
(
"opDEC fixup enabled.
\n
"
);
}
return
;
}
regs
->
pc
+=
opDEC_fix
;
/* EV4 does not implement anything except normal
...
...
@@ -1083,22 +1078,22 @@ do_entUnaUser(void * va, unsigned long opcode,
return
;
}
void
void
__init
trap_init
(
void
)
{
/* Tell PAL-code what global pointer we want in the kernel. */
register
unsigned
long
gptr
__asm__
(
"$29"
);
wrkgp
(
gptr
);
/* Hack for Multia (UDB) and JENSEN: some of their SRMs have
a bug in the handling of the opDEC fault. Fix it up if so. */
if
(
implver
()
==
IMPLVER_EV4
)
opDEC_check
();
wrent
(
entArith
,
1
);
wrent
(
entMM
,
2
);
wrent
(
entIF
,
3
);
wrent
(
entUna
,
4
);
wrent
(
entSys
,
5
);
wrent
(
entDbg
,
6
);
/* Hack for Multia (UDB) and JENSEN: some of their SRMs have
a bug in the handling of the opDEC fault. Fix it up if so. */
if
(
implver
()
==
IMPLVER_EV4
)
opDEC_check
();
}
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