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
87f71ebb
Commit
87f71ebb
authored
Nov 07, 2002
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] page zero is not mapped on m68knommu
parent
57e1a9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/char/mem.c
drivers/char/mem.c
+3
-3
No files found.
drivers/char/mem.c
View file @
87f71ebb
...
@@ -49,7 +49,7 @@ static ssize_t do_write_mem(struct file * file, void *p, unsigned long realp,
...
@@ -49,7 +49,7 @@ static ssize_t do_write_mem(struct file * file, void *p, unsigned long realp,
ssize_t
written
;
ssize_t
written
;
written
=
0
;
written
=
0
;
#if defined(__sparc__) ||
defined(__mc68000__
)
#if defined(__sparc__) ||
(defined(__mc68000__) && defined(CONFIG_MMU)
)
/* we don't have page 0 mapped on sparc and m68k.. */
/* we don't have page 0 mapped on sparc and m68k.. */
if
(
realp
<
PAGE_SIZE
)
{
if
(
realp
<
PAGE_SIZE
)
{
unsigned
long
sz
=
PAGE_SIZE
-
realp
;
unsigned
long
sz
=
PAGE_SIZE
-
realp
;
...
@@ -86,7 +86,7 @@ static ssize_t read_mem(struct file * file, char * buf,
...
@@ -86,7 +86,7 @@ static ssize_t read_mem(struct file * file, char * buf,
if
(
count
>
end_mem
-
p
)
if
(
count
>
end_mem
-
p
)
count
=
end_mem
-
p
;
count
=
end_mem
-
p
;
read
=
0
;
read
=
0
;
#if defined(__sparc__) ||
defined(__mc68000__
)
#if defined(__sparc__) ||
(defined(__mc68000__) && defined(CONFIG_MMU)
)
/* we don't have page 0 mapped on sparc and m68k.. */
/* we don't have page 0 mapped on sparc and m68k.. */
if
(
p
<
PAGE_SIZE
)
{
if
(
p
<
PAGE_SIZE
)
{
unsigned
long
sz
=
PAGE_SIZE
-
p
;
unsigned
long
sz
=
PAGE_SIZE
-
p
;
...
@@ -229,7 +229,7 @@ static ssize_t read_kmem(struct file *file, char *buf,
...
@@ -229,7 +229,7 @@ static ssize_t read_kmem(struct file *file, char *buf,
if
(
count
>
(
unsigned
long
)
high_memory
-
p
)
if
(
count
>
(
unsigned
long
)
high_memory
-
p
)
read
=
(
unsigned
long
)
high_memory
-
p
;
read
=
(
unsigned
long
)
high_memory
-
p
;
#if defined(__sparc__) ||
defined(__mc68000__
)
#if defined(__sparc__) ||
(defined(__mc68000__) && defined(CONFIG_MMU)
)
/* we don't have page 0 mapped on sparc and m68k.. */
/* we don't have page 0 mapped on sparc and m68k.. */
if
(
p
<
PAGE_SIZE
&&
read
>
0
)
{
if
(
p
<
PAGE_SIZE
&&
read
>
0
)
{
size_t
tmp
=
PAGE_SIZE
-
p
;
size_t
tmp
=
PAGE_SIZE
-
p
;
...
...
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