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
ed343ca9
Commit
ed343ca9
authored
Feb 17, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
2b424f63
66e42619
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
667 additions
and
279 deletions
+667
-279
arch/arm/kernel/debug.S
arch/arm/kernel/debug.S
+1
-1
arch/arm/mach-ixp2000/enp2611.c
arch/arm/mach-ixp2000/enp2611.c
+18
-8
arch/m32r/defconfig
arch/m32r/defconfig
+36
-8
arch/m32r/kernel/process.c
arch/m32r/kernel/process.c
+10
-8
arch/m32r/kernel/smp.c
arch/m32r/kernel/smp.c
+1
-1
arch/m32r/m32700ut/defconfig.m32700ut.smp
arch/m32r/m32700ut/defconfig.m32700ut.smp
+36
-8
arch/m32r/m32700ut/defconfig.m32700ut.up
arch/m32r/m32700ut/defconfig.m32700ut.up
+36
-8
arch/m32r/mappi/defconfig.nommu
arch/m32r/mappi/defconfig.nommu
+35
-10
arch/m32r/mappi/defconfig.smp
arch/m32r/mappi/defconfig.smp
+37
-7
arch/m32r/mappi/defconfig.up
arch/m32r/mappi/defconfig.up
+37
-7
arch/m32r/mappi2/defconfig.vdec2
arch/m32r/mappi2/defconfig.vdec2
+35
-8
arch/m32r/oaks32r/defconfig.nommu
arch/m32r/oaks32r/defconfig.nommu
+35
-9
arch/m32r/opsput/defconfig.opsput
arch/m32r/opsput/defconfig.opsput
+42
-12
drivers/acpi/dispatcher/dswexec.c
drivers/acpi/dispatcher/dswexec.c
+7
-0
drivers/acpi/executer/exoparg6.c
drivers/acpi/executer/exoparg6.c
+92
-43
drivers/acpi/executer/exresop.c
drivers/acpi/executer/exresop.c
+1
-1
drivers/acpi/executer/exstoren.c
drivers/acpi/executer/exstoren.c
+14
-6
drivers/acpi/executer/exstorob.c
drivers/acpi/executer/exstorob.c
+10
-2
drivers/acpi/namespace/nsxfname.c
drivers/acpi/namespace/nsxfname.c
+27
-24
drivers/acpi/parser/psopcode.c
drivers/acpi/parser/psopcode.c
+1
-1
drivers/acpi/tables/tbconvrt.c
drivers/acpi/tables/tbconvrt.c
+2
-2
drivers/block/ub.c
drivers/block/ub.c
+112
-69
drivers/video/sis/sis_main.c
drivers/video/sis/sis_main.c
+1
-0
include/acpi/acconfig.h
include/acpi/acconfig.h
+1
-1
include/acpi/acinterp.h
include/acpi/acinterp.h
+3
-2
include/acpi/platform/aclinux.h
include/acpi/platform/aclinux.h
+2
-0
include/asm-m32r/spinlock.h
include/asm-m32r/spinlock.h
+35
-33
No files found.
arch/arm/kernel/debug.S
View file @
ed343ca9
/*
*
linux
/
arch
/
arm
/
kernel
/
debug
-
armv
.
S
*
linux
/
arch
/
arm
/
kernel
/
debug
.
S
*
*
Copyright
(
C
)
1994
-
1999
Russell
King
*
...
...
arch/arm/mach-ixp2000/enp2611.c
View file @
ed343ca9
...
...
@@ -124,20 +124,28 @@ static int __init enp2611_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
{
int
irq
;
if
(
dev
->
bus
->
number
==
0x00
&&
PCI_SLOT
(
dev
->
devfn
)
==
0x01
)
{
if
(
dev
->
bus
->
number
==
0
&&
PCI_SLOT
(
dev
->
devfn
)
==
0
)
{
/* IXP2400. */
irq
=
IRQ_IXP2000_PCIA
;
}
else
if
(
dev
->
bus
->
number
==
0
&&
PCI_SLOT
(
dev
->
devfn
)
==
1
)
{
/* 21555 non-transparent bridge. */
irq
=
IRQ_IXP2000_PCIB
;
}
else
if
(
dev
->
bus
->
number
==
0x01
&&
PCI_SLOT
(
dev
->
devfn
)
==
0x00
)
{
}
else
if
(
dev
->
bus
->
number
==
0
&&
PCI_SLOT
(
dev
->
devfn
)
==
4
)
{
/* PCI2050B transparent bridge. */
irq
=
-
1
;
}
else
if
(
dev
->
bus
->
number
==
1
&&
PCI_SLOT
(
dev
->
devfn
)
==
0
)
{
/* 82559 ethernet. */
irq
=
IRQ_IXP2000_PCIA
;
}
else
if
(
dev
->
bus
->
number
==
1
&&
PCI_SLOT
(
dev
->
devfn
)
==
1
)
{
/* SPI-3 option board. */
irq
=
IRQ_IXP2000_PCIB
;
}
else
{
printk
(
KERN_INFO
"enp2611_pci_map_irq for unknown device
\n
"
);
irq
=
IRQ_IXP2000_PCI
;
printk
(
KERN_ERR
"enp2611_pci_map_irq() called for unknown "
"device PCI:%d:%d:%d
\n
"
,
dev
->
bus
->
number
,
PCI_SLOT
(
dev
->
devfn
),
PCI_FUNC
(
dev
->
devfn
));
irq
=
-
1
;
}
printk
(
KERN_INFO
"Assigned IRQ %d to PCI:%d:%d:%d
\n
"
,
irq
,
dev
->
bus
->
number
,
PCI_SLOT
(
dev
->
devfn
),
PCI_FUNC
(
dev
->
devfn
));
return
irq
;
}
...
...
@@ -151,7 +159,9 @@ struct hw_pci enp2611_pci __initdata = {
int
__init
enp2611_pci_init
(
void
)
{
pci_common_init
(
&
enp2611_pci
);
if
(
machine_is_enp2611
())
pci_common_init
(
&
enp2611_pci
);
return
0
;
}
...
...
arch/m32r/defconfig
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:08:49 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:10:44 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -81,6 +83,7 @@ CONFIG_NOHIGHMEM=y
# CONFIG_DISCONTIGMEM is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
# CONFIG_SMP is not set
...
...
@@ -96,7 +99,6 @@ CONFIG_PREEMPT=y
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -146,10 +148,12 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -162,6 +166,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -219,12 +224,12 @@ CONFIG_SCSI_MULTI_LUN=y
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
#
# SCSI low-level drivers
#
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_QLOGIC_1280_1040 is not set
# CONFIG_SCSI_DEBUG is not set
#
...
...
@@ -396,6 +401,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -450,7 +456,6 @@ CONFIG_DS1302=y
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -524,6 +529,7 @@ CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
#
# Sound
...
...
@@ -536,11 +542,25 @@ CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -558,6 +578,10 @@ CONFIG_REISERFS_FS=m
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
...
...
@@ -628,7 +652,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -697,7 +720,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -711,6 +735,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/kernel/process.c
View file @
ed343ca9
/*
* linux/arch/m32r/kernel/process.c
* orig : sh
*
* Copyright (c) 2001, 2002 Hiroyuki Kondo, Hirokazu Takata,
* Hitoshi Yamamoto
...
...
@@ -290,13 +289,16 @@ asmlinkage int sys_fork(unsigned long r0, unsigned long r1, unsigned long r2,
}
asmlinkage
int
sys_clone
(
unsigned
long
clone_flags
,
unsigned
long
newsp
,
unsigned
long
r2
,
unsigned
long
r3
,
unsigned
long
r4
,
unsigned
long
r5
,
unsigned
long
r6
,
struct
pt_regs
regs
)
unsigned
long
parent_tidptr
,
unsigned
long
child_tidptr
,
unsigned
long
r4
,
unsigned
long
r5
,
unsigned
long
r6
,
struct
pt_regs
regs
)
{
if
(
!
newsp
)
newsp
=
regs
.
spu
;
return
do_fork
(
clone_flags
,
newsp
,
&
regs
,
0
,
NULL
,
NULL
);
return
do_fork
(
clone_flags
,
newsp
,
&
regs
,
0
,
(
int
__user
*
)
parent_tidptr
,
(
int
__user
*
)
child_tidptr
);
}
/*
...
...
@@ -320,9 +322,10 @@ asmlinkage int sys_vfork(unsigned long r0, unsigned long r1, unsigned long r2,
/*
* sys_execve() executes a new program.
*/
asmlinkage
int
sys_execve
(
char
__user
*
ufilename
,
char
__user
*
__user
*
uargv
,
char
__user
*
__user
*
uenvp
,
unsigned
long
r3
,
unsigned
long
r4
,
unsigned
long
r5
,
unsigned
long
r6
,
struct
pt_regs
regs
)
asmlinkage
int
sys_execve
(
char
__user
*
ufilename
,
char
__user
*
__user
*
uargv
,
char
__user
*
__user
*
uenvp
,
unsigned
long
r3
,
unsigned
long
r4
,
unsigned
long
r5
,
unsigned
long
r6
,
struct
pt_regs
regs
)
{
int
error
;
char
*
filename
;
...
...
@@ -354,4 +357,3 @@ unsigned long get_wchan(struct task_struct *p)
/* M32R_FIXME */
return
(
0
);
}
arch/m32r/kernel/smp.c
View file @
ed343ca9
...
...
@@ -953,7 +953,7 @@ unsigned long send_IPI_mask_phys(cpumask_t physid_mask, int ipi_num,
"ldi r4, #1
\n\t
"
"st r4, @%2
\n\t
"
:
"=&r"
(
ipicr_val
)
:
"r"
(
flags
),
"r"
(
&
ipilock
->
lock
),
"r"
(
ipicr_addr
),
:
"r"
(
flags
),
"r"
(
&
ipilock
->
s
lock
),
"r"
(
ipicr_addr
),
"r"
(
mask
),
"r"
(
try
),
"r"
(
my_physid_mask
)
:
"memory"
,
"r4"
#ifdef CONFIG_CHIP_M32700_TS1
...
...
arch/m32r/m32700ut/defconfig.m32700ut.smp
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:08:45 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:10:50 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -81,6 +83,7 @@ CONFIG_NOHIGHMEM=y
# CONFIG_DISCONTIGMEM is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
CONFIG_SMP=y
...
...
@@ -99,7 +102,6 @@ CONFIG_NR_CPUS=2
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -149,10 +151,12 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -165,6 +169,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -222,12 +227,12 @@ CONFIG_SCSI_MULTI_LUN=y
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
#
# SCSI low-level drivers
#
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_QLOGIC_1280_1040 is not set
# CONFIG_SCSI_DEBUG is not set
#
...
...
@@ -399,6 +404,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -453,7 +459,6 @@ CONFIG_DS1302=y
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -527,6 +532,7 @@ CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
#
# Sound
...
...
@@ -539,11 +545,25 @@ CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -561,6 +581,10 @@ CONFIG_REISERFS_FS=m
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
...
...
@@ -631,7 +655,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -700,7 +723,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -714,6 +738,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/m32700ut/defconfig.m32700ut.up
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:08:49 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:10:54 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -81,6 +83,7 @@ CONFIG_NOHIGHMEM=y
# CONFIG_DISCONTIGMEM is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
# CONFIG_SMP is not set
...
...
@@ -96,7 +99,6 @@ CONFIG_PREEMPT=y
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -146,10 +148,12 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -162,6 +166,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -219,12 +224,12 @@ CONFIG_SCSI_MULTI_LUN=y
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
#
# SCSI low-level drivers
#
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_QLOGIC_1280_1040 is not set
# CONFIG_SCSI_DEBUG is not set
#
...
...
@@ -396,6 +401,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -450,7 +456,6 @@ CONFIG_DS1302=y
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -524,6 +529,7 @@ CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
#
# Sound
...
...
@@ -536,11 +542,25 @@ CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -558,6 +578,10 @@ CONFIG_REISERFS_FS=m
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
...
...
@@ -628,7 +652,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -697,7 +720,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -711,6 +735,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/mappi/defconfig.nommu
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:08:51 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:10:57 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -34,12 +36,11 @@ CONFIG_EMBEDDED=y
# CONFIG_FUTEX is not set
# CONFIG_EPOLL is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SHMEM=y
CONFIG_CC_ALIGN_FUNCTIONS=0
CONFIG_CC_ALIGN_LABELS=0
CONFIG_CC_ALIGN_LOOPS=0
CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_TINY_SHMEM is not set
CONFIG_TINY_SHMEM=y
#
# Loadable module support
...
...
@@ -79,6 +80,7 @@ CONFIG_NOHIGHMEM=y
# CONFIG_DISCONTIGMEM is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
# CONFIG_SMP is not set
...
...
@@ -94,7 +96,6 @@ CONFIG_PREEMPT=y
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -144,10 +145,12 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -160,6 +163,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -329,6 +333,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -380,7 +385,6 @@ CONFIG_LEGACY_PTY_COUNT=256
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -429,11 +433,25 @@ CONFIG_LEGACY_PTY_COUNT=256
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -443,6 +461,10 @@ CONFIG_EXT2_FS=y
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
...
...
@@ -468,7 +490,6 @@ CONFIG_DNOTIFY=y
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
...
...
@@ -507,7 +528,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -576,7 +596,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -590,6 +611,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/mappi/defconfig.smp
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:08:53 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:11:02 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -84,6 +86,7 @@ CONFIG_IRAM_START=0x00f00000
CONFIG_IRAM_SIZE=0x00080000
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
CONFIG_SMP=y
...
...
@@ -102,7 +105,6 @@ CONFIG_NR_CPUS=2
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -140,6 +142,7 @@ CONFIG_MTD=y
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_CONCAT is not set
CONFIG_MTD_REDBOOT_PARTS=y
CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1
# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set
# CONFIG_MTD_REDBOOT_PARTS_READONLY is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
...
...
@@ -185,6 +188,7 @@ CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLKMTD is not set
# CONFIG_MTD_BLOCK2MTD is not set
#
# Disk-On-Chip Device Drivers
...
...
@@ -211,10 +215,12 @@ CONFIG_MTD_CFI_I2=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -227,6 +233,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -421,6 +428,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -472,7 +480,6 @@ CONFIG_LEGACY_PTY_COUNT=256
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -521,11 +528,25 @@ CONFIG_LEGACY_PTY_COUNT=256
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -535,6 +556,10 @@ CONFIG_EXT2_FS=y
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
CONFIG_ROMFS_FS=y
...
...
@@ -593,6 +618,7 @@ CONFIG_JFFS_PROC_FS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
# CONFIG_JFFS2_FS_NAND is not set
# CONFIG_JFFS2_FS_NOR_ECC is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
...
...
@@ -615,7 +641,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -684,7 +709,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -698,6 +724,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/mappi/defconfig.up
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:08:55 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:11:07 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -83,6 +85,7 @@ CONFIG_IRAM_START=0x00f00000
CONFIG_IRAM_SIZE=0x00080000
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
# CONFIG_SMP is not set
...
...
@@ -98,7 +101,6 @@ CONFIG_PREEMPT=y
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -136,6 +138,7 @@ CONFIG_MTD=y
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_CONCAT is not set
CONFIG_MTD_REDBOOT_PARTS=y
CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1
# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set
# CONFIG_MTD_REDBOOT_PARTS_READONLY is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
...
...
@@ -181,6 +184,7 @@ CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLKMTD is not set
# CONFIG_MTD_BLOCK2MTD is not set
#
# Disk-On-Chip Device Drivers
...
...
@@ -207,10 +211,12 @@ CONFIG_MTD_CFI_I2=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -223,6 +229,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -417,6 +424,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -468,7 +476,6 @@ CONFIG_LEGACY_PTY_COUNT=256
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -517,11 +524,25 @@ CONFIG_LEGACY_PTY_COUNT=256
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -531,6 +552,10 @@ CONFIG_EXT2_FS=y
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
CONFIG_ROMFS_FS=y
...
...
@@ -589,6 +614,7 @@ CONFIG_JFFS_PROC_FS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
# CONFIG_JFFS2_FS_NAND is not set
# CONFIG_JFFS2_FS_NOR_ECC is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
...
...
@@ -611,7 +637,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -680,7 +705,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -694,6 +720,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/mappi2/defconfig.vdec2
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:08:58 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:11:10 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -79,6 +81,7 @@ CONFIG_NOHIGHMEM=y
# CONFIG_DISCONTIGMEM is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
# CONFIG_SMP is not set
...
...
@@ -94,7 +97,6 @@ CONFIG_PREEMPT=y
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -142,10 +144,12 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -158,6 +162,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -215,12 +220,12 @@ CONFIG_SCSI_MULTI_LUN=y
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
#
# SCSI low-level drivers
#
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_QLOGIC_1280_1040 is not set
# CONFIG_SCSI_DEBUG is not set
#
...
...
@@ -392,6 +397,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -445,7 +451,6 @@ CONFIG_LEGACY_PTY_COUNT=256
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -515,11 +520,25 @@ CONFIG_DUMMY_CONSOLE=y
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -537,6 +556,10 @@ CONFIG_REISERFS_FS=m
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
...
...
@@ -607,7 +630,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -676,7 +698,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -690,6 +713,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/oaks32r/defconfig.nommu
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:09:00 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:11:13 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -33,12 +35,11 @@ CONFIG_EMBEDDED=y
# CONFIG_FUTEX is not set
# CONFIG_EPOLL is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SHMEM=y
CONFIG_CC_ALIGN_FUNCTIONS=0
CONFIG_CC_ALIGN_LABELS=0
CONFIG_CC_ALIGN_LOOPS=0
CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_TINY_SHMEM is not set
CONFIG_TINY_SHMEM=y
#
# Loadable module support
...
...
@@ -74,6 +75,7 @@ CONFIG_NOHIGHMEM=y
# CONFIG_DISCONTIGMEM is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PREEMPT=y
# CONFIG_HAVE_DEC_LOCK is not set
# CONFIG_SMP is not set
...
...
@@ -134,10 +136,12 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -150,6 +154,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -314,6 +319,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -365,7 +371,6 @@ CONFIG_LEGACY_PTY_COUNT=256
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_RAW_DRIVER is not set
...
...
@@ -409,11 +414,25 @@ CONFIG_LEGACY_PTY_COUNT=256
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -423,6 +442,10 @@ CONFIG_EXT2_FS=y
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
...
...
@@ -448,7 +471,6 @@ CONFIG_DNOTIFY=y
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
# CONFIG_DEVFS_FS is not set
CONFIG_DEVPTS_FS_XATTR=y
...
...
@@ -485,7 +507,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -554,7 +575,8 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_FRAME_POINTER is not set
#
...
...
@@ -568,6 +590,10 @@ CONFIG_NLS_DEFAULT="iso8859-1"
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
arch/m32r/opsput/defconfig.opsput
View file @
ed343ca9
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.1
0-rc1-bk21
#
Fri Nov 12 16:09:02 2004
# Linux kernel version: 2.6.1
1-rc4
#
Wed Feb 16 21:11:41 2005
#
CONFIG_M32R=y
CONFIG_UID16=y
# CONFIG_UID16 is not set
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
#
# Code maturity level options
...
...
@@ -80,6 +82,7 @@ CONFIG_NOHIGHMEM=y
# CONFIG_DISCONTIGMEM is not set
CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
# CONFIG_PREEMPT is not set
# CONFIG_SMP is not set
...
...
@@ -94,7 +97,6 @@ CONFIG_RWSEM_GENERIC_SPINLOCK=y
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
# CONFIG_PCMCIA_OBSOLETE is not set
CONFIG_PCMCIA=y
#
...
...
@@ -144,10 +146,12 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_INITRAMFS_SOURCE=""
...
...
@@ -160,6 +164,7 @@ CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
...
...
@@ -194,12 +199,12 @@ CONFIG_SCSI_MULTI_LUN=y
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
#
# SCSI low-level drivers
#
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_QLOGIC_1280_1040 is not set
# CONFIG_SCSI_DEBUG is not set
#
...
...
@@ -371,6 +376,7 @@ CONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
#
...
...
@@ -423,7 +429,6 @@ CONFIG_DS1302=y
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
...
...
@@ -472,11 +477,25 @@ CONFIG_DS1302=y
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# File systems
#
...
...
@@ -494,6 +513,10 @@ CONFIG_REISERFS_FS=m
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
...
...
@@ -564,7 +587,6 @@ CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
# CONFIG_EXPORTFS is not set
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
...
...
@@ -633,15 +655,19 @@ CONFIG_NLS_DEFAULT="iso8859-1"
# Kernel hacking
#
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_IOVIRT is not set
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_FS is not set
# CONFIG_FRAME_POINTER is not set
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_PAGEALLOC is not set
#
# Security options
...
...
@@ -654,6 +680,10 @@ CONFIG_DEBUG_INFO=y
#
# CONFIG_CRYPTO is not set
#
# Hardware crypto devices
#
#
# Library routines
#
...
...
drivers/acpi/dispatcher/dswexec.c
View file @
ed343ca9
...
...
@@ -578,6 +578,13 @@ acpi_ds_exec_end_op (
break
;
}
/* Done with this result state (Now that operand stack is built) */
status
=
acpi_ds_result_stack_pop
(
walk_state
);
if
(
ACPI_FAILURE
(
status
))
{
goto
cleanup
;
}
/*
* If a result object was returned from above, push it on the
* current result stack
...
...
drivers/acpi/executer/exoparg6.c
View file @
ed343ca9
...
...
@@ -81,75 +81,119 @@
* FUNCTION: acpi_ex_do_match
*
* PARAMETERS: match_op - The AML match operand
* package_
value - Value
from the target package
* match_
value - Value
to be matched
* package_
obj - Object
from the target package
* match_
obj - Object
to be matched
*
* RETURN: TRUE if the match is successful, FALSE otherwise
*
* DESCRIPTION: Implements the low-level match for the ASL Match operator
* DESCRIPTION: Implements the low-level match for the ASL Match operator.
* Package elements will be implicitly converted to the type of
* the match object (Integer/Buffer/String).
*
******************************************************************************/
u8
acpi_ex_do_match
(
u32
match_op
,
acpi_integer
package_value
,
acpi_integer
match_value
)
union
acpi_operand_object
*
package_obj
,
union
acpi_operand_object
*
match_obj
)
{
u8
logical_result
=
TRUE
;
acpi_status
status
;
/*
* Note: Since the package_obj/match_obj ordering is opposite to that of
* the standard logical operators, we have to reverse them when we call
* do_logical_op in order to make the implicit conversion rules work
* correctly. However, this means we have to flip the entire equation
* also. A bit ugly perhaps, but overall, better than fussing the
* parameters around at runtime, over and over again.
*
* Below, P[i] refers to the package element, M refers to the Match object.
*/
switch
(
match_op
)
{
case
MATCH_MTR
:
/* always true */
case
MATCH_MTR
:
break
;
/* Always true */
break
;
case
MATCH_MEQ
:
/* true if equal */
case
MATCH_MEQ
:
if
(
package_value
!=
match_value
)
{
/*
* True if equal: (P[i] == M)
* Change to: (M == P[i])
*/
status
=
acpi_ex_do_logical_op
(
AML_LEQUAL_OP
,
match_obj
,
package_obj
,
&
logical_result
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
FALSE
);
}
break
;
case
MATCH_MLE
:
case
MATCH_MLE
:
/* true if less than or equal */
if
(
package_value
>
match_value
)
{
/*
* True if less than or equal: (P[i] <= M) (P[i] not_greater than M)
* Change to: (M >= P[i]) (M not_less than P[i])
*/
status
=
acpi_ex_do_logical_op
(
AML_LLESS_OP
,
match_obj
,
package_obj
,
&
logical_result
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
FALSE
);
}
logical_result
=
(
u8
)
!
logical_result
;
break
;
case
MATCH_MLT
:
case
MATCH_MLT
:
/* true if less than */
if
(
package_value
>=
match_value
)
{
/*
* True if less than: (P[i] < M)
* Change to: (M > P[i])
*/
status
=
acpi_ex_do_logical_op
(
AML_LGREATER_OP
,
match_obj
,
package_obj
,
&
logical_result
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
FALSE
);
}
break
;
case
MATCH_MGE
:
case
MATCH_MGE
:
/* true if greater than or equal */
if
(
package_value
<
match_value
)
{
/*
* True if greater than or equal: (P[i] >= M) (P[i] not_less than M)
* Change to: (M <= P[i]) (M not_greater than P[i])
*/
status
=
acpi_ex_do_logical_op
(
AML_LGREATER_OP
,
match_obj
,
package_obj
,
&
logical_result
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
FALSE
);
}
logical_result
=
(
u8
)
!
logical_result
;
break
;
case
MATCH_MGT
:
case
MATCH_MGT
:
/* true if greater than */
if
(
package_value
<=
match_value
)
{
/*
* True if greater than: (P[i] > M)
* Change to: (M < P[i])
*/
status
=
acpi_ex_do_logical_op
(
AML_LLESS_OP
,
match_obj
,
package_obj
,
&
logical_result
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
FALSE
);
}
break
;
default:
default:
/* undefined
*/
/* Undefined
*/
return
(
FALSE
);
}
return
TRUE
;
return
logical_result
;
}
...
...
@@ -182,19 +226,21 @@ acpi_ex_opcode_6A_0T_1R (
switch
(
walk_state
->
opcode
)
{
case
AML_MATCH_OP
:
/*
* Match (search_p
ackage[0], match_op1[1], match_object
1[2],
*
match_op2[3], match_object
2[4], start_index[5])
* Match (search_p
kg[0], match_op1[1], match_obj
1[2],
*
match_op2[3], match_obj
2[4], start_index[5])
*/
/* Validate
match comparison sub-opcodes
*/
/* Validate
both Match Term Operators (MTR, MEQ, etc.)
*/
if
((
operand
[
1
]
->
integer
.
value
>
MAX_MATCH_OPERATOR
)
||
(
operand
[
3
]
->
integer
.
value
>
MAX_MATCH_OPERATOR
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"
operation encoding
out of range
\n
"
));
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"
Match operator
out of range
\n
"
));
status
=
AE_AML_OPERAND_VALUE
;
goto
cleanup
;
}
/* Get the package start_index, validate against the package length */
index
=
(
u32
)
operand
[
5
]
->
integer
.
value
;
if
(
index
>=
(
u32
)
operand
[
0
]
->
package
.
count
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"Index beyond package end
\n
"
));
...
...
@@ -202,6 +248,8 @@ acpi_ex_opcode_6A_0T_1R (
goto
cleanup
;
}
/* Create an integer for the return value */
return_desc
=
acpi_ut_create_internal_object
(
ACPI_TYPE_INTEGER
);
if
(
!
return_desc
)
{
status
=
AE_NO_MEMORY
;
...
...
@@ -214,37 +262,39 @@ acpi_ex_opcode_6A_0T_1R (
return_desc
->
integer
.
value
=
ACPI_INTEGER_MAX
;
/*
* Examine each element until a match is found. Within the loop,
* Examine each element until a match is found. Both match conditions
* must be satisfied for a match to occur. Within the loop,
* "continue" signifies that the current element does not match
* and the next should be examined.
*
* Upon finding a match, the loop will terminate via "break" at
* the bottom. If it terminates "normally", match_value will be
-1
*
(its initial value) indicating that no match was found. When
*
returned as a Number, this will produce the Ones value as specifie
d.
* the bottom. If it terminates "normally", match_value will be
*
ACPI_INTEGER_MAX (Ones) (its initial value) indicating that no
*
match was foun
d.
*/
for
(
;
index
<
operand
[
0
]
->
package
.
count
;
index
++
)
{
/* Get the current package element */
this_element
=
operand
[
0
]
->
package
.
elements
[
index
];
/*
* Treat any NULL or non-numeric elements as non-matching.
*/
if
(
!
this_element
||
ACPI_GET_OBJECT_TYPE
(
this_element
)
!=
ACPI_TYPE_INTEGER
)
{
/* Treat any uninitialized (NULL) elements as non-matching */
if
(
!
this_element
)
{
continue
;
}
/*
* "continue" (proceed to next iteration of enclosing
* "for" loop) signifies a non-match.
* Both match conditions must be satisfied. Execution of a continue
* (proceed to next iteration of enclosing for loop) signifies a
* non-match.
*/
if
(
!
acpi_ex_do_match
((
u32
)
operand
[
1
]
->
integer
.
value
,
this_element
->
integer
.
value
,
operand
[
2
]
->
integer
.
value
))
{
this_element
,
operand
[
2
]
))
{
continue
;
}
if
(
!
acpi_ex_do_match
((
u32
)
operand
[
3
]
->
integer
.
value
,
this_element
->
integer
.
value
,
operand
[
4
]
->
integer
.
value
))
{
this_element
,
operand
[
4
]
))
{
continue
;
}
...
...
@@ -253,7 +303,6 @@ acpi_ex_opcode_6A_0T_1R (
return_desc
->
integer
.
value
=
index
;
break
;
}
break
;
...
...
drivers/acpi/executer/exresop.c
View file @
ed343ca9
...
...
@@ -312,7 +312,7 @@ acpi_ex_resolve_operands (
goto
next_operand
;
case
ARGI_
ANYTYPE
:
case
ARGI_
DATAREFOBJ
:
/* Store operator only */
/*
* We don't want to resolve index_op reference objects during
...
...
drivers/acpi/executer/exstoren.c
View file @
ed343ca9
...
...
@@ -206,6 +206,7 @@ acpi_ex_store_object_to_object (
{
union
acpi_operand_object
*
actual_src_desc
;
acpi_status
status
=
AE_OK
;
acpi_object_type
original_src_type
;
ACPI_FUNCTION_TRACE_PTR
(
"ex_store_object_to_object"
,
source_desc
);
...
...
@@ -222,7 +223,8 @@ acpi_ex_store_object_to_object (
return_ACPI_STATUS
(
status
);
}
if
(
ACPI_GET_OBJECT_TYPE
(
source_desc
)
!=
ACPI_GET_OBJECT_TYPE
(
dest_desc
))
{
original_src_type
=
ACPI_GET_OBJECT_TYPE
(
source_desc
);
if
(
original_src_type
!=
ACPI_GET_OBJECT_TYPE
(
dest_desc
))
{
/*
* The source type does not match the type of the destination.
* Perform the "implicit conversion" of the source to the current type
...
...
@@ -232,15 +234,15 @@ acpi_ex_store_object_to_object (
* Otherwise, actual_src_desc is a temporary object to hold the
* converted object.
*/
status
=
acpi_ex_convert_to_target_type
(
ACPI_GET_OBJECT_TYPE
(
dest_desc
),
source_desc
,
&
actual_src_desc
,
walk_state
);
status
=
acpi_ex_convert_to_target_type
(
ACPI_GET_OBJECT_TYPE
(
dest_desc
),
source_desc
,
&
actual_src_desc
,
walk_state
);
if
(
ACPI_FAILURE
(
status
))
{
return_ACPI_STATUS
(
status
);
}
if
(
source_desc
==
actual_src_desc
)
{
/*
* No conversion was performed.
Return the source_desc as the
* No conversion was performed. Return the source_desc as the
* new object.
*/
*
new_desc
=
source_desc
;
...
...
@@ -269,12 +271,18 @@ acpi_ex_store_object_to_object (
case
ACPI_TYPE_BUFFER
:
status
=
acpi_ex_store_buffer_to_buffer
(
actual_src_desc
,
dest_desc
);
/*
* Note: There is different store behavior depending on the original
* source type
*/
status
=
acpi_ex_store_buffer_to_buffer
(
original_src_type
,
actual_src_desc
,
dest_desc
);
break
;
case
ACPI_TYPE_PACKAGE
:
status
=
acpi_ut_copy_iobject_to_iobject
(
actual_src_desc
,
&
dest_desc
,
walk_state
);
status
=
acpi_ut_copy_iobject_to_iobject
(
actual_src_desc
,
&
dest_desc
,
walk_state
);
break
;
default:
...
...
drivers/acpi/executer/exstorob.c
View file @
ed343ca9
...
...
@@ -66,6 +66,7 @@
acpi_status
acpi_ex_store_buffer_to_buffer
(
acpi_object_type
original_src_type
,
union
acpi_operand_object
*
source_desc
,
union
acpi_operand_object
*
target_desc
)
{
...
...
@@ -104,9 +105,16 @@ acpi_ex_store_buffer_to_buffer (
ACPI_MEMSET
(
target_desc
->
buffer
.
pointer
,
0
,
target_desc
->
buffer
.
length
);
ACPI_MEMCPY
(
target_desc
->
buffer
.
pointer
,
buffer
,
length
);
/* Set the new length of the target */
/*
* If the original source was a string, we must truncate the buffer,
* according to the ACPI spec. Integer-to-Buffer and Buffer-to-Buffer
* copy must not truncate the original buffer.
*/
if
(
original_src_type
==
ACPI_TYPE_STRING
)
{
/* Set the new length of the target */
target_desc
->
buffer
.
length
=
length
;
target_desc
->
buffer
.
length
=
length
;
}
}
else
{
/* Truncate the source, copy only what will fit */
...
...
drivers/acpi/namespace/nsxfname.c
View file @
ed343ca9
...
...
@@ -237,7 +237,7 @@ acpi_get_object_info (
{
acpi_status
status
;
struct
acpi_namespace_node
*
node
;
struct
acpi_device_info
info
;
struct
acpi_device_info
*
info
;
struct
acpi_device_info
*
return_info
;
struct
acpi_compatible_id_list
*
cid_list
=
NULL
;
acpi_size
size
;
...
...
@@ -254,55 +254,59 @@ acpi_get_object_info (
return
(
status
);
}
info
=
ACPI_MEM_CALLOCATE
(
sizeof
(
struct
acpi_device_info
));
if
(
!
info
)
{
return
(
AE_NO_MEMORY
);
}
status
=
acpi_ut_acquire_mutex
(
ACPI_MTX_NAMESPACE
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
status
)
;
goto
cleanup
;
}
node
=
acpi_ns_map_handle_to_node
(
handle
);
if
(
!
node
)
{
(
void
)
acpi_ut_release_mutex
(
ACPI_MTX_NAMESPACE
);
return
(
AE_BAD_PARAMETER
)
;
goto
cleanup
;
}
/* Init return structure */
size
=
sizeof
(
struct
acpi_device_info
);
ACPI_MEMSET
(
&
info
,
0
,
size
);
info
.
type
=
node
->
type
;
info
.
name
=
node
->
name
.
integer
;
info
.
valid
=
0
;
info
->
type
=
node
->
type
;
info
->
name
=
node
->
name
.
integer
;
info
->
valid
=
0
;
status
=
acpi_ut_release_mutex
(
ACPI_MTX_NAMESPACE
);
if
(
ACPI_FAILURE
(
status
))
{
return
(
status
)
;
goto
cleanup
;
}
/* If not a device, we are all done */
if
(
info
.
type
==
ACPI_TYPE_DEVICE
)
{
if
(
info
->
type
==
ACPI_TYPE_DEVICE
)
{
/*
* Get extra info for ACPI Devices objects only:
* Run the Device _HID, _UID, _CID, _STA, _ADR and _sx_d methods.
*
* Note: none of these methods are required, so they may or may
* not be present for this device. The Info
.
Valid bitfield is used
* not be present for this device. The Info
->
Valid bitfield is used
* to indicate which methods were found and ran successfully.
*/
/* Execute the Device._HID method */
status
=
acpi_ut_execute_HID
(
node
,
&
info
.
hardware_id
);
status
=
acpi_ut_execute_HID
(
node
,
&
info
->
hardware_id
);
if
(
ACPI_SUCCESS
(
status
))
{
info
.
valid
|=
ACPI_VALID_HID
;
info
->
valid
|=
ACPI_VALID_HID
;
}
/* Execute the Device._UID method */
status
=
acpi_ut_execute_UID
(
node
,
&
info
.
unique_id
);
status
=
acpi_ut_execute_UID
(
node
,
&
info
->
unique_id
);
if
(
ACPI_SUCCESS
(
status
))
{
info
.
valid
|=
ACPI_VALID_UID
;
info
->
valid
|=
ACPI_VALID_UID
;
}
/* Execute the Device._CID method */
...
...
@@ -311,32 +315,30 @@ acpi_get_object_info (
if
(
ACPI_SUCCESS
(
status
))
{
size
+=
((
acpi_size
)
cid_list
->
count
-
1
)
*
sizeof
(
struct
acpi_compatible_id
);
info
.
valid
|=
ACPI_VALID_CID
;
info
->
valid
|=
ACPI_VALID_CID
;
}
/* Execute the Device._STA method */
status
=
acpi_ut_execute_STA
(
node
,
&
info
.
current_status
);
status
=
acpi_ut_execute_STA
(
node
,
&
info
->
current_status
);
if
(
ACPI_SUCCESS
(
status
))
{
info
.
valid
|=
ACPI_VALID_STA
;
info
->
valid
|=
ACPI_VALID_STA
;
}
/* Execute the Device._ADR method */
status
=
acpi_ut_evaluate_numeric_object
(
METHOD_NAME__ADR
,
node
,
&
info
.
address
);
&
info
->
address
);
if
(
ACPI_SUCCESS
(
status
))
{
info
.
valid
|=
ACPI_VALID_ADR
;
info
->
valid
|=
ACPI_VALID_ADR
;
}
/* Execute the Device._sx_d methods */
status
=
acpi_ut_execute_sxds
(
node
,
info
.
highest_dstates
);
status
=
acpi_ut_execute_sxds
(
node
,
info
->
highest_dstates
);
if
(
ACPI_SUCCESS
(
status
))
{
info
.
valid
|=
ACPI_VALID_SXDS
;
info
->
valid
|=
ACPI_VALID_SXDS
;
}
status
=
AE_OK
;
}
/* Validate/Allocate/Clear caller buffer */
...
...
@@ -349,7 +351,7 @@ acpi_get_object_info (
/* Populate the return buffer */
return_info
=
buffer
->
pointer
;
ACPI_MEMCPY
(
return_info
,
&
info
,
sizeof
(
struct
acpi_device_info
));
ACPI_MEMCPY
(
return_info
,
info
,
sizeof
(
struct
acpi_device_info
));
if
(
cid_list
)
{
ACPI_MEMCPY
(
&
return_info
->
compatibility_id
,
cid_list
,
cid_list
->
size
);
...
...
@@ -357,6 +359,7 @@ acpi_get_object_info (
cleanup:
ACPI_MEM_FREE
(
info
);
if
(
cid_list
)
{
ACPI_MEM_FREE
(
cid_list
);
}
...
...
drivers/acpi/parser/psopcode.c
View file @
ed343ca9
...
...
@@ -289,7 +289,7 @@
#define ARGI_LOCAL6 ARG_NONE
#define ARGI_LOCAL7 ARG_NONE
#define ARGI_LOR_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER)
#define ARGI_MATCH_OP ARGI_LIST6 (ARGI_PACKAGE, ARGI_INTEGER,
ARGI_INTEGER, ARGI_INTEGER, ARGI_INTEGER,
ARGI_INTEGER)
#define ARGI_MATCH_OP ARGI_LIST6 (ARGI_PACKAGE, ARGI_INTEGER,
ARGI_COMPUTEDATA, ARGI_INTEGER,ARGI_COMPUTEDATA,
ARGI_INTEGER)
#define ARGI_METHOD_OP ARGI_INVALID_OPCODE
#define ARGI_METHODCALL_OP ARGI_INVALID_OPCODE
#define ARGI_MID_OP ARGI_LIST4 (ARGI_BUFFER_OR_STRING,ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF)
...
...
drivers/acpi/tables/tbconvrt.c
View file @
ed343ca9
...
...
@@ -269,8 +269,8 @@ acpi_tb_convert_fadt1 (
* that immediately follows.
*/
ACPI_MEMCPY
(
&
local_fadt
->
reset_register
,
&
(
(
struct
fadt_descriptor_rev2_minus
*
)
original_fadt
)
->
reset_register
,
sizeof
(
struct
acpi_generic_address
)
+
1
);
&
(
ACPI_CAST_PTR
(
struct
fadt_descriptor_rev2_minus
,
original_fadt
)
)
->
reset_register
,
sizeof
(
struct
acpi_generic_address
)
+
1
);
}
else
{
/*
...
...
drivers/block/ub.c
View file @
ed343ca9
...
...
@@ -300,6 +300,11 @@ struct ub_dev {
/*
*/
static
int
ub_bd_rq_fn_1
(
struct
ub_dev
*
sc
,
struct
request
*
rq
);
static
int
ub_cmd_build_block
(
struct
ub_dev
*
sc
,
struct
ub_scsi_cmd
*
cmd
,
struct
request
*
rq
);
static
int
ub_cmd_build_packet
(
struct
ub_dev
*
sc
,
struct
ub_scsi_cmd
*
cmd
,
struct
request
*
rq
);
static
void
ub_rw_cmd_done
(
struct
ub_dev
*
sc
,
struct
ub_scsi_cmd
*
cmd
);
static
void
ub_end_rq
(
struct
request
*
rq
,
int
uptodate
);
static
int
ub_submit_scsi
(
struct
ub_dev
*
sc
,
struct
ub_scsi_cmd
*
cmd
);
...
...
@@ -591,40 +596,73 @@ static struct ub_scsi_cmd *ub_cmdq_pop(struct ub_dev *sc)
* The request function is our main entry point
*/
static
inline
int
ub_bd_rq_fn_1
(
request_queue_t
*
q
)
static
void
ub_bd_rq_fn
(
request_queue_t
*
q
)
{
#if 0
int writing = 0, pci_dir, i, n_elem;
u32 tmp;
unsigned int msg_size;
#endif
struct
ub_dev
*
sc
=
q
->
queuedata
;
struct
request
*
rq
;
#if 0 /* We use rq->buffer for now */
struct scatterlist *sg;
int n_elem;
#endif
while
((
rq
=
elv_next_request
(
q
))
!=
NULL
)
{
if
(
ub_bd_rq_fn_1
(
sc
,
rq
)
!=
0
)
{
blk_stop_queue
(
q
);
break
;
}
}
}
static
int
ub_bd_rq_fn_1
(
struct
ub_dev
*
sc
,
struct
request
*
rq
)
{
struct
ub_scsi_cmd
*
cmd
;
int
ub_dir
;
unsigned
int
block
,
nblks
;
int
rc
;
if
((
rq
=
elv_next_request
(
q
))
==
NULL
)
return
1
;
if
(
atomic_read
(
&
sc
->
poison
)
||
sc
->
changed
)
{
blkdev_dequeue_request
(
rq
);
ub_end_rq
(
rq
,
0
);
return
0
;
}
if
((
cmd
=
ub_get_cmd
(
sc
))
==
NULL
)
{
blk_stop_queue
(
q
);
return
1
;
}
if
((
cmd
=
ub_get_cmd
(
sc
))
==
NULL
)
return
-
1
;
memset
(
cmd
,
0
,
sizeof
(
struct
ub_scsi_cmd
));
blkdev_dequeue_request
(
rq
);
if
(
blk_pc_request
(
rq
))
{
rc
=
ub_cmd_build_packet
(
sc
,
cmd
,
rq
);
}
else
{
rc
=
ub_cmd_build_block
(
sc
,
cmd
,
rq
);
}
if
(
rc
!=
0
)
{
ub_put_cmd
(
sc
,
cmd
);
ub_end_rq
(
rq
,
0
);
blk_start_queue
(
sc
->
disk
->
queue
);
return
0
;
}
cmd
->
state
=
UB_CMDST_INIT
;
cmd
->
done
=
ub_rw_cmd_done
;
cmd
->
back
=
rq
;
cmd
->
tag
=
sc
->
tagcnt
++
;
if
((
rc
=
ub_submit_scsi
(
sc
,
cmd
))
!=
0
)
{
ub_put_cmd
(
sc
,
cmd
);
ub_end_rq
(
rq
,
0
);
blk_start_queue
(
sc
->
disk
->
queue
);
return
0
;
}
return
0
;
}
static
int
ub_cmd_build_block
(
struct
ub_dev
*
sc
,
struct
ub_scsi_cmd
*
cmd
,
struct
request
*
rq
)
{
int
ub_dir
;
#if 0 /* We use rq->buffer for now */
struct scatterlist *sg;
int n_elem;
#endif
unsigned
int
block
,
nblks
;
if
(
rq_data_dir
(
rq
)
==
WRITE
)
ub_dir
=
UB_DIR_WRITE
;
else
...
...
@@ -652,6 +690,7 @@ static inline int ub_bd_rq_fn_1(request_queue_t *q)
return 0;
}
#endif
/*
* XXX Unfortunately, this check does not work. It is quite possible
* to get bogus non-null rq->buffer if you allow sg by mistake.
...
...
@@ -663,13 +702,12 @@ static inline int ub_bd_rq_fn_1(request_queue_t *q)
*/
static
int
do_print
=
1
;
if
(
do_print
)
{
printk
(
KERN_WARNING
"%s: unmapped request
\n
"
,
sc
->
name
);
printk
(
KERN_WARNING
"%s: unmapped block request"
" flags 0x%lx sectors %lu
\n
"
,
sc
->
name
,
rq
->
flags
,
rq
->
nr_sectors
);
do_print
=
0
;
}
ub_put_cmd
(
sc
,
cmd
);
ub_end_rq
(
rq
,
0
);
blk_start_queue
(
q
);
return
0
;
return
-
1
;
}
/*
...
...
@@ -681,7 +719,6 @@ static inline int ub_bd_rq_fn_1(request_queue_t *q)
block
=
rq
->
sector
>>
sc
->
capacity
.
bshift
;
nblks
=
rq
->
nr_sectors
>>
sc
->
capacity
.
bshift
;
memset
(
cmd
,
0
,
sizeof
(
struct
ub_scsi_cmd
));
cmd
->
cdb
[
0
]
=
(
ub_dir
==
UB_DIR_READ
)
?
READ_10
:
WRITE_10
;
/* 10-byte uses 4 bytes of LBA: 2147483648KB, 2097152MB, 2048GB */
cmd
->
cdb
[
2
]
=
block
>>
24
;
...
...
@@ -691,27 +728,44 @@ static inline int ub_bd_rq_fn_1(request_queue_t *q)
cmd
->
cdb
[
7
]
=
nblks
>>
8
;
cmd
->
cdb
[
8
]
=
nblks
;
cmd
->
cdb_len
=
10
;
cmd
->
dir
=
ub_dir
;
cmd
->
state
=
UB_CMDST_INIT
;
cmd
->
data
=
rq
->
buffer
;
cmd
->
len
=
rq
->
nr_sectors
*
512
;
cmd
->
done
=
ub_rw_cmd_done
;
cmd
->
back
=
rq
;
cmd
->
tag
=
sc
->
tagcnt
++
;
if
((
rc
=
ub_submit_scsi
(
sc
,
cmd
))
!=
0
)
{
ub_put_cmd
(
sc
,
cmd
);
ub_end_rq
(
rq
,
0
);
blk_start_queue
(
q
);
return
0
;
}
return
0
;
}
static
void
ub_bd_rq_fn
(
request_queue_t
*
q
)
static
int
ub_cmd_build_packet
(
struct
ub_dev
*
sc
,
struct
ub_scsi_cmd
*
cmd
,
struct
request
*
rq
)
{
do
{
}
while
(
ub_bd_rq_fn_1
(
q
)
==
0
);
if
(
rq
->
data_len
!=
0
&&
rq
->
data
==
NULL
)
{
static
int
do_print
=
1
;
if
(
do_print
)
{
printk
(
KERN_WARNING
"%s: unmapped packet request"
" flags 0x%lx length %d
\n
"
,
sc
->
name
,
rq
->
flags
,
rq
->
data_len
);
do_print
=
0
;
}
return
-
1
;
}
memcpy
(
&
cmd
->
cdb
,
rq
->
cmd
,
rq
->
cmd_len
);
cmd
->
cdb_len
=
rq
->
cmd_len
;
if
(
rq
->
data_len
==
0
)
{
cmd
->
dir
=
UB_DIR_NONE
;
}
else
{
if
(
rq_data_dir
(
rq
)
==
WRITE
)
cmd
->
dir
=
UB_DIR_WRITE
;
else
cmd
->
dir
=
UB_DIR_READ
;
}
cmd
->
data
=
rq
->
data
;
cmd
->
len
=
rq
->
data_len
;
return
0
;
}
static
void
ub_rw_cmd_done
(
struct
ub_dev
*
sc
,
struct
ub_scsi_cmd
*
cmd
)
...
...
@@ -721,6 +775,12 @@ static void ub_rw_cmd_done(struct ub_dev *sc, struct ub_scsi_cmd *cmd)
request_queue_t
*
q
=
disk
->
queue
;
int
uptodate
;
if
(
blk_pc_request
(
rq
))
{
/* UB_SENSE_SIZE is smaller than SCSI_SENSE_BUFFERSIZE */
memcpy
(
rq
->
sense
,
sc
->
top_sense
,
UB_SENSE_SIZE
);
rq
->
sense_len
=
UB_SENSE_SIZE
;
}
if
(
cmd
->
error
==
0
)
uptodate
=
1
;
else
...
...
@@ -779,6 +839,17 @@ static int ub_scsi_cmd_start(struct ub_dev *sc, struct ub_scsi_cmd *cmd)
bcb
=
&
sc
->
work_bcb
;
/*
* ``If the allocation length is eighteen or greater, and a device
* server returns less than eithteen bytes of data, the application
* client should assume that the bytes not transferred would have been
* zeroes had the device server returned those bytes.''
*
* We zero sense for all commands so that when a packet request
* fails it does not return a stale sense.
*/
memset
(
&
sc
->
top_sense
,
0
,
UB_SENSE_SIZE
);
/* set up the command wrapper */
bcb
->
Signature
=
cpu_to_le32
(
US_BULK_CB_SIGN
);
bcb
->
Tag
=
cmd
->
tag
;
/* Endianness is not important */
...
...
@@ -1222,14 +1293,6 @@ static void ub_state_sense(struct ub_dev *sc, struct ub_scsi_cmd *cmd)
goto
error
;
}
/*
* ``If the allocation length is eighteen or greater, and a device
* server returns less than eithteen bytes of data, the application
* client should assume that the bytes not transferred would have been
* zeroes had the device server returned those bytes.''
*/
memset
(
&
sc
->
top_sense
,
0
,
UB_SENSE_SIZE
);
scmd
=
&
sc
->
top_rqs_cmd
;
scmd
->
cdb
[
0
]
=
REQUEST_SENSE
;
scmd
->
cdb
[
4
]
=
UB_SENSE_SIZE
;
...
...
@@ -1495,30 +1558,10 @@ static int ub_bd_release(struct inode *inode, struct file *filp)
static
int
ub_bd_ioctl
(
struct
inode
*
inode
,
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
// void __user *usermem = (void *) arg;
// struct carm_port *port = ino->i_bdev->bd_disk->private_data;
// struct hd_geometry geom;
#if 0
switch (cmd) {
case HDIO_GETGEO:
if (usermem == NULL) // XXX Bizzare. Why?
return -EINVAL;
geom.heads = (u8) port->dev_geom_head;
geom.sectors = (u8) port->dev_geom_sect;
geom.cylinders = port->dev_geom_cyl;
geom.start = get_start_sect(ino->i_bdev);
if (copy_to_user(usermem, &geom, sizeof(geom)))
return -EFAULT;
return 0;
default: ;
}
#endif
struct
gendisk
*
disk
=
inode
->
i_bdev
->
bd_disk
;
void
__user
*
usermem
=
(
void
__user
*
)
arg
;
return
-
ENOTTY
;
return
scsi_cmd_ioctl
(
filp
,
disk
,
cmd
,
usermem
)
;
}
/*
...
...
drivers/video/sis/sis_main.c
View file @
ed343ca9
...
...
@@ -39,6 +39,7 @@
#include <linux/moduleparam.h>
#endif
#include <linux/kernel.h>
#include <linux/smp_lock.h>
#include <linux/spinlock.h>
#include <linux/errno.h>
#include <linux/string.h>
...
...
include/acpi/acconfig.h
View file @
ed343ca9
...
...
@@ -64,7 +64,7 @@
/* Version string */
#define ACPI_CA_VERSION 0x20050
125
#define ACPI_CA_VERSION 0x20050
211
/*
* OS name, used for the _OS object. The _OS object is essentially obsolete,
...
...
include/acpi/acinterp.h
View file @
ed343ca9
...
...
@@ -217,8 +217,8 @@ acpi_ex_opcode_6A_0T_1R (
u8
acpi_ex_do_match
(
u32
match_op
,
acpi_integer
package_value
,
acpi_integer
match_value
);
union
acpi_operand_object
*
package_obj
,
union
acpi_operand_object
*
match_obj
);
acpi_status
acpi_ex_get_object_reference
(
...
...
@@ -617,6 +617,7 @@ acpi_ex_store_object_to_object (
acpi_status
acpi_ex_store_buffer_to_buffer
(
acpi_object_type
original_src_type
,
union
acpi_operand_object
*
source_desc
,
union
acpi_operand_object
*
target_desc
);
...
...
include/acpi/platform/aclinux.h
View file @
ed343ca9
...
...
@@ -81,6 +81,8 @@
#define ACPI_USE_NATIVE_DIVIDE
#endif
#define __cdecl
#define ACPI_FLUSH_CPU_CACHE()
#endif
/* __KERNEL__ */
/* Linux uses GCC */
...
...
include/asm-m32r/spinlock.h
View file @
ed343ca9
...
...
@@ -20,23 +20,13 @@ extern int printk(const char * fmt, ...)
#define RW_LOCK_BIAS 0x01000000
#define RW_LOCK_BIAS_STR "0x01000000"
/* It seems that people are forgetting to
* initialize their spinlocks properly, tsk tsk.
* Remember to turn this off in 2.4. -ben
*/
#if defined(CONFIG_DEBUG_SPINLOCK)
#define SPINLOCK_DEBUG 1
#else
#define SPINLOCK_DEBUG 0
#endif
/*
* Your basic SMP spinlocks, allowing only a single CPU anywhere
*/
typedef
struct
{
volatile
int
lock
;
#if
SPINLOCK_DEBUG
volatile
int
s
lock
;
#if
def CONFIG_DEBUG_SPINLOCK
unsigned
magic
;
#endif
#ifdef CONFIG_PREEMPT
...
...
@@ -46,7 +36,7 @@ typedef struct {
#define SPINLOCK_MAGIC 0xdead4ead
#if
SPINLOCK_DEBUG
#if
def CONFIG_DEBUG_SPINLOCK
#define SPINLOCK_MAGIC_INIT , SPINLOCK_MAGIC
#else
#define SPINLOCK_MAGIC_INIT
/* */
...
...
@@ -63,7 +53,7 @@ typedef struct {
* We make no fairness assumptions. They have a cost.
*/
#define spin_is_locked(x) (*(volatile int *)(&(x)->lock) <= 0)
#define spin_is_locked(x) (*(volatile int *)(&(x)->
s
lock) <= 0)
#define spin_unlock_wait(x) do { barrier(); } while(spin_is_locked(x))
#define _raw_spin_lock_flags(lock, flags) _raw_spin_lock(lock)
...
...
@@ -80,11 +70,11 @@ static inline int _raw_spin_trylock(spinlock_t *lock)
unsigned
long
tmp1
,
tmp2
;
/*
* lock->lock : =1 : unlock
* : <=0 : lock
* lock->
s
lock : =1 : unlock
*
: <=0 : lock
* {
* oldval = lock->lock; <--+ need atomic operation
* lock->lock = 0; <--+
* oldval = lock->
s
lock; <--+ need atomic operation
* lock->
s
lock = 0; <--+
* }
*/
__asm__
__volatile__
(
...
...
@@ -97,7 +87,7 @@ static inline int _raw_spin_trylock(spinlock_t *lock)
"unlock %1, @%3;
\n\t
"
"mvtc %2, psw;
\n\t
"
:
"=&r"
(
oldval
),
"=&r"
(
tmp1
),
"=&r"
(
tmp2
)
:
"r"
(
&
lock
->
lock
)
:
"r"
(
&
lock
->
s
lock
)
:
"memory"
#ifdef CONFIG_CHIP_M32700_TS1
,
"r6"
...
...
@@ -111,22 +101,22 @@ static inline void _raw_spin_lock(spinlock_t *lock)
{
unsigned
long
tmp0
,
tmp1
;
#if
SPINLOCK_DEBUG
#if
def CONFIG_DEBUG_SPINLOCK
__label__
here
;
here:
if
(
lock
->
magic
!=
SPINLOCK_MAGIC
)
{
printk
(
"
eip
: %p
\n
"
,
&&
here
);
printk
(
"
pc
: %p
\n
"
,
&&
here
);
BUG
();
}
#endif
/*
* lock->lock : =1 : unlock
* : <=0 : lock
* lock->
s
lock : =1 : unlock
*
: <=0 : lock
*
* for ( ; ; ) {
* lock->lock -= 1; <-- need atomic operation
* if (lock->lock == 0) break;
* for ( ; lock->lock <= 0 ; );
* lock->
s
lock -= 1; <-- need atomic operation
* if (lock->
s
lock == 0) break;
* for ( ; lock->
s
lock <= 0 ; );
* }
*/
__asm__
__volatile__
(
...
...
@@ -149,7 +139,7 @@ static inline void _raw_spin_lock(spinlock_t *lock)
"bra 2b;
\n\t
"
LOCK_SECTION_END
:
"=&r"
(
tmp0
),
"=&r"
(
tmp1
)
:
"r"
(
&
lock
->
lock
)
:
"r"
(
&
lock
->
s
lock
)
:
"memory"
#ifdef CONFIG_CHIP_M32700_TS1
,
"r6"
...
...
@@ -159,12 +149,12 @@ static inline void _raw_spin_lock(spinlock_t *lock)
static
inline
void
_raw_spin_unlock
(
spinlock_t
*
lock
)
{
#if
SPINLOCK_DEBUG
#if
def CONFIG_DEBUG_SPINLOCK
BUG_ON
(
lock
->
magic
!=
SPINLOCK_MAGIC
);
BUG_ON
(
!
spin_is_locked
(
lock
));
#endif
mb
();
lock
->
lock
=
1
;
lock
->
s
lock
=
1
;
}
/*
...
...
@@ -179,7 +169,7 @@ static inline void _raw_spin_unlock(spinlock_t *lock)
*/
typedef
struct
{
volatile
int
lock
;
#if
SPINLOCK_DEBUG
#if
def CONFIG_DEBUG_SPINLOCK
unsigned
magic
;
#endif
#ifdef CONFIG_PREEMPT
...
...
@@ -189,7 +179,7 @@ typedef struct {
#define RWLOCK_MAGIC 0xdeaf1eed
#if
SPINLOCK_DEBUG
#if
def CONFIG_DEBUG_SPINLOCK
#define RWLOCK_MAGIC_INIT , RWLOCK_MAGIC
#else
#define RWLOCK_MAGIC_INIT
/* */
...
...
@@ -199,6 +189,18 @@ typedef struct {
#define rwlock_init(x) do { *(x) = RW_LOCK_UNLOCKED; } while(0)
/**
* read_can_lock - would read_trylock() succeed?
* @lock: the rwlock in question.
*/
#define read_can_lock(x) ((int)(x)->lock > 0)
/**
* write_can_lock - would write_trylock() succeed?
* @lock: the rwlock in question.
*/
#define write_can_lock(x) ((x)->lock == RW_LOCK_BIAS)
/*
* On x86, we implement read-write locks as a 32-bit counter
* with the high bit (sign) being the "contended" bit.
...
...
@@ -214,7 +216,7 @@ static inline void _raw_read_lock(rwlock_t *rw)
{
unsigned
long
tmp0
,
tmp1
;
#if
SPINLOCK_DEBUG
#if
def CONFIG_DEBUG_SPINLOCK
BUG_ON
(
rw
->
magic
!=
RWLOCK_MAGIC
);
#endif
/*
...
...
@@ -268,7 +270,7 @@ static inline void _raw_write_lock(rwlock_t *rw)
{
unsigned
long
tmp0
,
tmp1
,
tmp2
;
#if
SPINLOCK_DEBUG
#if
def CONFIG_DEBUG_SPINLOCK
BUG_ON
(
rw
->
magic
!=
RWLOCK_MAGIC
);
#endif
/*
...
...
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