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
0b021260
Commit
0b021260
authored
Jul 16, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
parents
703d8dae
ff97c0a4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
34 deletions
+40
-34
arch/sparc64/kernel/head.S
arch/sparc64/kernel/head.S
+3
-2
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+10
-15
arch/sparc64/mm/init.c
arch/sparc64/mm/init.c
+0
-2
arch/sparc64/prom/bootstr.c
arch/sparc64/prom/bootstr.c
+13
-7
drivers/input/keyboard/sunkbd.c
drivers/input/keyboard/sunkbd.c
+2
-2
drivers/serial/sunsu.c
drivers/serial/sunsu.c
+6
-3
drivers/serial/sunzilog.c
drivers/serial/sunzilog.c
+6
-3
No files found.
arch/sparc64/kernel/head.S
View file @
0b021260
...
...
@@ -66,7 +66,7 @@ sparc_ramdisk_image:
sparc_ramdisk_size
:
.
word
0
.
xword
reboot_command
.
xword
bootstr_
len
.
xword
bootstr_
info
.
word
_end
/
*
We
must
be
careful
,
32
-
bit
OpenBOOT
will
get
confused
if
it
...
...
@@ -740,8 +740,9 @@ swapper_pg_dir:
.
data
.
align
8
.
globl
prom_tba
.
globl
prom_tba
,
tlb_type
prom_tba
:
.
xword
0
tlb_type
:
.
word
0
/*
Must
NOT
end
up
in
BSS
*/
.
section
".fixup"
,#
alloc
,#
execinstr
.
globl
__ret_efault
__ret_efault
:
...
...
arch/sparc64/kernel/pci.c
View file @
0b021260
...
...
@@ -804,13 +804,11 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
/* Return the domain nuber for this pci bus */
int
pci_domain_nr
(
struct
pci_bus
*
bus
)
int
pci_domain_nr
(
struct
pci_bus
*
p
bus
)
{
struct
pci
dev_cookie
*
cookie
=
bus
->
sysdata
;
struct
pci
_pbm_info
*
pbm
=
p
bus
->
sysdata
;
int
ret
;
if
(
cookie
!=
NULL
)
{
struct
pci_pbm_info
*
pbm
=
cookie
->
pbm
;
if
(
pbm
==
NULL
||
pbm
->
parent
==
NULL
)
{
ret
=
-
ENXIO
;
}
else
{
...
...
@@ -821,9 +819,6 @@ int pci_domain_nr(struct pci_bus *bus)
ret
=
((
ret
<<
1
)
+
((
pbm
==
&
pbm
->
parent
->
pbm_B
)
?
1
:
0
));
}
}
else
{
ret
=
-
ENXIO
;
}
return
ret
;
}
...
...
arch/sparc64/mm/init.c
View file @
0b021260
...
...
@@ -48,8 +48,6 @@ unsigned long *sparc64_valid_addr_bitmap;
unsigned
long
phys_base
;
unsigned
long
pfn_base
;
enum
ultra_tlb_layout
tlb_type
=
spitfire
;
/* get_new_mmu_context() uses "cache + 1". */
spinlock_t
ctx_alloc_lock
=
SPIN_LOCK_UNLOCKED
;
unsigned
long
tlb_context_cache
=
CTX_FIRST_VERSION
-
1
;
...
...
arch/sparc64/prom/bootstr.c
View file @
0b021260
...
...
@@ -15,16 +15,22 @@
*/
#define BARG_LEN 256
int
bootstr_len
=
BARG_LEN
;
static
int
bootstr_valid
=
0
;
static
char
bootstr_buf
[
BARG_LEN
]
=
{
0
};
struct
{
int
bootstr_len
;
int
bootstr_valid
;
char
bootstr_buf
[
BARG_LEN
];
}
bootstr_info
=
{
.
bootstr_len
=
BARG_LEN
,
};
char
*
__init
prom_getbootargs
(
void
)
{
/* This check saves us from a panic when bootfd patches args. */
if
(
bootstr_valid
)
return
bootstr_buf
;
prom_getstring
(
prom_chosen_node
,
"bootargs"
,
bootstr_buf
,
BARG_LEN
);
bootstr_valid
=
1
;
return
bootstr_buf
;
if
(
bootstr_info
.
bootstr_valid
)
return
bootstr_info
.
bootstr_buf
;
prom_getstring
(
prom_chosen_node
,
"bootargs"
,
bootstr_info
.
bootstr_buf
,
BARG_LEN
);
bootstr_info
.
bootstr_valid
=
1
;
return
bootstr_info
.
bootstr_buf
;
}
drivers/input/keyboard/sunkbd.c
View file @
0b021260
...
...
@@ -80,8 +80,8 @@ struct sunkbd {
char
name
[
64
];
char
phys
[
32
];
char
type
;
char
reset
;
char
layout
;
volatile
char
reset
;
volatile
char
layout
;
};
/*
...
...
drivers/serial/sunsu.c
View file @
0b021260
...
...
@@ -102,6 +102,7 @@ struct uart_sunsu_port {
int
l1_down
;
#ifdef CONFIG_SERIO
struct
serio
serio
;
int
serio_open
;
#endif
};
...
...
@@ -1021,12 +1022,13 @@ static int sunsu_serio_write(struct serio *serio, unsigned char ch)
static
int
sunsu_serio_open
(
struct
serio
*
serio
)
{
struct
uart_sunsu_port
*
up
=
serio
->
driver
;
unsigned
long
flags
;
int
ret
;
spin_lock_irqsave
(
&
sunsu_serio_lock
,
flags
);
if
(
serio
->
private
==
NULL
)
{
serio
->
private
=
(
void
*
)
-
1L
;
if
(
!
up
->
serio_open
)
{
up
->
serio_open
=
1
;
ret
=
0
;
}
else
ret
=
-
EBUSY
;
...
...
@@ -1037,10 +1039,11 @@ static int sunsu_serio_open(struct serio *serio)
static
void
sunsu_serio_close
(
struct
serio
*
serio
)
{
struct
uart_sunsu_port
*
up
=
serio
->
driver
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
sunsu_serio_lock
,
flags
);
serio
->
private
=
NULL
;
up
->
serio_open
=
0
;
spin_unlock_irqrestore
(
&
sunsu_serio_lock
,
flags
);
}
...
...
drivers/serial/sunzilog.c
View file @
0b021260
...
...
@@ -112,6 +112,7 @@ struct uart_sunzilog_port {
#ifdef CONFIG_SERIO
struct
serio
serio
;
int
serio_open
;
#endif
};
...
...
@@ -1311,12 +1312,13 @@ static int sunzilog_serio_write(struct serio *serio, unsigned char ch)
static
int
sunzilog_serio_open
(
struct
serio
*
serio
)
{
struct
uart_sunzilog_port
*
up
=
serio
->
driver
;
unsigned
long
flags
;
int
ret
;
spin_lock_irqsave
(
&
sunzilog_serio_lock
,
flags
);
if
(
serio
->
private
==
NULL
)
{
serio
->
private
=
(
void
*
)
-
1L
;
if
(
!
up
->
serio_open
)
{
up
->
serio_open
=
1
;
ret
=
0
;
}
else
ret
=
-
EBUSY
;
...
...
@@ -1327,10 +1329,11 @@ static int sunzilog_serio_open(struct serio *serio)
static
void
sunzilog_serio_close
(
struct
serio
*
serio
)
{
struct
uart_sunzilog_port
*
up
=
serio
->
driver
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
sunzilog_serio_lock
,
flags
);
serio
->
private
=
NULL
;
up
->
serio_open
=
0
;
spin_unlock_irqrestore
(
&
sunzilog_serio_lock
,
flags
);
}
...
...
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