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
Kirill Smelkov
linux
Commits
cacf6489
Commit
cacf6489
authored
Apr 21, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5
parents
68d8610f
0134a608
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
119 additions
and
44 deletions
+119
-44
arch/sparc/kernel/pcic.c
arch/sparc/kernel/pcic.c
+17
-3
arch/sparc/kernel/time.c
arch/sparc/kernel/time.c
+24
-5
arch/sparc64/defconfig
arch/sparc64/defconfig
+24
-1
arch/sparc64/kernel/chmc.c
arch/sparc64/kernel/chmc.c
+1
-1
arch/sparc64/kernel/entry.S
arch/sparc64/kernel/entry.S
+1
-1
arch/sparc64/kernel/head.S
arch/sparc64/kernel/head.S
+1
-1
arch/sparc64/kernel/ioctl32.c
arch/sparc64/kernel/ioctl32.c
+3
-1
arch/sparc64/kernel/pci_common.c
arch/sparc64/kernel/pci_common.c
+1
-1
arch/sparc64/kernel/pci_psycho.c
arch/sparc64/kernel/pci_psycho.c
+1
-1
arch/sparc64/kernel/ptrace.c
arch/sparc64/kernel/ptrace.c
+1
-1
arch/sparc64/kernel/rtrap.S
arch/sparc64/kernel/rtrap.S
+1
-1
arch/sparc64/kernel/sbus.c
arch/sparc64/kernel/sbus.c
+2
-2
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+2
-2
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+24
-7
arch/sparc64/kernel/trampoline.S
arch/sparc64/kernel/trampoline.S
+1
-1
arch/sparc64/prom/printf.c
arch/sparc64/prom/printf.c
+1
-1
arch/sparc64/solaris/misc.c
arch/sparc64/solaris/misc.c
+1
-1
include/asm-sparc64/asi.h
include/asm-sparc64/asi.h
+2
-2
include/asm-sparc64/bpp.h
include/asm-sparc64/bpp.h
+1
-1
include/asm-sparc64/chafsr.h
include/asm-sparc64/chafsr.h
+2
-2
include/asm-sparc64/estate.h
include/asm-sparc64/estate.h
+2
-2
include/asm-sparc64/ns87303.h
include/asm-sparc64/ns87303.h
+2
-2
include/asm-sparc64/pci.h
include/asm-sparc64/pci.h
+2
-2
include/asm-sparc64/svr4.h
include/asm-sparc64/svr4.h
+1
-1
include/asm-sparc64/upa.h
include/asm-sparc64/upa.h
+1
-1
No files found.
arch/sparc/kernel/pcic.c
View file @
cacf6489
...
@@ -828,13 +828,27 @@ static void pci_do_settimeofday(struct timeval *tv)
...
@@ -828,13 +828,27 @@ static void pci_do_settimeofday(struct timeval *tv)
* made, and then undo it!
* made, and then undo it!
*/
*/
tv
->
tv_usec
-=
do_gettimeoffset
();
tv
->
tv_usec
-=
do_gettimeoffset
();
tv
->
tv_usec
-=
(
jiffies
-
wall_jiffies
)
*
(
1000000
/
HZ
);
tv
->
tv_usec
-=
(
jiffies
-
wall_jiffies
)
*
(
USEC_PER_SEC
/
HZ
);
while
(
tv
->
tv_usec
<
0
)
{
while
(
tv
->
tv_usec
<
0
)
{
tv
->
tv_usec
+=
1000000
;
tv
->
tv_usec
+=
USEC_PER_SEC
;
tv
->
tv_sec
--
;
tv
->
tv_sec
--
;
}
}
tv
->
tv_usec
*=
NSEC_PER_USEC
;
wall_to_monotonic
.
tv_sec
+=
xtime
.
tv_sec
-
tv
->
tv_sec
;
wall_to_monotonic
.
tv_nsec
+=
xtime
.
tv_nsec
-
tv
->
tv_usec
;
if
(
wall_to_monotonic
.
tv_nsec
>
NSEC_PER_SEC
)
{
wall_to_monotonic
.
tv_nsec
-=
NSEC_PER_SEC
;
wall_to_monotonic
.
tv_sec
++
;
}
if
(
wall_to_monotonic
.
tv_nsec
<
0
)
{
wall_to_monotonic
.
tv_nsec
+=
NSEC_PER_SEC
;
wall_to_monotonic
.
tv_sec
--
;
}
xtime
.
tv_sec
=
tv
->
tv_sec
;
xtime
.
tv_sec
=
tv
->
tv_sec
;
xtime
.
tv_nsec
=
(
tv
->
tv_usec
*
1000
)
;
xtime
.
tv_nsec
=
tv
->
tv_usec
;
time_adjust
=
0
;
/* stop active adjtime() */
time_adjust
=
0
;
/* stop active adjtime() */
time_status
|=
STA_UNSYNC
;
time_status
|=
STA_UNSYNC
;
time_maxerror
=
NTP_PHASE_LIMIT
;
time_maxerror
=
NTP_PHASE_LIMIT
;
...
...
arch/sparc/kernel/time.c
View file @
cacf6489
...
@@ -408,7 +408,9 @@ void __init sbus_time_init(void)
...
@@ -408,7 +408,9 @@ void __init sbus_time_init(void)
mon
=
MSTK_REG_MONTH
(
mregs
);
mon
=
MSTK_REG_MONTH
(
mregs
);
year
=
MSTK_CVT_YEAR
(
MSTK_REG_YEAR
(
mregs
)
);
year
=
MSTK_CVT_YEAR
(
MSTK_REG_YEAR
(
mregs
)
);
xtime
.
tv_sec
=
mktime
(
year
,
mon
,
day
,
hour
,
min
,
sec
);
xtime
.
tv_sec
=
mktime
(
year
,
mon
,
day
,
hour
,
min
,
sec
);
xtime
.
tv_nsec
=
0
;
wall_to_monotonic
.
tv_sec
=
-
xtime
.
tv_sec
+
INITIAL_JIFFIES
/
HZ
;
xtime
.
tv_nsec
=
(
INITIAL_JIFFIES
%
HZ
)
*
(
NSEC_PER_SEC
/
HZ
);
wall_to_monotonic
.
tv_nsec
=
0
;
mregs
->
creg
&=
~
MSTK_CREG_READ
;
mregs
->
creg
&=
~
MSTK_CREG_READ
;
spin_unlock_irq
(
&
mostek_lock
);
spin_unlock_irq
(
&
mostek_lock
);
#ifdef CONFIG_SUN4
#ifdef CONFIG_SUN4
...
@@ -439,7 +441,9 @@ void __init sbus_time_init(void)
...
@@ -439,7 +441,9 @@ void __init sbus_time_init(void)
intersil_start
(
iregs
);
intersil_start
(
iregs
);
xtime
.
tv_sec
=
mktime
(
year
,
mon
,
day
,
hour
,
min
,
sec
);
xtime
.
tv_sec
=
mktime
(
year
,
mon
,
day
,
hour
,
min
,
sec
);
xtime
.
tv_nsec
=
0
;
wall_to_monotonic
.
tv_sec
=
-
xtime
.
tv_sec
+
INITIAL_JIFFIES
/
HZ
;
xtime
.
tv_nsec
=
(
INITIAL_JIFFIES
%
HZ
)
*
(
NSEC_PER_SEC
/
HZ
);
wall_to_monotonic
.
tv_nsec
=
0
;
printk
(
"%u/%u/%u %u:%u:%u
\n
"
,
day
,
mon
,
year
,
hour
,
min
,
sec
);
printk
(
"%u/%u/%u %u:%u:%u
\n
"
,
day
,
mon
,
year
,
hour
,
min
,
sec
);
}
}
#endif
#endif
...
@@ -512,13 +516,28 @@ static void sbus_do_settimeofday(struct timeval *tv)
...
@@ -512,13 +516,28 @@ static void sbus_do_settimeofday(struct timeval *tv)
* made, and then undo it!
* made, and then undo it!
*/
*/
tv
->
tv_usec
-=
do_gettimeoffset
();
tv
->
tv_usec
-=
do_gettimeoffset
();
tv
->
tv_usec
-=
(
jiffies
-
wall_jiffies
)
*
(
1000000
/
HZ
);
tv
->
tv_usec
-=
(
jiffies
-
wall_jiffies
)
*
(
USEC_PER_SEC
/
HZ
);
while
(
tv
->
tv_usec
<
0
)
{
while
(
tv
->
tv_usec
<
0
)
{
tv
->
tv_usec
+=
1000000
;
tv
->
tv_usec
+=
USEC_PER_SEC
;
tv
->
tv_sec
--
;
tv
->
tv_sec
--
;
}
}
tv
->
tv_usec
*=
NSEC_PER_USEC
;
wall_to_monotonic
.
tv_sec
+=
xtime
.
tv_sec
-
tv
->
tv_sec
;
wall_to_monotonic
.
tv_nsec
+=
xtime
.
tv_nsec
-
tv
->
tv_usec
;
if
(
wall_to_monotonic
.
tv_nsec
>
NSEC_PER_SEC
)
{
wall_to_monotonic
.
tv_nsec
-=
NSEC_PER_SEC
;
wall_to_monotonic
.
tv_sec
++
;
}
if
(
wall_to_monotonic
.
tv_nsec
<
0
)
{
wall_to_monotonic
.
tv_nsec
+=
NSEC_PER_SEC
;
wall_to_monotonic
.
tv_sec
--
;
}
xtime
.
tv_sec
=
tv
->
tv_sec
;
xtime
.
tv_sec
=
tv
->
tv_sec
;
xtime
.
tv_nsec
=
(
tv
->
tv_usec
*
1000
)
;
xtime
.
tv_nsec
=
tv
->
tv_usec
;
time_adjust
=
0
;
/* stop active adjtime() */
time_adjust
=
0
;
/* stop active adjtime() */
time_status
|=
STA_UNSYNC
;
time_status
|=
STA_UNSYNC
;
time_maxerror
=
NTP_PHASE_LIMIT
;
time_maxerror
=
NTP_PHASE_LIMIT
;
...
...
arch/sparc64/defconfig
View file @
cacf6489
...
@@ -334,7 +334,30 @@ CONFIG_FUSION_LAN=m
...
@@ -334,7 +334,30 @@ CONFIG_FUSION_LAN=m
#
#
# IEEE 1394 (FireWire) support (EXPERIMENTAL)
# IEEE 1394 (FireWire) support (EXPERIMENTAL)
#
#
# CONFIG_IEEE1394 is not set
CONFIG_IEEE1394=m
#
# Subsystem Options
#
# CONFIG_IEEE1394_VERBOSEDEBUG is not set
CONFIG_IEEE1394_OUI_DB=y
#
# Device Drivers
#
CONFIG_IEEE1394_OHCI1394=m
#
# Protocol Drivers
#
CONFIG_IEEE1394_VIDEO1394=m
CONFIG_IEEE1394_SBP2=m
# CONFIG_IEEE1394_SBP2_PHYS_DMA is not set
CONFIG_IEEE1394_ETH1394=m
CONFIG_IEEE1394_DV1394=m
CONFIG_IEEE1394_RAWIO=m
CONFIG_IEEE1394_CMP=m
CONFIG_IEEE1394_AMDTP=m
#
#
# Networking support
# Networking support
...
...
arch/sparc64/kernel/chmc.c
View file @
cacf6489
...
@@ -224,7 +224,7 @@ int chmc_getunumber(int syndrome_code,
...
@@ -224,7 +224,7 @@ int chmc_getunumber(int syndrome_code,
int
dimm
;
int
dimm
;
/* Multi-bit error, we just dump out all the
/* Multi-bit error, we just dump out all the
* dimm labels asso
s
ciated with this bank.
* dimm labels associated with this bank.
*/
*/
for
(
dimm
=
0
;
dimm
<
CHMCTRL_NDIMMS
;
dimm
++
)
{
for
(
dimm
=
0
;
dimm
<
CHMCTRL_NDIMMS
;
dimm
++
)
{
sprintf
(
buf
,
"%s "
,
sprintf
(
buf
,
"%s "
,
...
...
arch/sparc64/kernel/entry.S
View file @
cacf6489
...
@@ -1264,7 +1264,7 @@ dcpe_icpe_tl1_common:
...
@@ -1264,7 +1264,7 @@ dcpe_icpe_tl1_common:
*
because
corrupt
data
may
have
been
placed
there
and
we
don
't
*
because
corrupt
data
may
have
been
placed
there
and
we
don
't
*
want
to
reference
it
.
*
want
to
reference
it
.
*
*
*
%
g1
is
one
if
this
trap
occured
at
%
tl
>=
1
.
*
%
g1
is
one
if
this
trap
occur
r
ed
at
%
tl
>=
1
.
*
*
*
Next
,
we
turn
off
error
reporting
so
that
we
don
't recurse.
*
Next
,
we
turn
off
error
reporting
so
that
we
don
't recurse.
*/
*/
...
...
arch/sparc64/kernel/head.S
View file @
cacf6489
...
@@ -84,7 +84,7 @@ sparc64_boot:
...
@@ -84,7 +84,7 @@ sparc64_boot:
nop
nop
cheetah_plus_boot
:
cheetah_plus_boot
:
/
*
Preserve
OBP
cho
o
sen
DCU
and
DCR
register
settings
.
*/
/
*
Preserve
OBP
chosen
DCU
and
DCR
register
settings
.
*/
ba
,
pt
%
xcc
,
cheetah_generic_boot
ba
,
pt
%
xcc
,
cheetah_generic_boot
nop
nop
...
...
arch/sparc64/kernel/ioctl32.c
View file @
cacf6489
...
@@ -3137,7 +3137,7 @@ typedef struct drm32_dma {
...
@@ -3137,7 +3137,7 @@ typedef struct drm32_dma {
#define DRM32_IOCTL_DMA DRM_IOWR(0x29, drm32_dma_t)
#define DRM32_IOCTL_DMA DRM_IOWR(0x29, drm32_dma_t)
/* RED PEN The DRM layer blindly dereferences the send/request
/* RED PEN The DRM layer blindly dereferences the send/request
* ind
ice
/size arrays even though they are userland
* ind
ex
/size arrays even though they are userland
* pointers. -DaveM
* pointers. -DaveM
*/
*/
static
int
drm32_dma
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
int
drm32_dma
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
...
@@ -4243,6 +4243,8 @@ COMPATIBLE_IOCTL(DVD_AUTH)
...
@@ -4243,6 +4243,8 @@ COMPATIBLE_IOCTL(DVD_AUTH)
/* Big L */
/* Big L */
COMPATIBLE_IOCTL
(
LOOP_SET_FD
)
COMPATIBLE_IOCTL
(
LOOP_SET_FD
)
COMPATIBLE_IOCTL
(
LOOP_CLR_FD
)
COMPATIBLE_IOCTL
(
LOOP_CLR_FD
)
COMPATIBLE_IOCTL
(
LOOP_SET_STATUS64
)
COMPATIBLE_IOCTL
(
LOOP_GET_STATUS64
)
/* Big A */
/* Big A */
COMPATIBLE_IOCTL
(
AUDIO_GETINFO
)
COMPATIBLE_IOCTL
(
AUDIO_GETINFO
)
COMPATIBLE_IOCTL
(
AUDIO_SETINFO
)
COMPATIBLE_IOCTL
(
AUDIO_SETINFO
)
...
...
arch/sparc64/kernel/pci_common.c
View file @
cacf6489
...
@@ -145,7 +145,7 @@ static void __init pdev_cookie_fillin(struct pci_pbm_info *pbm,
...
@@ -145,7 +145,7 @@ static void __init pdev_cookie_fillin(struct pci_pbm_info *pbm,
* there must be a damn good reason for it.
* there must be a damn good reason for it.
*
*
* So what we do is delete the device from the
* So what we do is delete the device from the
* PCI device tree completely. This scen
e
rio
* PCI device tree completely. This scen
a
rio
* is seen, for example, on CP1500 for the
* is seen, for example, on CP1500 for the
* second EBUS/HappyMeal pair if the external
* second EBUS/HappyMeal pair if the external
* connector for it is not present.
* connector for it is not present.
...
...
arch/sparc64/kernel/pci_psycho.c
View file @
cacf6489
...
@@ -854,7 +854,7 @@ static irqreturn_t psycho_ce_intr(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -854,7 +854,7 @@ static irqreturn_t psycho_ce_intr(int irq, void *dev_id, struct pt_regs *regs)
}
}
/* PCI Errors. They are signalled by the PCI bus module since they
/* PCI Errors. They are signalled by the PCI bus module since they
* are asso
s
ciated with a specific bus segment.
* are associated with a specific bus segment.
*/
*/
#define PSYCHO_PCI_AFSR_A 0x2010UL
#define PSYCHO_PCI_AFSR_A 0x2010UL
#define PSYCHO_PCI_AFSR_B 0x4010UL
#define PSYCHO_PCI_AFSR_B 0x4010UL
...
...
arch/sparc64/kernel/ptrace.c
View file @
cacf6489
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Based upon code written by Ross Biro, Linus Torvalds, Bob Manson,
* Based upon code written by Ross Biro, Linus Torvalds, Bob Manson,
* and David Mosberger.
* and David Mosberger.
*
*
* Added Linux support -miguel (weird, eh?, the orignal code was meant
* Added Linux support -miguel (weird, eh?, the orig
i
nal code was meant
* to emulate SunOS).
* to emulate SunOS).
*/
*/
...
...
arch/sparc64/kernel/rtrap.S
View file @
cacf6489
...
@@ -210,7 +210,7 @@ __handle_user_windows_continue:
...
@@ -210,7 +210,7 @@ __handle_user_windows_continue:
__handle_perfctrs_continue
:
__handle_perfctrs_continue
:
andcc
%
l1
,
%
o0
,
%
g0
andcc
%
l1
,
%
o0
,
%
g0
/
*
This
fpdepth
clear
is
nec
c
essary
for
non
-
syscall
rtraps
only
*/
/
*
This
fpdepth
clear
is
necessary
for
non
-
syscall
rtraps
only
*/
user_nowork
:
user_nowork
:
bne
,
pn
%
xcc
,
__handle_userfpu
bne
,
pn
%
xcc
,
__handle_userfpu
stb
%
g0
,
[%
g6
+
TI_FPDEPTH
]
stb
%
g0
,
[%
g6
+
TI_FPDEPTH
]
...
...
arch/sparc64/kernel/sbus.c
View file @
cacf6489
...
@@ -728,7 +728,7 @@ static unsigned long sysio_irq_offsets[] = {
...
@@ -728,7 +728,7 @@ static unsigned long sysio_irq_offsets[] = {
#define NUM_SYSIO_OFFSETS (sizeof(sysio_irq_offsets) / sizeof(sysio_irq_offsets[0]))
#define NUM_SYSIO_OFFSETS (sizeof(sysio_irq_offsets) / sizeof(sysio_irq_offsets[0]))
/* Convert Interrupt Mapping register pointer to asso
s
ciated
/* Convert Interrupt Mapping register pointer to associated
* Interrupt Clear register pointer, SYSIO specific version.
* Interrupt Clear register pointer, SYSIO specific version.
*/
*/
#define SYSIO_ICLR_UNUSED0 0x3400UL
#define SYSIO_ICLR_UNUSED0 0x3400UL
...
@@ -1098,7 +1098,7 @@ void __init sbus_iommu_init(int prom_node, struct sbus_bus *sbus)
...
@@ -1098,7 +1098,7 @@ void __init sbus_iommu_init(int prom_node, struct sbus_bus *sbus)
prom_halt
();
prom_halt
();
}
}
/* Align on E$ line boundry. */
/* Align on E$ line bound
a
ry. */
iommu
=
(
struct
sbus_iommu
*
)
iommu
=
(
struct
sbus_iommu
*
)
(((
unsigned
long
)
iommu
+
(
SMP_CACHE_BYTES
-
1UL
))
&
(((
unsigned
long
)
iommu
+
(
SMP_CACHE_BYTES
-
1UL
))
&
~
(
SMP_CACHE_BYTES
-
1UL
));
~
(
SMP_CACHE_BYTES
-
1UL
));
...
...
arch/sparc64/kernel/smp.c
View file @
cacf6489
...
@@ -1071,7 +1071,7 @@ void smp_percpu_timer_interrupt(struct pt_regs *regs)
...
@@ -1071,7 +1071,7 @@ void smp_percpu_timer_interrupt(struct pt_regs *regs)
prof_counter
(
cpu
)
=
prof_multiplier
(
cpu
);
prof_counter
(
cpu
)
=
prof_multiplier
(
cpu
);
}
}
/* Guar
e
ntee that the following sequences execute
/* Guar
a
ntee that the following sequences execute
* uninterrupted.
* uninterrupted.
*/
*/
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
...
@@ -1096,7 +1096,7 @@ static void __init smp_setup_percpu_timer(void)
...
@@ -1096,7 +1096,7 @@ static void __init smp_setup_percpu_timer(void)
prof_counter
(
cpu
)
=
prof_multiplier
(
cpu
)
=
1
;
prof_counter
(
cpu
)
=
prof_multiplier
(
cpu
)
=
1
;
/* Guar
e
ntee that the following sequences execute
/* Guar
a
ntee that the following sequences execute
* uninterrupted.
* uninterrupted.
*/
*/
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
...
...
arch/sparc64/kernel/time.c
View file @
cacf6489
...
@@ -489,7 +489,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs * regs)
...
@@ -489,7 +489,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs * regs)
#endif
#endif
do_timer
(
regs
);
do_timer
(
regs
);
/* Guar
e
ntee that the following sequences execute
/* Guar
a
ntee that the following sequences execute
* uninterrupted.
* uninterrupted.
*/
*/
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
...
@@ -703,7 +703,9 @@ static void __init set_system_time(void)
...
@@ -703,7 +703,9 @@ static void __init set_system_time(void)
}
}
xtime
.
tv_sec
=
mktime
(
year
,
mon
,
day
,
hour
,
min
,
sec
);
xtime
.
tv_sec
=
mktime
(
year
,
mon
,
day
,
hour
,
min
,
sec
);
xtime
.
tv_nsec
=
0
;
wall_to_monotonic
.
tv_sec
=
-
xtime
.
tv_sec
+
INITIAL_JIFFIES
/
HZ
;
xtime
.
tv_nsec
=
(
INITIAL_JIFFIES
%
HZ
)
*
(
NSEC_PER_SEC
/
HZ
);
wall_to_monotonic
.
tv_nsec
=
0
;
if
(
mregs
)
{
if
(
mregs
)
{
tmp
=
mostek_read
(
mregs
+
MOSTEK_CREG
);
tmp
=
mostek_read
(
mregs
+
MOSTEK_CREG
);
...
@@ -741,7 +743,9 @@ void __init clock_probe(void)
...
@@ -741,7 +743,9 @@ void __init clock_probe(void)
(
unsigned
int
)
(
long
)
&
unix_tod
);
(
unsigned
int
)
(
long
)
&
unix_tod
);
prom_feval
(
obp_gettod
);
prom_feval
(
obp_gettod
);
xtime
.
tv_sec
=
unix_tod
;
xtime
.
tv_sec
=
unix_tod
;
xtime
.
tv_nsec
=
0
;
wall_to_monotonic
.
tv_sec
=
-
xtime
.
tv_sec
+
INITIAL_JIFFIES
/
HZ
;
xtime
.
tv_nsec
=
(
INITIAL_JIFFIES
%
HZ
)
*
(
NSEC_PER_SEC
/
HZ
);
wall_to_monotonic
.
tv_nsec
=
0
;
return
;
return
;
}
}
...
@@ -972,7 +976,7 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
...
@@ -972,7 +976,7 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
prom_halt
();
prom_halt
();
}
}
/* Guar
e
ntee that the following sequences execute
/* Guar
a
ntee that the following sequences execute
* uninterrupted.
* uninterrupted.
*/
*/
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
__asm__
__volatile__
(
"rdpr %%pstate, %0
\n\t
"
...
@@ -1097,15 +1101,28 @@ void do_settimeofday(struct timeval *tv)
...
@@ -1097,15 +1101,28 @@ void do_settimeofday(struct timeval *tv)
* made, and then undo it!
* made, and then undo it!
*/
*/
tv
->
tv_usec
-=
do_gettimeoffset
();
tv
->
tv_usec
-=
do_gettimeoffset
();
tv
->
tv_usec
-=
(
jiffies
-
wall_jiffies
)
*
(
1000000
/
HZ
);
tv
->
tv_usec
-=
(
jiffies
-
wall_jiffies
)
*
(
USEC_PER_SEC
/
HZ
);
while
(
tv
->
tv_usec
<
0
)
{
while
(
tv
->
tv_usec
<
0
)
{
tv
->
tv_usec
+=
1000000
;
tv
->
tv_usec
+=
USEC_PER_SEC
;
tv
->
tv_sec
--
;
tv
->
tv_sec
--
;
}
}
tv
->
tv_usec
*=
NSEC_PER_USEC
;
wall_to_monotonic
.
tv_sec
+=
xtime
.
tv_sec
-
tv
->
tv_sec
;
wall_to_monotonic
.
tv_nsec
+=
xtime
.
tv_nsec
-
tv
->
tv_usec
;
if
(
wall_to_monotonic
.
tv_nsec
>
NSEC_PER_SEC
)
{
wall_to_monotonic
.
tv_nsec
-=
NSEC_PER_SEC
;
wall_to_monotonic
.
tv_sec
++
;
}
if
(
wall_to_monotonic
.
tv_nsec
<
0
)
{
wall_to_monotonic
.
tv_nsec
+=
NSEC_PER_SEC
;
wall_to_monotonic
.
tv_sec
--
;
}
xtime
.
tv_sec
=
tv
->
tv_sec
;
xtime
.
tv_sec
=
tv
->
tv_sec
;
xtime
.
tv_nsec
=
(
tv
->
tv_usec
*
1000
)
;
xtime
.
tv_nsec
=
tv
->
tv_usec
;
time_adjust
=
0
;
/* stop active adjtime() */
time_adjust
=
0
;
/* stop active adjtime() */
time_status
|=
STA_UNSYNC
;
time_status
|=
STA_UNSYNC
;
time_maxerror
=
NTP_PHASE_LIMIT
;
time_maxerror
=
NTP_PHASE_LIMIT
;
...
...
arch/sparc64/kernel/trampoline.S
View file @
cacf6489
...
@@ -40,7 +40,7 @@ sparc64_cpu_startup:
...
@@ -40,7 +40,7 @@ sparc64_cpu_startup:
nop
nop
cheetah_plus_startup
:
cheetah_plus_startup
:
/
*
Preserve
OBP
cho
o
sen
DCU
and
DCR
register
settings
.
*/
/
*
Preserve
OBP
chosen
DCU
and
DCR
register
settings
.
*/
ba
,
pt
%
xcc
,
cheetah_generic_startup
ba
,
pt
%
xcc
,
cheetah_generic_startup
nop
nop
...
...
arch/sparc64/prom/printf.c
View file @
cacf6489
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Copyright (c) 2002 Pete Zaitcev (zaitcev@yahoo.com)
* Copyright (c) 2002 Pete Zaitcev (zaitcev@yahoo.com)
*
*
* We used to warn all over the code: DO NOT USE prom_printf(),
* We used to warn all over the code: DO NOT USE prom_printf(),
* and yet people do. Anton's banking code was outputing banks
* and yet people do. Anton's banking code was output
t
ing banks
* with prom_printf for most of the 2.4 lifetime. Since an effective
* with prom_printf for most of the 2.4 lifetime. Since an effective
* stick is not available, we deployed a carrot: an early printk
* stick is not available, we deployed a carrot: an early printk
* through PROM by means of -p boot option. This ought to fix it.
* through PROM by means of -p boot option. This ought to fix it.
...
...
arch/sparc64/solaris/misc.c
View file @
cacf6489
/* $Id: misc.c,v 1.36 2002/02/09 19:49:31 davem Exp $
/* $Id: misc.c,v 1.36 2002/02/09 19:49:31 davem Exp $
* misc.c: Miscelaneous syscall emulation for Solaris
* misc.c: Miscel
l
aneous syscall emulation for Solaris
*
*
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/
*/
...
...
include/asm-sparc64/asi.h
View file @
cacf6489
...
@@ -102,13 +102,13 @@
...
@@ -102,13 +102,13 @@
#define ASI_PST8_P 0xc0
/* Primary, 8 8-bit, partial */
#define ASI_PST8_P 0xc0
/* Primary, 8 8-bit, partial */
#define ASI_PST8_S 0xc1
/* Secondary, 8 8-bit, partial */
#define ASI_PST8_S 0xc1
/* Secondary, 8 8-bit, partial */
#define ASI_PST16_P 0xc2
/* Primary, 4 16-bit, partial */
#define ASI_PST16_P 0xc2
/* Primary, 4 16-bit, partial */
#define ASI_PST16_S 0xc3
/* Seconary, 4 16-bit, partial */
#define ASI_PST16_S 0xc3
/* Secon
d
ary, 4 16-bit, partial */
#define ASI_PST32_P 0xc4
/* Primary, 2 32-bit, partial */
#define ASI_PST32_P 0xc4
/* Primary, 2 32-bit, partial */
#define ASI_PST32_S 0xc5
/* Secondary, 2 32-bit, partial */
#define ASI_PST32_S 0xc5
/* Secondary, 2 32-bit, partial */
#define ASI_PST8_PL 0xc8
/* Primary, 8 8-bit, partial, little */
#define ASI_PST8_PL 0xc8
/* Primary, 8 8-bit, partial, little */
#define ASI_PST8_SL 0xc9
/* Secondary, 8 8-bit, partial, little */
#define ASI_PST8_SL 0xc9
/* Secondary, 8 8-bit, partial, little */
#define ASI_PST16_PL 0xca
/* Primary, 4 16-bit, partial, little */
#define ASI_PST16_PL 0xca
/* Primary, 4 16-bit, partial, little */
#define ASI_PST16_SL 0xcb
/* Seconary, 4 16-bit, partial, little */
#define ASI_PST16_SL 0xcb
/* Secon
d
ary, 4 16-bit, partial, little */
#define ASI_PST32_PL 0xcc
/* Primary, 2 32-bit, partial, little */
#define ASI_PST32_PL 0xcc
/* Primary, 2 32-bit, partial, little */
#define ASI_PST32_SL 0xcd
/* Secondary, 2 32-bit, partial, little */
#define ASI_PST32_SL 0xcd
/* Secondary, 2 32-bit, partial, little */
#define ASI_FL8_P 0xd0
/* Primary, 1 8-bit, fpu ld/st */
#define ASI_FL8_P 0xd0
/* Primary, 1 8-bit, fpu ld/st */
...
...
include/asm-sparc64/bpp.h
View file @
cacf6489
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
* with compliant or compatible devices. It will use whatever features
* with compliant or compatible devices. It will use whatever features
* the device supports, prefering those that are typically faster.
* the device supports, prefering those that are typically faster.
*
*
* When the device is opened, it is left in COMPAT
A
BILITY mode, and
* When the device is opened, it is left in COMPAT
I
BILITY mode, and
* writes work like any printer device. The driver only attempt to
* writes work like any printer device. The driver only attempt to
* negotiate 1284 modes when needed so that plugs can be pulled,
* negotiate 1284 modes when needed so that plugs can be pulled,
* switch boxes switched, etc., without disrupting things. It will
* switch boxes switched, etc., without disrupting things. It will
...
...
include/asm-sparc64/chafsr.h
View file @
cacf6489
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
/* Uncorrectable system bus data ECC error for read of interrupt vector */
/* Uncorrectable system bus data ECC error for read of interrupt vector */
#define CHAFSR_IVU 0x0000200000000000
#define CHAFSR_IVU 0x0000200000000000
/* Unmappe
e
d error from system bus */
/* Unmapped error from system bus */
#define CHAFSR_TO 0x0000100000000000
#define CHAFSR_TO 0x0000100000000000
/* Bus error response from system bus */
/* Bus error response from system bus */
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
/* The AFSR must be explicitly cleared by software, it is not cleared automatically
/* The AFSR must be explicitly cleared by software, it is not cleared automatically
* by a read. Writes to bits <51:33> with bits set will clear the corresponding
* by a read. Writes to bits <51:33> with bits set will clear the corresponding
* bits in the AFSR. Bits asso
s
ciated with disrupting traps must be cleared before
* bits in the AFSR. Bits associated with disrupting traps must be cleared before
* interrupts are re-enabled to prevent multiple traps for the same error. I.e.
* interrupts are re-enabled to prevent multiple traps for the same error. I.e.
* PSTATE.IE and AFSR bits control delivery of disrupting traps.
* PSTATE.IE and AFSR bits control delivery of disrupting traps.
*
*
...
...
include/asm-sparc64/estate.h
View file @
cacf6489
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* errors 2) uncorrectable E-cache errors. Such events only occur on reads
* errors 2) uncorrectable E-cache errors. Such events only occur on reads
* of the E-cache by the local processor for: 1) data loads 2) instruction
* of the E-cache by the local processor for: 1) data loads 2) instruction
* fetches 3) atomic operations. Such events _cannot_ occur for: 1) merge
* fetches 3) atomic operations. Such events _cannot_ occur for: 1) merge
* 2) writeback 2) copyout. The AFSR bits asso
s
ciated with these traps are
* 2) writeback 2) copyout. The AFSR bits associated with these traps are
* UCC and UCU.
* UCC and UCU.
*/
*/
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
* 4) As the result of such errors on instruction vector fetch can generate any
* 4) As the result of such errors on instruction vector fetch can generate any
* of the 3 trap types.
* of the 3 trap types.
*
*
* The AFSR bits asso
s
ciated with these traps are EMU, EDU, WDU, CPU, IVU, UE,
* The AFSR bits associated with these traps are EMU, EDU, WDU, CPU, IVU, UE,
* BERR, and TO.
* BERR, and TO.
*/
*/
...
...
include/asm-sparc64/ns87303.h
View file @
cacf6489
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#define _SPARC_NS87303_H 1
#define _SPARC_NS87303_H 1
/*
/*
* Control
l
Register Index Values
* Control Register Index Values
*/
*/
#define FER 0x00
#define FER 0x00
#define FAR 0x01
#define FAR 0x01
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
#define TUP_EPP_TIMO 0x02
/* Enable EPP timeout IRQ */
#define TUP_EPP_TIMO 0x02
/* Enable EPP timeout IRQ */
/* Advanced SuperIO Config Register (ASC) bits */
/* Advanced SuperIO Config Register (ASC) bits */
#define ASC_LPT_IRQ7 0x01
/* Al
l
ways use IRQ7 for LPT */
#define ASC_LPT_IRQ7 0x01
/* Always use IRQ7 for LPT */
#define ASC_DRV2_SEL 0x02
/* Logical Drive Exchange controlled by TDR */
#define ASC_DRV2_SEL 0x02
/* Logical Drive Exchange controlled by TDR */
#define FER_RESERVED 0x00
#define FER_RESERVED 0x00
...
...
include/asm-sparc64/pci.h
View file @
cacf6489
...
@@ -50,7 +50,7 @@ extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t
...
@@ -50,7 +50,7 @@ extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t
* size must be the same as what as passed into pci_alloc_consistent,
* size must be the same as what as passed into pci_alloc_consistent,
* and likewise dma_addr must be the same as what *dma_addrp was set to.
* and likewise dma_addr must be the same as what *dma_addrp was set to.
*
*
* References to the memory and mappings asso
s
ciated with cpu_addr/dma_addr
* References to the memory and mappings associated with cpu_addr/dma_addr
* past this call are illegal.
* past this call are illegal.
*/
*/
extern
void
pci_free_consistent
(
struct
pci_dev
*
hwdev
,
size_t
size
,
void
*
vaddr
,
dma_addr_t
dma_handle
);
extern
void
pci_free_consistent
(
struct
pci_dev
*
hwdev
,
size_t
size
,
void
*
vaddr
,
dma_addr_t
dma_handle
);
...
@@ -92,7 +92,7 @@ extern void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, size_t
...
@@ -92,7 +92,7 @@ extern void pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, size_t
(((PTR)->LEN_NAME) = (VAL))
(((PTR)->LEN_NAME) = (VAL))
/* Map a set of buffers described by scatterlist in streaming
/* Map a set of buffers described by scatterlist in streaming
* mode for DMA. This is the scat
h
er-gather version of the
* mode for DMA. This is the scat
t
er-gather version of the
* above pci_map_single interface. Here the scatter gather list
* above pci_map_single interface. Here the scatter gather list
* elements are each tagged with the appropriate dma address
* elements are each tagged with the appropriate dma address
* and length. They are obtained via sg_dma_{address,length}(SG).
* and length. They are obtained via sg_dma_{address,length}(SG).
...
...
include/asm-sparc64/svr4.h
View file @
cacf6489
...
@@ -85,7 +85,7 @@ enum svr4_stack_flags {
...
@@ -85,7 +85,7 @@ enum svr4_stack_flags {
SVR4_SS_DISABLE
,
SVR4_SS_DISABLE
,
};
};
/* signal stack exection place, unsupported */
/* signal stack exec
u
tion place, unsupported */
typedef
struct
svr4_stack_t
{
typedef
struct
svr4_stack_t
{
char
*
sp
;
char
*
sp
;
int
size
;
int
size
;
...
...
include/asm-sparc64/upa.h
View file @
cacf6489
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#define UPA_PORTID_PREQDQ 0x000000007e000000
/* slave-wr's to mod supported */
#define UPA_PORTID_PREQDQ 0x000000007e000000
/* slave-wr's to mod supported */
#define UPA_PORTID_PREQRD 0x0000000001e00000
/* # incoming P_REQ's supported */
#define UPA_PORTID_PREQRD 0x0000000001e00000
/* # incoming P_REQ's supported */
#define UPA_PORTID_UPACAP 0x00000000001f0000
/* UPA capabilities of mod */
#define UPA_PORTID_UPACAP 0x00000000001f0000
/* UPA capabilities of mod */
#define UPA_PORTID_ID 0x000000000000ffff
/* Module I
n
dentification bits */
#define UPA_PORTID_ID 0x000000000000ffff
/* Module Identification bits */
/* UPA I/O space accessors */
/* UPA I/O space accessors */
#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
...
...
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