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
2850310b
Commit
2850310b
authored
Jul 10, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
parents
cdd3fde3
7e65788c
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
295 additions
and
77 deletions
+295
-77
Makefile
Makefile
+1
-1
arch/parisc/Kconfig
arch/parisc/Kconfig
+9
-2
arch/parisc/hpux/sys_hpux.c
arch/parisc/hpux/sys_hpux.c
+1
-1
arch/parisc/kernel/drivers.c
arch/parisc/kernel/drivers.c
+3
-1
arch/parisc/kernel/ioctl32.c
arch/parisc/kernel/ioctl32.c
+2
-1
arch/parisc/kernel/module.c
arch/parisc/kernel/module.c
+48
-1
arch/parisc/kernel/pci.c
arch/parisc/kernel/pci.c
+3
-2
arch/parisc/kernel/sys_parisc32.c
arch/parisc/kernel/sys_parisc32.c
+2
-2
arch/parisc/kernel/time.c
arch/parisc/kernel/time.c
+1
-1
arch/parisc/kernel/traps.c
arch/parisc/kernel/traps.c
+9
-7
arch/parisc/kernel/unaligned.c
arch/parisc/kernel/unaligned.c
+155
-43
drivers/eisa/Kconfig
drivers/eisa/Kconfig
+1
-1
drivers/input/misc/gsc_ps2.c
drivers/input/misc/gsc_ps2.c
+16
-6
drivers/parisc/Kconfig
drivers/parisc/Kconfig
+4
-1
fs/binfmt_elf.c
fs/binfmt_elf.c
+1
-1
include/asm-parisc/byteorder.h
include/asm-parisc/byteorder.h
+2
-2
include/asm-parisc/parisc-device.h
include/asm-parisc/parisc-device.h
+1
-0
include/asm-parisc/pgtable.h
include/asm-parisc/pgtable.h
+4
-4
include/asm-parisc/processor.h
include/asm-parisc/processor.h
+1
-0
include/linux/sysctl.h
include/linux/sysctl.h
+2
-0
kernel/sysctl.c
kernel/sysctl.c
+29
-0
No files found.
Makefile
View file @
2850310b
...
@@ -35,7 +35,7 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
...
@@ -35,7 +35,7 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
SUBARCH
:=
$(
shell
uname
-m
|
sed
-e
s/i.86/i386/
-e
s/sun4u/sparc64/
\
SUBARCH
:=
$(
shell
uname
-m
|
sed
-e
s/i.86/i386/
-e
s/sun4u/sparc64/
\
-e
s/arm.
*
/arm/
-e
s/sa110/arm/
\
-e
s/arm.
*
/arm/
-e
s/sa110/arm/
\
-e
s/s390x/s390/
)
-e
s/s390x/s390/
-e
s/parisc64/parisc/
)
# Remove hyphens since they have special meaning in RPM filenames
# Remove hyphens since they have special meaning in RPM filenames
KERNELPATH
=
kernel-
$(
subst
-,,
$(KERNELRELEASE)
)
KERNELPATH
=
kernel-
$(
subst
-,,
$(KERNELRELEASE)
)
...
...
arch/parisc/Kconfig
View file @
2850310b
#
#
# For a description of the syntax of this configuration file,
# For a description of the syntax of this configuration file,
# see
the Configure scrip
t.
# see
Documentation/kbuild/kconfig-language.tx
t.
#
#
mainmenu "Linux/PA-RISC Kernel Configuration"
mainmenu "Linux/PA-RISC Kernel Configuration"
...
@@ -289,12 +289,19 @@ config MAGIC_SYSRQ
...
@@ -289,12 +289,19 @@ config MAGIC_SYSRQ
config KALLSYMS
config KALLSYMS
bool "Load all symbols for debugging/kksymoops"
bool "Load all symbols for debugging/kksymoops"
depends on DEBUG_KERNEL
help
help
Say Y here to let the kernel print out symbolic crash information and
Say Y here to let the kernel print out symbolic crash information and
symbolic stack backtraces. This increases the size of the kernel
symbolic stack backtraces. This increases the size of the kernel
somewhat, as all symbols have to be loaded into the kernel image.
somewhat, as all symbols have to be loaded into the kernel image.
config FRAME_POINTER
bool "Compile the kernel with frame pointers"
help
If you say Y here the resulting kernel image will be slightly larger
and slower, but it will give very useful debugging information.
If you don't debug the kernel, you can say N, but we may not be able
to solve problems without frame pointers.
endmenu
endmenu
source "security/Kconfig"
source "security/Kconfig"
...
...
arch/parisc/hpux/sys_hpux.c
View file @
2850310b
...
@@ -121,7 +121,7 @@ static int hpux_ustat(dev_t dev, struct hpux_ustat *ubuf)
...
@@ -121,7 +121,7 @@ static int hpux_ustat(dev_t dev, struct hpux_ustat *ubuf)
{
{
struct
super_block
*
s
;
struct
super_block
*
s
;
struct
hpux_ustat
tmp
;
/* Changed to hpux_ustat */
struct
hpux_ustat
tmp
;
/* Changed to hpux_ustat */
struct
statfs
sbuf
;
struct
k
statfs
sbuf
;
int
err
=
-
EINVAL
;
int
err
=
-
EINVAL
;
s
=
user_get_super
(
dev
);
s
=
user_get_super
(
dev
);
...
...
arch/parisc/kernel/drivers.c
View file @
2850310b
...
@@ -112,7 +112,9 @@ static int parisc_driver_probe(struct device *dev)
...
@@ -112,7 +112,9 @@ static int parisc_driver_probe(struct device *dev)
static
int
parisc_driver_remove
(
struct
device
*
dev
)
static
int
parisc_driver_remove
(
struct
device
*
dev
)
{
{
struct
parisc_device
*
pa_dev
=
to_parisc_device
(
dev
);
struct
parisc_device
*
pa_dev
=
to_parisc_device
(
dev
);
struct
parisc_driver
*
pa_drv
=
to_parisc_driver
(
dev
->
driver
);
if
(
pa_drv
->
remove
)
pa_drv
->
remove
(
pa_dev
);
release_mem_region
(
pa_dev
->
hpa
,
0x1000
);
release_mem_region
(
pa_dev
->
hpa
,
0x1000
);
return
0
;
return
0
;
...
...
arch/parisc/kernel/ioctl32.c
View file @
2850310b
...
@@ -36,8 +36,9 @@
...
@@ -36,8 +36,9 @@
#include <linux/mtio.h>
#include <linux/mtio.h>
#include <linux/cdrom.h>
#include <linux/cdrom.h>
#include <linux/loop.h>
#include <linux/loop.h>
#include <linux/auto_fs.h>
#include <linux/auto_fs
4
.h>
#include <linux/devfs_fs.h>
#include <linux/devfs_fs.h>
#include <linux/ncp_fs.h>
#include <linux/tty.h>
#include <linux/tty.h>
#include <linux/vt_kern.h>
#include <linux/vt_kern.h>
#include <linux/fb.h>
#include <linux/fb.h>
...
...
arch/parisc/kernel/module.c
View file @
2850310b
...
@@ -671,6 +671,11 @@ int module_finalize(const Elf_Ehdr *hdr,
...
@@ -671,6 +671,11 @@ int module_finalize(const Elf_Ehdr *hdr,
const
Elf_Shdr
*
sechdrs
,
const
Elf_Shdr
*
sechdrs
,
struct
module
*
me
)
struct
module
*
me
)
{
{
int
i
;
unsigned
long
nsyms
;
const
char
*
strtab
=
NULL
;
Elf_Sym
*
newptr
,
*
oldptr
;
Elf_Shdr
*
symhdr
=
NULL
;
#ifdef DEBUG
#ifdef DEBUG
struct
fdesc_entry
*
entry
;
struct
fdesc_entry
*
entry
;
u32
*
addr
;
u32
*
addr
;
...
@@ -690,7 +695,49 @@ int module_finalize(const Elf_Ehdr *hdr,
...
@@ -690,7 +695,49 @@ int module_finalize(const Elf_Ehdr *hdr,
me
->
arch
.
got_count
,
me
->
arch
.
got_max
,
me
->
arch
.
got_count
,
me
->
arch
.
got_max
,
me
->
arch
.
fdesc_count
,
me
->
arch
.
fdesc_max
);
me
->
arch
.
fdesc_count
,
me
->
arch
.
fdesc_max
);
#endif
#endif
/* haven't filled in me->symtab yet, so have to find it
* ourselves */
for
(
i
=
1
;
i
<
hdr
->
e_shnum
;
i
++
)
{
if
(
sechdrs
[
i
].
sh_type
==
SHT_SYMTAB
&&
(
sechdrs
[
i
].
sh_type
&
SHF_ALLOC
))
{
int
strindex
=
sechdrs
[
i
].
sh_link
;
/* FIXME: AWFUL HACK
* The cast is to drop the const from
* the sechdrs pointer */
symhdr
=
(
Elf_Shdr
*
)
&
sechdrs
[
i
];
strtab
=
(
char
*
)
sechdrs
[
strindex
].
sh_addr
;
break
;
}
}
printk
(
"module %s: strtab %p, symhdr %p
\n
"
,
me
->
name
,
strtab
,
symhdr
);
/* no symbol table */
if
(
symhdr
==
NULL
)
return
0
;
oldptr
=
(
void
*
)
symhdr
->
sh_addr
;
newptr
=
oldptr
+
1
;
/* we start counting at 1 */
nsyms
=
symhdr
->
sh_size
/
sizeof
(
Elf_Sym
);
DEBUGP
(
"OLD num_symtab %lu
\n
"
,
nsyms
);
for
(
i
=
1
;
i
<
nsyms
;
i
++
)
{
oldptr
++
;
/* note, count starts at 1 so preincrement */
if
(
strncmp
(
strtab
+
oldptr
->
st_name
,
".L"
,
2
)
==
0
)
continue
;
if
(
newptr
!=
oldptr
)
*
newptr
++
=
*
oldptr
;
else
newptr
++
;
}
nsyms
=
newptr
-
(
Elf_Sym
*
)
symhdr
->
sh_addr
;
DEBUGP
(
"NEW num_symtab %lu
\n
"
,
nsyms
);
symhdr
->
sh_size
=
nsyms
*
sizeof
(
Elf_Sym
);
return
0
;
return
0
;
}
}
...
...
arch/parisc/kernel/pci.c
View file @
2850310b
...
@@ -10,11 +10,12 @@
...
@@ -10,11 +10,12 @@
* Copyright (C) 1999-2001 Grant Grundler
* Copyright (C) 1999-2001 Grant Grundler
*/
*/
#include <linux/config.h>
#include <linux/config.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/init.h>
/* for __init and __devinit */
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/system.h>
...
...
arch/parisc/kernel/sys_parisc32.c
View file @
2850310b
...
@@ -418,11 +418,11 @@ sys32_gettimeofday(struct compat_timeval *tv, struct timezone *tz)
...
@@ -418,11 +418,11 @@ sys32_gettimeofday(struct compat_timeval *tv, struct timezone *tz)
}
}
asmlinkage
int
asmlinkage
int
sys32_settimeofday
(
struct
compat_time
val
*
tv
,
struct
timezone
*
tz
)
sys32_settimeofday
(
struct
compat_time
spec
*
tv
,
struct
timezone
*
tz
)
{
{
struct
timeval
ktv
;
struct
timeval
ktv
;
struct
timezone
ktz
;
struct
timezone
ktz
;
extern
int
do_sys_settimeofday
(
struct
time
val
*
tv
,
struct
timezone
*
tz
);
extern
int
do_sys_settimeofday
(
struct
time
spec
*
tv
,
struct
timezone
*
tz
);
if
(
tv
)
{
if
(
tv
)
{
if
(
get_compat_timeval
(
tv
,
&
ktv
))
if
(
get_compat_timeval
(
tv
,
&
ktv
))
...
...
arch/parisc/kernel/time.c
View file @
2850310b
...
@@ -188,7 +188,7 @@ do_gettimeofday (struct timeval *tv)
...
@@ -188,7 +188,7 @@ do_gettimeofday (struct timeval *tv)
}
}
int
int
do_settimeofday
(
struct
time
val
*
tv
)
do_settimeofday
(
struct
time
spec
*
tv
)
{
{
if
((
unsigned
long
)
tv
->
tv_nsec
>=
NSEC_PER_SEC
)
if
((
unsigned
long
)
tv
->
tv_nsec
>=
NSEC_PER_SEC
)
return
-
EINVAL
;
return
-
EINVAL
;
...
...
arch/parisc/kernel/traps.c
View file @
2850310b
...
@@ -126,7 +126,7 @@ void show_regs(struct pt_regs *regs)
...
@@ -126,7 +126,7 @@ void show_regs(struct pt_regs *regs)
void
dump_stack
(
void
)
void
dump_stack
(
void
)
{
{
unsigned
long
stack
;
unsigned
long
stack
;
show_trace
(
&
stack
);
show_trace
(
current
,
&
stack
);
}
}
...
@@ -136,7 +136,7 @@ static int kstack_depth_to_print = 64 * 4;
...
@@ -136,7 +136,7 @@ static int kstack_depth_to_print = 64 * 4;
static
int
kstack_depth_to_print
=
128
*
4
;
static
int
kstack_depth_to_print
=
128
*
4
;
#endif
#endif
void
show_stack
(
unsigned
long
*
sp
)
void
show_stack
(
struct
task_struct
*
task
,
unsigned
long
*
sp
)
{
{
unsigned
long
*
stack
;
unsigned
long
*
stack
;
int
i
;
int
i
;
...
@@ -145,8 +145,10 @@ void show_stack(unsigned long *sp)
...
@@ -145,8 +145,10 @@ void show_stack(unsigned long *sp)
* debugging aid: "show_stack(NULL);" prints the
* debugging aid: "show_stack(NULL);" prints the
* back trace for this cpu.
* back trace for this cpu.
*/
*/
if
(
sp
==
NULL
)
if
(
task
==
NULL
)
sp
=
(
unsigned
long
*
)
&
sp
;
sp
=
(
unsigned
long
*
)
&
sp
;
else
if
(
sp
==
NULL
)
sp
=
(
unsigned
long
*
)
task
->
thread
.
regs
.
ksp
;
stack
=
sp
;
stack
=
sp
;
printk
(
"
\n
"
KERN_CRIT
"Stack Dump:
\n
"
);
printk
(
"
\n
"
KERN_CRIT
"Stack Dump:
\n
"
);
...
@@ -160,11 +162,11 @@ void show_stack(unsigned long *sp)
...
@@ -160,11 +162,11 @@ void show_stack(unsigned long *sp)
printk
(
RFMT
" "
,
*
stack
--
);
printk
(
RFMT
" "
,
*
stack
--
);
}
}
printk
(
"
\n
"
KERN_CRIT
"
\n
"
);
printk
(
"
\n
"
KERN_CRIT
"
\n
"
);
show_trace
(
sp
);
show_trace
(
task
,
sp
);
}
}
void
show_trace
(
unsigned
long
*
stack
)
void
show_trace
(
struct
task_struct
*
task
,
unsigned
long
*
stack
)
{
{
unsigned
long
*
startstack
;
unsigned
long
*
startstack
;
unsigned
long
addr
;
unsigned
long
addr
;
...
@@ -201,7 +203,7 @@ void show_trace(unsigned long *stack)
...
@@ -201,7 +203,7 @@ void show_trace(unsigned long *stack)
void
show_trace_task
(
struct
task_struct
*
tsk
)
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
{
show_trace
((
unsigned
long
*
)
tsk
->
thread
.
regs
.
ksp
);
show_trace
(
tsk
,
(
unsigned
long
*
)
tsk
->
thread
.
regs
.
ksp
);
}
}
void
die_if_kernel
(
char
*
str
,
struct
pt_regs
*
regs
,
long
err
)
void
die_if_kernel
(
char
*
str
,
struct
pt_regs
*
regs
,
long
err
)
...
@@ -426,7 +428,7 @@ void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long o
...
@@ -426,7 +428,7 @@ void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long o
if
(
code
==
1
)
if
(
code
==
1
)
transfer_pim_to_trap_frame
(
regs
);
transfer_pim_to_trap_frame
(
regs
);
show_stack
((
unsigned
long
*
)
regs
->
gr
[
30
]);
show_stack
(
NULL
,
(
unsigned
long
*
)
regs
->
gr
[
30
]);
printk
(
"
\n
"
);
printk
(
"
\n
"
);
printk
(
KERN_CRIT
"%s: Code=%d regs=%p (Addr="
RFMT
")
\n
"
,
printk
(
KERN_CRIT
"%s: Code=%d regs=%p (Addr="
RFMT
")
\n
"
,
...
...
arch/parisc/kernel/unaligned.c
View file @
2850310b
...
@@ -92,6 +92,15 @@
...
@@ -92,6 +92,15 @@
#define OPCODE_STWA OPCODE1(0x03,1,0xe)
#define OPCODE_STWA OPCODE1(0x03,1,0xe)
#define OPCODE_STDA OPCODE1(0x03,1,0xf)
#define OPCODE_STDA OPCODE1(0x03,1,0xf)
#define OPCODE_FLDWX OPCODE1(0x09,0,0x0)
#define OPCODE_FSTWX OPCODE1(0x09,0,0x4)
#define OPCODE_FLDWS OPCODE1(0x09,1,0x0)
#define OPCODE_FSTWS OPCODE1(0x09,1,0x4)
#define OPCODE_FLDDX OPCODE1(0x0b,0,0x0)
#define OPCODE_FSTDX OPCODE1(0x0b,0,0x4)
#define OPCODE_FLDDS OPCODE1(0x0b,1,0x0)
#define OPCODE_FSTDS OPCODE1(0x0b,1,0x4)
#define OPCODE_LDD_L OPCODE2(0x14,0)
#define OPCODE_LDD_L OPCODE2(0x14,0)
#define OPCODE_FLDD_L OPCODE2(0x14,1)
#define OPCODE_FLDD_L OPCODE2(0x14,1)
#define OPCODE_STD_L OPCODE2(0x1c,0)
#define OPCODE_STD_L OPCODE2(0x1c,0)
...
@@ -113,6 +122,7 @@
...
@@ -113,6 +122,7 @@
#define R1(i) (((i)>>21)&0x1f)
#define R1(i) (((i)>>21)&0x1f)
#define R2(i) (((i)>>16)&0x1f)
#define R2(i) (((i)>>16)&0x1f)
#define R3(i) ((i)&0x1f)
#define R3(i) ((i)&0x1f)
#define FR3(i) ((((i)<<1)&0x1f)|(((i)>>6)&1))
#define IM(i,n) (((i)>>1&((1<<(n-1))-1))|((i)&1?((0-1L)<<(n-1)):0))
#define IM(i,n) (((i)>>1&((1<<(n-1))-1))|((i)&1?((0-1L)<<(n-1)):0))
#define IM5_2(i) IM((i)>>16,5)
#define IM5_2(i) IM((i)>>16,5)
#define IM5_3(i) IM((i),5)
#define IM5_3(i) IM((i),5)
...
@@ -146,7 +156,7 @@ static int emulate_ldh(struct pt_regs *regs, int toreg)
...
@@ -146,7 +156,7 @@ static int emulate_ldh(struct pt_regs *regs, int toreg)
return
0
;
return
0
;
}
}
static
int
emulate_ldw
(
struct
pt_regs
*
regs
,
int
toreg
)
static
int
emulate_ldw
(
struct
pt_regs
*
regs
,
int
toreg
,
int
flop
)
{
{
unsigned
long
saddr
=
regs
->
ior
;
unsigned
long
saddr
=
regs
->
ior
;
unsigned
long
val
=
0
;
unsigned
long
val
=
0
;
...
@@ -169,20 +179,26 @@ static int emulate_ldw(struct pt_regs *regs, int toreg)
...
@@ -169,20 +179,26 @@ static int emulate_ldw(struct pt_regs *regs, int toreg)
DPRINTF
(
"val = 0x"
RFMT
"
\n
"
,
val
);
DPRINTF
(
"val = 0x"
RFMT
"
\n
"
,
val
);
if
(
toreg
)
if
(
flop
)
((
__u32
*
)(
regs
->
fr
))[
toreg
]
=
val
;
else
if
(
toreg
)
regs
->
gr
[
toreg
]
=
val
;
regs
->
gr
[
toreg
]
=
val
;
return
0
;
return
0
;
}
}
#ifdef __LP64__
static
int
emulate_ldd
(
struct
pt_regs
*
regs
,
int
toreg
,
int
flop
)
static
int
emulate_ldd
(
struct
pt_regs
*
regs
,
int
toreg
)
{
{
unsigned
long
saddr
=
regs
->
ior
;
unsigned
long
saddr
=
regs
->
ior
;
unsigned
long
val
=
0
;
__u64
val
=
0
;
DPRINTF
(
"load "
RFMT
":"
RFMT
" to r%d for 8 bytes
\n
"
,
DPRINTF
(
"load "
RFMT
":"
RFMT
" to r%d for 8 bytes
\n
"
,
regs
->
isr
,
regs
->
ior
,
toreg
);
regs
->
isr
,
regs
->
ior
,
toreg
);
#ifdef CONFIG_PA20
#ifndef __LP64__
if
(
!
flop
)
return
-
1
;
#endif
__asm__
__volatile__
(
__asm__
__volatile__
(
" depd,z %2,60,3,%%r19
\n
"
/* r19=(ofs&7)*8 */
" depd,z %2,60,3,%%r19
\n
"
/* r19=(ofs&7)*8 */
" mtsp %3, %%sr1
\n
"
" mtsp %3, %%sr1
\n
"
...
@@ -195,15 +211,36 @@ static int emulate_ldd(struct pt_regs *regs, int toreg)
...
@@ -195,15 +211,36 @@ static int emulate_ldd(struct pt_regs *regs, int toreg)
:
"=r"
(
val
)
:
"=r"
(
val
)
:
"0"
(
val
),
"r"
(
saddr
),
"r"
(
regs
->
isr
)
:
"0"
(
val
),
"r"
(
saddr
),
"r"
(
regs
->
isr
)
:
"r19"
,
"r20"
);
:
"r19"
,
"r20"
);
#else
{
unsigned
long
valh
=
0
,
vall
=
0
;
__asm__
__volatile__
(
" zdep %4,29,2,%%r19
\n
"
/* r19=(ofs&3)*8 */
" mtsp %5, %%sr1
\n
"
" dep %%r0,31,2,%4
\n
"
" ldw 0(%%sr1,%5),%0
\n
"
" ldw 4(%%sr1,%5),%1
\n
"
" ldw 8(%%sr1,%5),%%r20
\n
"
" subi 32,%%r19,%%r19
\n
"
" mtsar %%r19
\n
"
" vshd %0,%1,%0
\n
"
" vshd %1,%%r20,%1
\n
"
:
"=r"
(
valh
),
"=r"
(
vall
)
:
"0"
(
valh
),
"1"
(
vall
),
"r"
(
saddr
),
"r"
(
regs
->
isr
)
:
"r19"
,
"r20"
);
val
=
((
__u64
)
valh
<<
32
)
|
(
__u64
)
vall
;
}
#endif
DPRINTF
(
"val = 0x"
RFMT
"
\n
"
,
val
);
DPRINTF
(
"val = 0x"
RFMT
"
\n
"
,
val
);
if
(
toreg
)
if
(
flop
)
regs
->
fr
[
toreg
]
=
val
;
else
if
(
toreg
)
regs
->
gr
[
toreg
]
=
val
;
regs
->
gr
[
toreg
]
=
val
;
return
0
;
return
0
;
}
}
#endif
static
int
emulate_sth
(
struct
pt_regs
*
regs
,
int
frreg
)
static
int
emulate_sth
(
struct
pt_regs
*
regs
,
int
frreg
)
{
{
...
@@ -212,7 +249,7 @@ static int emulate_sth(struct pt_regs *regs, int frreg)
...
@@ -212,7 +249,7 @@ static int emulate_sth(struct pt_regs *regs, int frreg)
val
=
0
;
val
=
0
;
DPRINTF
(
"store r%d (0x"
RFMT
") to "
RFMT
":"
RFMT
" for 2 bytes
\n
"
,
frreg
,
DPRINTF
(
"store r%d (0x"
RFMT
") to "
RFMT
":"
RFMT
" for 2 bytes
\n
"
,
frreg
,
regs
->
gr
[
frreg
]
,
regs
->
isr
,
regs
->
ior
);
val
,
regs
->
isr
,
regs
->
ior
);
__asm__
__volatile__
(
__asm__
__volatile__
(
" mtsp %2, %%sr1
\n
"
" mtsp %2, %%sr1
\n
"
...
@@ -225,14 +262,19 @@ static int emulate_sth(struct pt_regs *regs, int frreg)
...
@@ -225,14 +262,19 @@ static int emulate_sth(struct pt_regs *regs, int frreg)
return
0
;
return
0
;
}
}
static
int
emulate_stw
(
struct
pt_regs
*
regs
,
int
frreg
)
static
int
emulate_stw
(
struct
pt_regs
*
regs
,
int
frreg
,
int
flop
)
{
{
unsigned
long
val
=
regs
->
gr
[
frreg
];
unsigned
long
val
;
if
(
!
frreg
)
if
(
flop
)
val
=
((
__u32
*
)(
regs
->
fr
))[
frreg
];
else
if
(
frreg
)
val
=
regs
->
gr
[
frreg
];
else
val
=
0
;
val
=
0
;
DPRINTF
(
"store r%d (0x"
RFMT
") to "
RFMT
":"
RFMT
" for 4 bytes
\n
"
,
frreg
,
DPRINTF
(
"store r%d (0x"
RFMT
") to "
RFMT
":"
RFMT
" for 4 bytes
\n
"
,
frreg
,
regs
->
gr
[
frreg
]
,
regs
->
isr
,
regs
->
ior
);
val
,
regs
->
isr
,
regs
->
ior
);
__asm__
__volatile__
(
__asm__
__volatile__
(
...
@@ -257,17 +299,25 @@ static int emulate_stw(struct pt_regs *regs, int frreg)
...
@@ -257,17 +299,25 @@ static int emulate_stw(struct pt_regs *regs, int frreg)
return
0
;
return
0
;
}
}
#ifdef __LP64__
static
int
emulate_std
(
struct
pt_regs
*
regs
,
int
frreg
,
int
flop
)
static
int
emulate_std
(
struct
pt_regs
*
regs
,
int
frreg
)
{
{
unsigned
long
val
=
regs
->
gr
[
frreg
];
__u64
val
;
if
(
!
frreg
)
val
=
0
;
DPRINTF
(
"store r%d (0x"
RFMT
") to "
RFMT
":"
RFMT
" for 8 bytes
\n
"
,
frreg
,
if
(
flop
)
regs
->
gr
[
frreg
],
regs
->
isr
,
regs
->
ior
);
val
=
regs
->
fr
[
frreg
];
else
if
(
frreg
)
val
=
regs
->
gr
[
frreg
];
else
val
=
0
;
DPRINTF
(
"store r%d (0x"
%
016ll
x
") to "
RFMT
":"
RFMT
" for 8 bytes
\n
"
,
frreg
,
val
,
regs
->
isr
,
regs
->
ior
);
#ifdef CONFIG_PA20
#ifndef __LP64__
if
(
!
flop
)
return
-
1
;
#endif
__asm__
__volatile__
(
__asm__
__volatile__
(
" mtsp %2, %%sr1
\n
"
" mtsp %2, %%sr1
\n
"
" depd,z %1, 60, 3, %%r19
\n
"
" depd,z %1, 60, 3, %%r19
\n
"
...
@@ -287,19 +337,45 @@ static int emulate_std(struct pt_regs *regs, int frreg)
...
@@ -287,19 +337,45 @@ static int emulate_std(struct pt_regs *regs, int frreg)
:
:
:
"r"
(
val
),
"r"
(
regs
->
ior
),
"r"
(
regs
->
isr
)
:
"r"
(
val
),
"r"
(
regs
->
ior
),
"r"
(
regs
->
isr
)
:
"r19"
,
"r20"
,
"r21"
,
"r22"
,
"r1"
);
:
"r19"
,
"r20"
,
"r21"
,
"r22"
,
"r1"
);
#else
{
unsigned
long
valh
=
(
val
>>
32
),
vall
=
(
val
&
0xffffffffl
);
__asm__
__volatile__
(
" mtsp %3, %%sr1
\n
"
" zdep %1, 29, 2, %%r19
\n
"
" dep %%r0, 31, 2, %1
\n
"
" mtsar %%r19
\n
"
" zvdepi -2, 32, %%r19
\n
"
" ldw 0(%%sr1,%2),%%r20
\n
"
" ldw 8(%%sr1,%2),%%r21
\n
"
" vshd %0, %1, %%r1
\n
"
" vshd %%r0, %0, %0
\n
"
" vshd %1, %%r0, %1
\n
"
" and %%r20, %%r19, %%r20
\n
"
" andcm %%r21, %%r19, %%r21
\n
"
" or %0, %%r20, %0
\n
"
" or %1, %%r21, %1
\n
"
" stw %0,0(%%sr1,%2)
\n
"
" stw %%r1,4(%%sr1,%2)
\n
"
" stw %1,8(%%sr1,%2)
\n
"
:
:
"r"
(
valh
),
"r"
(
vall
),
"r"
(
regs
->
ior
),
"r"
(
regs
->
isr
)
:
"r19"
,
"r20"
,
"r21"
,
"r1"
);
}
#endif
return
0
;
return
0
;
}
}
#endif
void
handle_unaligned
(
struct
pt_regs
*
regs
)
void
handle_unaligned
(
struct
pt_regs
*
regs
)
{
{
unsigned
long
unaligned_count
=
0
;
unsigned
long
unaligned_count
=
0
;
unsigned
long
last_time
=
0
;
unsigned
long
last_time
=
0
;
unsigned
long
newbase
=
regs
->
gr
[
R1
(
regs
->
iir
)]
;
unsigned
long
newbase
=
R1
(
regs
->
iir
)
?
regs
->
gr
[
R1
(
regs
->
iir
)]
:
0
;
int
modify
=
0
;
int
modify
=
0
;
int
ret
=
-
1
;
int
ret
=
-
1
;
struct
siginfo
si
;
struct
siginfo
si
;
register
int
flop
=
0
;
/* true if this is a flop */
/* if the unaligned access is inside the kernel:
/* if the unaligned access is inside the kernel:
* if the access is caused by a syscall, then we fault the calling
* if the access is caused by a syscall, then we fault the calling
...
@@ -383,9 +459,9 @@ void handle_unaligned(struct pt_regs *regs)
...
@@ -383,9 +459,9 @@ void handle_unaligned(struct pt_regs *regs)
case
OPCODE_LDDA_I
:
case
OPCODE_LDDA_I
:
shift
=
3
;
break
;
shift
=
3
;
break
;
}
}
newbase
+=
regs
->
gr
[
R2
(
regs
->
iir
)]
<<
shift
;
newbase
+=
(
R2
(
regs
->
iir
)
?
regs
->
gr
[
R2
(
regs
->
iir
)]
:
0
)
<<
shift
;
}
else
/* simple indexed */
}
else
/* simple indexed */
newbase
+=
regs
->
gr
[
R2
(
regs
->
iir
)]
;
newbase
+=
(
R2
(
regs
->
iir
)
?
regs
->
gr
[
R2
(
regs
->
iir
)]
:
0
)
;
}
}
break
;
break
;
case
0x13
:
case
0x13
:
...
@@ -438,7 +514,7 @@ void handle_unaligned(struct pt_regs *regs)
...
@@ -438,7 +514,7 @@ void handle_unaligned(struct pt_regs *regs)
case
OPCODE_LDWA_I
:
case
OPCODE_LDWA_I
:
case
OPCODE_LDW_S
:
case
OPCODE_LDW_S
:
case
OPCODE_LDWA_S
:
case
OPCODE_LDWA_S
:
ret
=
emulate_ldw
(
regs
,
R3
(
regs
->
iir
));
ret
=
emulate_ldw
(
regs
,
R3
(
regs
->
iir
)
,
0
);
break
;
break
;
case
OPCODE_STH
:
case
OPCODE_STH
:
...
@@ -447,23 +523,47 @@ void handle_unaligned(struct pt_regs *regs)
...
@@ -447,23 +523,47 @@ void handle_unaligned(struct pt_regs *regs)
case
OPCODE_STW
:
case
OPCODE_STW
:
case
OPCODE_STWA
:
case
OPCODE_STWA
:
ret
=
emulate_stw
(
regs
,
R2
(
regs
->
iir
));
ret
=
emulate_stw
(
regs
,
R2
(
regs
->
iir
)
,
0
);
break
;
break
;
#ifdef
__LP64__
#ifdef
CONFIG_PA20
case
OPCODE_LDD_I
:
case
OPCODE_LDD_I
:
case
OPCODE_LDDA_I
:
case
OPCODE_LDDA_I
:
case
OPCODE_LDD_S
:
case
OPCODE_LDD_S
:
case
OPCODE_LDDA_S
:
case
OPCODE_LDDA_S
:
ret
=
emulate_ldd
(
regs
,
R3
(
regs
->
iir
));
ret
=
emulate_ldd
(
regs
,
R3
(
regs
->
iir
)
,
0
);
break
;
break
;
case
OPCODE_STD
:
case
OPCODE_STD
:
case
OPCODE_STDA
:
case
OPCODE_STDA
:
ret
=
emulate_std
(
regs
,
R2
(
regs
->
iir
));
ret
=
emulate_std
(
regs
,
R2
(
regs
->
iir
)
,
0
);
break
;
break
;
#endif
#endif
case
OPCODE_FLDWX
:
case
OPCODE_FLDWS
:
flop
=
1
;
ret
=
emulate_ldw
(
regs
,
FR3
(
regs
->
iir
),
1
);
break
;
case
OPCODE_FLDDX
:
case
OPCODE_FLDDS
:
flop
=
1
;
ret
=
emulate_ldd
(
regs
,
R3
(
regs
->
iir
),
1
);
break
;
case
OPCODE_FSTWX
:
case
OPCODE_FSTWS
:
flop
=
1
;
ret
=
emulate_stw
(
regs
,
FR3
(
regs
->
iir
),
1
);
break
;
case
OPCODE_FSTDX
:
case
OPCODE_FSTDS
:
flop
=
1
;
ret
=
emulate_std
(
regs
,
R3
(
regs
->
iir
),
1
);
break
;
case
OPCODE_LDCD_I
:
case
OPCODE_LDCD_I
:
case
OPCODE_LDCW_I
:
case
OPCODE_LDCW_I
:
case
OPCODE_LDCD_S
:
case
OPCODE_LDCD_S
:
...
@@ -471,30 +571,44 @@ void handle_unaligned(struct pt_regs *regs)
...
@@ -471,30 +571,44 @@ void handle_unaligned(struct pt_regs *regs)
ret
=
-
1
;
/* "undefined", but lets kill them. */
ret
=
-
1
;
/* "undefined", but lets kill them. */
break
;
break
;
}
}
#ifdef
__LP64__
#ifdef
CONFIG_PA20
switch
(
regs
->
iir
&
OPCODE2_MASK
)
switch
(
regs
->
iir
&
OPCODE2_MASK
)
{
{
case
OPCODE_LDD_L
:
case
OPCODE_FLDD_L
:
case
OPCODE_FLDD_L
:
ret
=
emulate_ldd
(
regs
,
R2
(
regs
->
iir
));
flop
=
1
;
ret
=
emulate_ldd
(
regs
,
R2
(
regs
->
iir
),
1
);
break
;
case
OPCODE_FSTD_L
:
flop
=
1
;
ret
=
emulate_std
(
regs
,
R2
(
regs
->
iir
),
1
);
break
;
break
;
#ifdef CONFIG_PA20
case
OPCODE_LDD_L
:
ret
=
emulate_ldd
(
regs
,
R2
(
regs
->
iir
),
0
);
break
;
case
OPCODE_STD_L
:
case
OPCODE_STD_L
:
case
OPCODE_FSTD_L
:
ret
=
emulate_std
(
regs
,
R2
(
regs
->
iir
),
0
);
ret
=
emulate_std
(
regs
,
R2
(
regs
->
iir
));
break
;
break
;
#endif
}
}
#endif
#endif
switch
(
regs
->
iir
&
OPCODE3_MASK
)
switch
(
regs
->
iir
&
OPCODE3_MASK
)
{
{
case
OPCODE_LDW_M
:
case
OPCODE_FLDW_L
:
case
OPCODE_FLDW_L
:
ret
=
emulate_ldw
(
regs
,
R2
(
regs
->
iir
));
flop
=
1
;
ret
=
emulate_ldw
(
regs
,
R2
(
regs
->
iir
),
0
);
break
;
case
OPCODE_LDW_M
:
ret
=
emulate_ldw
(
regs
,
R2
(
regs
->
iir
),
1
);
break
;
break
;
case
OPCODE_FSTW_L
:
case
OPCODE_FSTW_L
:
flop
=
1
;
ret
=
emulate_stw
(
regs
,
R2
(
regs
->
iir
),
1
);
break
;
case
OPCODE_STW_M
:
case
OPCODE_STW_M
:
ret
=
emulate_stw
(
regs
,
R2
(
regs
->
iir
));
ret
=
emulate_stw
(
regs
,
R2
(
regs
->
iir
)
,
0
);
break
;
break
;
}
}
switch
(
regs
->
iir
&
OPCODE4_MASK
)
switch
(
regs
->
iir
&
OPCODE4_MASK
)
...
@@ -504,19 +618,18 @@ void handle_unaligned(struct pt_regs *regs)
...
@@ -504,19 +618,18 @@ void handle_unaligned(struct pt_regs *regs)
break
;
break
;
case
OPCODE_LDW_L
:
case
OPCODE_LDW_L
:
case
OPCODE_LDWM
:
case
OPCODE_LDWM
:
ret
=
emulate_ldw
(
regs
,
R2
(
regs
->
iir
));
ret
=
emulate_ldw
(
regs
,
R2
(
regs
->
iir
)
,
0
);
break
;
break
;
case
OPCODE_STH_L
:
case
OPCODE_STH_L
:
ret
=
emulate_sth
(
regs
,
R2
(
regs
->
iir
));
ret
=
emulate_sth
(
regs
,
R2
(
regs
->
iir
));
break
;
break
;
case
OPCODE_STW_L
:
case
OPCODE_STW_L
:
case
OPCODE_STWM
:
case
OPCODE_STWM
:
ret
=
emulate_stw
(
regs
,
R2
(
regs
->
iir
));
ret
=
emulate_stw
(
regs
,
R2
(
regs
->
iir
)
,
0
);
break
;
break
;
}
}
/* XXX LJ - need to handle float load/store */
if
(
modify
)
if
(
modify
&&
R1
(
regs
->
iir
)
)
regs
->
gr
[
R1
(
regs
->
iir
)]
=
newbase
;
regs
->
gr
[
R1
(
regs
->
iir
)]
=
newbase
;
...
@@ -540,9 +653,8 @@ void handle_unaligned(struct pt_regs *regs)
...
@@ -540,9 +653,8 @@ void handle_unaligned(struct pt_regs *regs)
return
;
return
;
}
}
/* else we handled it, advance the PC.... */
/* else we handled it, let life go on. */
regs
->
iaoq
[
0
]
=
regs
->
iaoq
[
1
];
regs
->
gr
[
0
]
|=
PSW_N
;
regs
->
iaoq
[
1
]
=
regs
->
iaoq
[
0
]
+
4
;
}
}
/*
/*
...
...
drivers/eisa/Kconfig
View file @
2850310b
...
@@ -14,7 +14,7 @@ config EISA_VLB_PRIMING
...
@@ -14,7 +14,7 @@ config EISA_VLB_PRIMING
config EISA_PCI_EISA
config EISA_PCI_EISA
bool "Generic PCI/EISA bridge"
bool "Generic PCI/EISA bridge"
depends on PCI && EISA
depends on
!PARISC &&
PCI && EISA
default y
default y
---help---
---help---
Activate this option if your system contains a PCI to EISA
Activate this option if your system contains a PCI to EISA
...
...
drivers/input/misc/gsc_ps2.c
View file @
2850310b
...
@@ -56,12 +56,13 @@
...
@@ -56,12 +56,13 @@
#include <linux/sched.h>
/* for request_irq/free_irq */
#include <linux/sched.h>
/* for request_irq/free_irq */
#include <linux/spinlock.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/pc_keyb.h>
#include <linux/ioport.h>
#include <linux/ioport.h>
#include <linux/kd.h>
#include <linux/kd.h>
#include <linux/pci_ids.h>
#include <asm/irq.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/io.h>
#include <asm/parisc-device.h>
/* Debugging stuff */
/* Debugging stuff */
#undef KBD_DEBUG
#undef KBD_DEBUG
...
@@ -79,6 +80,7 @@
...
@@ -79,6 +80,7 @@
/* PS/2 keyboard and mouse constants */
/* PS/2 keyboard and mouse constants */
#define AUX_RECONNECT 0xAA
/* PS/2 Mouse end of test successful */
#define AUX_RECONNECT 0xAA
/* PS/2 Mouse end of test successful */
#define AUX_REPLY_ACK 0xFA
#define AUX_REPLY_ACK 0xFA
#define AUX_ENABLE_DEV 0xF4
/* Enables aux device */
/* Order of the mouse bytes coming to the host */
/* Order of the mouse bytes coming to the host */
#define PACKET_X 1
#define PACKET_X 1
...
@@ -131,6 +133,12 @@
...
@@ -131,6 +133,12 @@
#define MOUSE_XOVFLOW 0x40
#define MOUSE_XOVFLOW 0x40
#define MOUSE_YOVFLOW 0x80
#define MOUSE_YOVFLOW 0x80
/* Remnant of pc_keyb.h */
#define KBD_CMD_SET_LEDS 0xED
/* Sets keyboard leds */
#define KBD_CMD_SET_RATE 0xF3
/* Sets typematic rate */
#define KBD_CMD_ENABLE 0xF4
/* Enables scanning */
#define KBD_CMD_DISABLE 0xF5
#define KBD_CMD_RESET 0xFF
static
unsigned
char
hpkeyb_keycode
[
KBD_TBLSIZE
]
=
static
unsigned
char
hpkeyb_keycode
[
KBD_TBLSIZE
]
=
{
{
...
@@ -341,7 +349,7 @@ static void gscps2_kbd_docode(struct pt_regs *regs)
...
@@ -341,7 +349,7 @@ static void gscps2_kbd_docode(struct pt_regs *regs)
default:
default:
hpkeyb
.
scancode
=
scancode
;
hpkeyb
.
scancode
=
scancode
;
DPRINTK
(
"sent=%d, rel=%d
\n
"
,
hpkeyb
.
scancode
,
hpkeyb
.
released
);
DPRINTK
(
"sent=%d, rel=%d
\n
"
,
hpkeyb
.
scancode
,
hpkeyb
.
released
);
input_regs
(
regs
);
/*input_regs(regs);*/
input_report_key
(
&
hpkeyb
.
dev
,
hpkeyb_keycode
[
hpkeyb
.
scancode
],
!
hpkeyb
.
released
);
input_report_key
(
&
hpkeyb
.
dev
,
hpkeyb_keycode
[
hpkeyb
.
scancode
],
!
hpkeyb
.
released
);
input_sync
(
&
hpkeyb
.
dev
);
input_sync
(
&
hpkeyb
.
dev
);
if
(
hpkeyb
.
escaped
)
if
(
hpkeyb
.
escaped
)
...
@@ -388,7 +396,7 @@ static void gscps2_mouse_docode(struct pt_regs *regs)
...
@@ -388,7 +396,7 @@ static void gscps2_mouse_docode(struct pt_regs *regs)
if
((
hpmouse
.
bytes
[
PACKET_CTRL
]
&
(
MOUSE_XOVFLOW
|
MOUSE_YOVFLOW
)))
if
((
hpmouse
.
bytes
[
PACKET_CTRL
]
&
(
MOUSE_XOVFLOW
|
MOUSE_YOVFLOW
)))
DPRINTK
(
"Mouse: position overflow
\n
"
);
DPRINTK
(
"Mouse: position overflow
\n
"
);
input_regs
(
regs
);
/*input_regs(regs);*/
input_report_key
(
&
hpmouse
.
dev
,
BTN_LEFT
,
hpmouse
.
bytes
[
PACKET_CTRL
]
&
MOUSE_LEFTBTN
);
input_report_key
(
&
hpmouse
.
dev
,
BTN_LEFT
,
hpmouse
.
bytes
[
PACKET_CTRL
]
&
MOUSE_LEFTBTN
);
input_report_key
(
&
hpmouse
.
dev
,
BTN_MIDDLE
,
hpmouse
.
bytes
[
PACKET_CTRL
]
&
MOUSE_MIDBTN
);
input_report_key
(
&
hpmouse
.
dev
,
BTN_MIDDLE
,
hpmouse
.
bytes
[
PACKET_CTRL
]
&
MOUSE_MIDBTN
);
...
@@ -420,7 +428,7 @@ static void gscps2_mouse_docode(struct pt_regs *regs)
...
@@ -420,7 +428,7 @@ static void gscps2_mouse_docode(struct pt_regs *regs)
* key value to the system.
* key value to the system.
*/
*/
static
void
gscps2_interrupt
(
int
irq
,
void
*
dev
,
struct
pt_regs
*
reg
)
static
irqreturn_t
gscps2_interrupt
(
int
irq
,
void
*
dev
,
struct
pt_regs
*
reg
)
{
{
/* process mouse actions */
/* process mouse actions */
while
(
gscps2_readb_status
(
hpmouse
.
addr
)
&
GSC_STAT_RBNE
)
while
(
gscps2_readb_status
(
hpmouse
.
addr
)
&
GSC_STAT_RBNE
)
...
@@ -429,6 +437,8 @@ static void gscps2_interrupt(int irq, void *dev, struct pt_regs *reg)
...
@@ -429,6 +437,8 @@ static void gscps2_interrupt(int irq, void *dev, struct pt_regs *reg)
/* process keyboard scancode */
/* process keyboard scancode */
while
(
gscps2_readb_status
(
hpkeyb
.
addr
)
&
GSC_STAT_RBNE
)
while
(
gscps2_readb_status
(
hpkeyb
.
addr
)
&
GSC_STAT_RBNE
)
gscps2_kbd_docode
(
reg
);
gscps2_kbd_docode
(
reg
);
return
IRQ_HANDLED
;
}
}
...
@@ -525,7 +535,7 @@ static int __init gscps2_kbd_probe(void)
...
@@ -525,7 +535,7 @@ static int __init gscps2_kbd_probe(void)
/* TODO These need some adjustement, are they really useful ? */
/* TODO These need some adjustement, are they really useful ? */
hpkeyb
.
dev
.
id
.
bustype
=
BUS_GSC
;
hpkeyb
.
dev
.
id
.
bustype
=
BUS_GSC
;
hpkeyb
.
dev
.
id
.
vendor
=
0x0001
;
hpkeyb
.
dev
.
id
.
vendor
=
PCI_VENDOR_ID_HP
;
hpkeyb
.
dev
.
id
.
product
=
0x0001
;
hpkeyb
.
dev
.
id
.
product
=
0x0001
;
hpkeyb
.
dev
.
id
.
version
=
0x0010
;
hpkeyb
.
dev
.
id
.
version
=
0x0010
;
hpkeyb
.
initialized
=
1
;
hpkeyb
.
initialized
=
1
;
...
@@ -580,7 +590,7 @@ static int __init gscps2_probe(struct parisc_device *dev)
...
@@ -580,7 +590,7 @@ static int __init gscps2_probe(struct parisc_device *dev)
{
{
u8
id
;
u8
id
;
char
*
addr
,
*
name
;
char
*
addr
,
*
name
;
int
ret
,
device_found
=
0
;
int
ret
=
0
,
device_found
=
0
;
unsigned
long
hpa
=
dev
->
hpa
;
unsigned
long
hpa
=
dev
->
hpa
;
if
(
!
dev
->
irq
)
if
(
!
dev
->
irq
)
...
...
drivers/parisc/Kconfig
View file @
2850310b
...
@@ -57,8 +57,11 @@ config EISA
...
@@ -57,8 +57,11 @@ config EISA
source "drivers/eisa/Kconfig"
source "drivers/eisa/Kconfig"
config ISA
config ISA
bool
bool
"ISA support"
depends on EISA
depends on EISA
help
If you want to plug an ISA card into your EISA bus, say Y here.
Most people should say N.
config PCI
config PCI
bool "PCI support"
bool "PCI support"
...
...
fs/binfmt_elf.c
View file @
2850310b
...
@@ -114,7 +114,7 @@ static void padzero(unsigned long elf_bss)
...
@@ -114,7 +114,7 @@ static void padzero(unsigned long elf_bss)
#define STACK_ADD(sp, items) ((elf_addr_t *)(sp) + (items))
#define STACK_ADD(sp, items) ((elf_addr_t *)(sp) + (items))
#define STACK_ROUND(sp, items) \
#define STACK_ROUND(sp, items) \
((15 + (unsigned long) ((sp) + (items))) &~ 15UL)
((15 + (unsigned long) ((sp) + (items))) &~ 15UL)
#define STACK_ALLOC(sp, len) ({ elf_addr_t *old_sp = sp; sp += len; old_sp; })
#define STACK_ALLOC(sp, len) ({ elf_addr_t *old_sp =
(elf_addr_t *)
sp; sp += len; old_sp; })
#else
#else
#define STACK_ADD(sp, items) ((elf_addr_t *)(sp) - (items))
#define STACK_ADD(sp, items) ((elf_addr_t *)(sp) - (items))
#define STACK_ROUND(sp, items) \
#define STACK_ROUND(sp, items) \
...
...
include/asm-parisc/byteorder.h
View file @
2850310b
...
@@ -30,9 +30,9 @@ static __inline__ __const__ __u32 ___arch__swab32(__u32 x)
...
@@ -30,9 +30,9 @@ static __inline__ __const__ __u32 ___arch__swab32(__u32 x)
*/
*/
static
__inline__
__const__
__u64
___arch__swab64
(
__u64
x
)
{
static
__inline__
__const__
__u64
___arch__swab64
(
__u64
x
)
{
__u64
temp
;
__u64
temp
;
__asm__
(
"permh
3210,
%0, %0
\n\t
"
__asm__
(
"permh
,3210
%0, %0
\n\t
"
"hshl %0, 8, %1
\n\t
"
"hshl %0, 8, %1
\n\t
"
"hshr
u,
%0, 8, %0
\n\t
"
"hshr
,u
%0, 8, %0
\n\t
"
"or %1, %0, %0"
"or %1, %0, %0"
:
"=r"
(
x
),
"=&r"
(
temp
)
:
"=r"
(
x
),
"=&r"
(
temp
)
:
"0"
(
x
));
:
"0"
(
x
));
...
...
include/asm-parisc/parisc-device.h
View file @
2850310b
...
@@ -33,6 +33,7 @@ struct parisc_driver {
...
@@ -33,6 +33,7 @@ struct parisc_driver {
char
*
name
;
char
*
name
;
const
struct
parisc_device_id
*
id_table
;
const
struct
parisc_device_id
*
id_table
;
int
(
*
probe
)
(
struct
parisc_device
*
dev
);
/* New device discovered */
int
(
*
probe
)
(
struct
parisc_device
*
dev
);
/* New device discovered */
int
(
*
remove
)
(
struct
parisc_device
*
dev
);
struct
device_driver
drv
;
struct
device_driver
drv
;
};
};
...
...
include/asm-parisc/pgtable.h
View file @
2850310b
...
@@ -368,11 +368,11 @@ extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t);
...
@@ -368,11 +368,11 @@ extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t);
/* Encode and de-code a swap entry */
/* Encode and de-code a swap entry */
#define __swp_type(x) ((x).val & 0x1f)
#define __swp_type(x) ((x).val & 0x1f)
#define __swp_offset(x) ( (((x).val >>
5) & 0xf
) | \
#define __swp_offset(x) ( (((x).val >>
6) & 0x7
) | \
(((x).val >>
7) & ~0xf
) )
(((x).val >>
8) & ~0x7
) )
#define __swp_entry(type, offset) ((swp_entry_t) { (type) | \
#define __swp_entry(type, offset) ((swp_entry_t) { (type) | \
((offset & 0x
f) << 5
) | \
((offset & 0x
7) << 6
) | \
((offset & ~0x
f) << 7
) })
((offset & ~0x
7) << 8
) })
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
...
...
include/asm-parisc/processor.h
View file @
2850310b
...
@@ -142,6 +142,7 @@ struct thread_struct {
...
@@ -142,6 +142,7 @@ struct thread_struct {
*/
*/
unsigned
long
thread_saved_pc
(
struct
task_struct
*
t
);
unsigned
long
thread_saved_pc
(
struct
task_struct
*
t
);
void
show_trace
(
struct
task_struct
*
task
,
unsigned
long
*
stack
);
/*
/*
* Start user thread in another space.
* Start user thread in another space.
...
...
include/linux/sysctl.h
View file @
2850310b
...
@@ -130,6 +130,8 @@ enum
...
@@ -130,6 +130,8 @@ enum
KERN_PIDMAX
=
55
,
/* int: PID # limit */
KERN_PIDMAX
=
55
,
/* int: PID # limit */
KERN_CORE_PATTERN
=
56
,
/* string: pattern for core-file names */
KERN_CORE_PATTERN
=
56
,
/* string: pattern for core-file names */
KERN_PANIC_ON_OOPS
=
57
,
/* int: whether we will panic on an oops */
KERN_PANIC_ON_OOPS
=
57
,
/* int: whether we will panic on an oops */
KERN_HPPA_PWRSW
=
58
,
/* int: hppa soft-power enable */
KERN_HPPA_UNALIGNED
=
59
,
/* int: hppa unaligned-trap enable */
};
};
...
...
kernel/sysctl.c
View file @
2850310b
...
@@ -87,6 +87,11 @@ extern char reboot_command [];
...
@@ -87,6 +87,11 @@ extern char reboot_command [];
extern
int
stop_a_enabled
;
extern
int
stop_a_enabled
;
#endif
#endif
#ifdef __hppa__
extern
int
pwrsw_enabled
;
extern
int
unaligned_enabled
;
#endif
#ifdef CONFIG_ARCH_S390
#ifdef CONFIG_ARCH_S390
#ifdef CONFIG_MATHEMU
#ifdef CONFIG_MATHEMU
extern
int
sysctl_ieee_emulation_warnings
;
extern
int
sysctl_ieee_emulation_warnings
;
...
@@ -313,6 +318,30 @@ static ctl_table kern_table[] = {
...
@@ -313,6 +318,30 @@ static ctl_table kern_table[] = {
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
},
#endif
#endif
#ifdef __hppa__
{
.
ctl_name
=
KERN_HPPA_PWRSW
,
.
procname
=
"soft-power"
,
.
data
=
&
pwrsw_enabled
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
KERN_HPPA_UNALIGNED
,
.
procname
=
"unaligned-trap"
,
.
data
=
&
unaligned_enabled
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
#endif
#ifdef __hppa__
{
KERN_HPPA_PWRSW
,
"soft-power"
,
&
pwrsw_enabled
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
{
KERN_HPPA_UNALIGNED
,
"unaligned-trap"
,
&
unaligned_enabled
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
#endif
#if defined(CONFIG_PPC32) && defined(CONFIG_6xx)
#if defined(CONFIG_PPC32) && defined(CONFIG_6xx)
{
{
.
ctl_name
=
KERN_PPC_POWERSAVE_NAP
,
.
ctl_name
=
KERN_PPC_POWERSAVE_NAP
,
...
...
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