summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-11 08:10:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-11 08:10:50 +0000
commitaa12a442daf76dba1b3faa116eff86c417ee465d (patch)
treeadc86b9fe529f6b42b7993cd083ce04512c41410 /sys/arch/sparc
parent11d08a09106ff2fea7f56f27bb7e6ab515549278 (diff)
__randseed
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/locore.s11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/sparc/sparc/locore.s b/sys/arch/sparc/sparc/locore.s
index 31721c9ed81..be852c9725e 100644
--- a/sys/arch/sparc/sparc/locore.s
+++ b/sys/arch/sparc/sparc/locore.s
@@ -5565,14 +5565,15 @@ ENTRY(ffs)
* Vol 33 No 1.
*/
.data
-randseed:
+ .globl __randseed
+__randseed:
.word 1
.text
ENTRY(random)
sethi %hi(16807), %o1
wr %o1, %lo(16807), %y
- sethi %hi(randseed), %g1
- ld [%g1 + %lo(randseed)], %o0
+ sethi %hi(__randseed), %g1
+ ld [%g1 + %lo(__randseed)], %o0
andcc %g0, 0, %o2
mulscc %o2, %o0, %o2
mulscc %o2, %o0, %o2
@@ -5601,13 +5602,13 @@ ENTRY(random)
bneg 1f
sethi %hi(0x7fffffff), %o1
retl
- st %o0, [%g1 + %lo(randseed)]
+ st %o0, [%g1 + %lo(__randseed)]
1:
or %o1, %lo(0x7fffffff), %o1
add %o0, 1, %o0
and %o1, %o0, %o0
retl
- st %o0, [%g1 + %lo(randseed)]
+ st %o0, [%g1 + %lo(__randseed)]
/*
* void lo_microtime(struct timeval *tv)