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
bbb644a2
Commit
bbb644a2
authored
Jun 04, 2004
by
David S. Miller
Committed by
David S. Miller
Jun 04, 2004
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6
parents
c0f100c2
e1900a19
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
11 deletions
+19
-11
arch/arm/mm/fault.c
arch/arm/mm/fault.c
+1
-1
arch/arm/mm/mmap.c
arch/arm/mm/mmap.c
+1
-1
drivers/pcmcia/ds.c
drivers/pcmcia/ds.c
+9
-8
include/asm-arm/pgtable.h
include/asm-arm/pgtable.h
+7
-0
include/asm-ppc/spinlock.h
include/asm-ppc/spinlock.h
+1
-1
No files found.
arch/arm/mm/fault.c
View file @
bbb644a2
...
...
@@ -348,7 +348,7 @@ do_translation_fault(unsigned long addr, unsigned int fsr,
if
(
pmd_none
(
*
pmd_k
))
goto
bad_area
;
set_pmd
(
pmd
,
*
pmd_k
);
copy_pmd
(
pmd
,
pmd_k
);
return
0
;
bad_area:
...
...
arch/arm/mm/mmap.c
View file @
bbb644a2
...
...
@@ -40,7 +40,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
*/
cache_type
=
read_cpuid
(
CPUID_CACHETYPE
);
if
(
cache_type
!=
read_cpuid
(
CPUID_ID
))
{
aliasing
=
(
cache_type
|
cache_type
>>
12
)
&
(
1
<<
9
);
aliasing
=
(
cache_type
|
cache_type
>>
12
)
&
(
1
<<
11
);
if
(
aliasing
)
do_align
=
filp
||
flags
&
MAP_SHARED
;
}
...
...
drivers/pcmcia/ds.c
View file @
bbb644a2
...
...
@@ -797,7 +797,7 @@ static int ds_release(struct inode *inode, struct file *file)
/*====================================================================*/
static
ssize_t
ds_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_t
ds_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
pcmcia_bus_socket
*
s
;
...
...
@@ -819,14 +819,14 @@ static ssize_t ds_read(struct file *file, char *buf,
ret
=
wait_event_interruptible
(
s
->
queue
,
!
queue_empty
(
user
));
if
(
ret
==
0
)
ret
=
put_user
(
get_queued_event
(
user
),
(
int
*
)
buf
)
?
-
EFAULT
:
4
;
ret
=
put_user
(
get_queued_event
(
user
),
(
int
__user
*
)
buf
)
?
-
EFAULT
:
4
;
return
ret
;
}
/* ds_read */
/*====================================================================*/
static
ssize_t
ds_write
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
ds_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
pcmcia_bus_socket
*
s
;
...
...
@@ -849,7 +849,7 @@ static ssize_t ds_write(struct file *file, const char *buf,
if
(
s
->
req_pending
)
{
s
->
req_pending
--
;
get_user
(
s
->
req_result
,
(
int
*
)
buf
);
get_user
(
s
->
req_result
,
(
int
__user
*
)
buf
);
if
((
s
->
req_result
!=
0
)
||
(
s
->
req_pending
==
0
))
wake_up_interruptible
(
&
s
->
request
);
}
else
...
...
@@ -888,6 +888,7 @@ static int ds_ioctl(struct inode * inode, struct file * file,
u_int
cmd
,
u_long
arg
)
{
struct
pcmcia_bus_socket
*
s
;
void
__user
*
uarg
=
(
char
__user
*
)
arg
;
u_int
size
;
int
ret
,
err
;
ds_ioctl_arg_t
buf
;
...
...
@@ -911,14 +912,14 @@ static int ds_ioctl(struct inode * inode, struct file * file,
return
-
EPERM
;
if
(
cmd
&
IOC_IN
)
{
err
=
verify_area
(
VERIFY_READ
,
(
char
*
)
arg
,
size
);
err
=
verify_area
(
VERIFY_READ
,
u
arg
,
size
);
if
(
err
)
{
ds_dbg
(
3
,
"ds_ioctl(): verify_read = %d
\n
"
,
err
);
return
err
;
}
}
if
(
cmd
&
IOC_OUT
)
{
err
=
verify_area
(
VERIFY_WRITE
,
(
char
*
)
arg
,
size
);
err
=
verify_area
(
VERIFY_WRITE
,
u
arg
,
size
);
if
(
err
)
{
ds_dbg
(
3
,
"ds_ioctl(): verify_write = %d
\n
"
,
err
);
return
err
;
...
...
@@ -927,7 +928,7 @@ static int ds_ioctl(struct inode * inode, struct file * file,
err
=
ret
=
0
;
if
(
cmd
&
IOC_IN
)
__copy_from_user
((
char
*
)
&
buf
,
(
char
*
)
arg
,
size
);
if
(
cmd
&
IOC_IN
)
__copy_from_user
((
char
*
)
&
buf
,
u
arg
,
size
);
switch
(
cmd
)
{
case
DS_ADJUST_RESOURCE_INFO
:
...
...
@@ -1042,7 +1043,7 @@ static int ds_ioctl(struct inode * inode, struct file * file,
}
}
if
(
cmd
&
IOC_OUT
)
__copy_to_user
(
(
char
*
)
arg
,
(
char
*
)
&
buf
,
size
);
if
(
cmd
&
IOC_OUT
)
__copy_to_user
(
u
arg
,
(
char
*
)
&
buf
,
size
);
return
err
;
}
/* ds_ioctl */
...
...
include/asm-arm/pgtable.h
View file @
bbb644a2
...
...
@@ -312,6 +312,13 @@ PTE_BIT_FUNC(mkyoung, |= L_PTE_YOUNG);
flush_pmd_entry(pmdp); \
} while (0)
#define copy_pmd(pmdpd,pmdps) \
do { \
pmdpd[0] = pmdps[0]; \
pmdpd[1] = pmdps[1]; \
flush_pmd_entry(pmdpd); \
} while (0)
#define pmd_clear(pmdp) \
do { \
pmdp[0] = __pmd(0); \
...
...
include/asm-ppc/spinlock.h
View file @
bbb644a2
...
...
@@ -140,7 +140,7 @@ static __inline__ int _raw_write_trylock(rwlock_t *rw)
unsigned
int
tmp
;
__asm__
__volatile__
(
"2: lwarx %0,0,%1
\n
\
# write_trylock
\n
\
"2: lwarx %0,0,%1
# write_trylock
\n
\
cmpwi 0,%0,0
\n
\
bne- 1f
\n
"
PPC405_ERR77
(
0
,
%
1
)
...
...
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