mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 08:02:56 +00:00
64-bit fixes for Alchemy code ;)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
ffd099bd33
commit
10f650db1b
1 changed files with 5 additions and 6 deletions
|
@ -53,14 +53,13 @@ static void r4k_wait(void)
|
||||||
/* The Au1xxx wait is available only if using 32khz counter or
|
/* The Au1xxx wait is available only if using 32khz counter or
|
||||||
* external timer source, but specifically not CP0 Counter. */
|
* external timer source, but specifically not CP0 Counter. */
|
||||||
int allow_au1k_wait;
|
int allow_au1k_wait;
|
||||||
|
|
||||||
static void au1k_wait(void)
|
static void au1k_wait(void)
|
||||||
{
|
{
|
||||||
unsigned long addr = 0;
|
|
||||||
/* using the wait instruction makes CP0 counter unusable */
|
/* using the wait instruction makes CP0 counter unusable */
|
||||||
__asm__("la %0,au1k_wait\n\t"
|
__asm__(".set mips3\n\t"
|
||||||
".set mips3\n\t"
|
"cache 0x14, 0(%0)\n\t"
|
||||||
"cache 0x14,0(%0)\n\t"
|
"cache 0x14, 32(%0)\n\t"
|
||||||
"cache 0x14,32(%0)\n\t"
|
|
||||||
"sync\n\t"
|
"sync\n\t"
|
||||||
"nop\n\t"
|
"nop\n\t"
|
||||||
"wait\n\t"
|
"wait\n\t"
|
||||||
|
@ -69,7 +68,7 @@ static void au1k_wait(void)
|
||||||
"nop\n\t"
|
"nop\n\t"
|
||||||
"nop\n\t"
|
"nop\n\t"
|
||||||
".set mips0\n\t"
|
".set mips0\n\t"
|
||||||
: : "r" (addr));
|
: : "r" (au1k_wait));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void check_wait(void)
|
static inline void check_wait(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue