mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Remove cache flush, 256Mb 1:1 BAT mapping, and BAT clearing. This doesn't
work on a G5 (no BAT registers) or on PearPC (dBAT3 used for mapping the framebuffer and BATs not re-inited on OpenFirmware calls). It also hid a number of bugs.
This commit is contained in:
parent
057589c485
commit
79c8d45fce
2 changed files with 0 additions and 90 deletions
|
|
@ -38,15 +38,6 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
void startup(void *, int, int (*)(void *), char *, int);
|
||||
|
||||
#ifdef XCOFF_GLUE
|
||||
asm(" \n\
|
||||
.text \n\
|
||||
.globl _entry \n\
|
||||
_entry: \n\
|
||||
.long _start,0,0 \n\
|
||||
");
|
||||
#endif
|
||||
|
||||
__asm(" \n\
|
||||
.data \n\
|
||||
stack: \n\
|
||||
|
|
@ -55,46 +46,10 @@ stack: \n\
|
|||
.text \n\
|
||||
.globl _start \n\
|
||||
_start: \n\
|
||||
li %r8,0 \n\
|
||||
li %r9,0x100 \n\
|
||||
mtctr %r9 \n\
|
||||
1: \n\
|
||||
dcbf %r0,%r8 \n\
|
||||
icbi %r0,%r8 \n\
|
||||
addi %r8,%r8,0x20 \n\
|
||||
bdnz 1b \n\
|
||||
sync \n\
|
||||
isync \n\
|
||||
\n\
|
||||
lis %r1,stack@ha \n\
|
||||
addi %r1,%r1,stack@l \n\
|
||||
addi %r1,%r1,8192 \n\
|
||||
\n\
|
||||
mfmsr %r8 \n\
|
||||
li %r0,0 \n\
|
||||
mtmsr %r0 \n\
|
||||
isync \n\
|
||||
\n\
|
||||
mtibatu 0,%r0 \n\
|
||||
mtibatu 1,%r0 \n\
|
||||
mtibatu 2,%r0 \n\
|
||||
mtibatu 3,%r0 \n\
|
||||
mtdbatu 0,%r0 \n\
|
||||
mtdbatu 1,%r0 \n\
|
||||
mtdbatu 2,%r0 \n\
|
||||
mtdbatu 3,%r0 \n\
|
||||
\n\
|
||||
li %r9,0x12 /* BATL(0, BAT_M, BAT_PP_RW) */ \n\
|
||||
mtibatl 0,%r9 \n\
|
||||
mtdbatl 0,%r9 \n\
|
||||
li %r9,0x1ffe /* BATU(0, BAT_BL_256M, BAT_Vs) */ \n\
|
||||
mtibatu 0,%r9 \n\
|
||||
mtdbatu 0,%r9 \n\
|
||||
isync \n\
|
||||
\n\
|
||||
mtmsr %r8 \n\
|
||||
isync \n\
|
||||
\n\
|
||||
b startup \n\
|
||||
");
|
||||
|
||||
|
|
|
|||
|
|
@ -38,15 +38,6 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
void startup(void *, int, int (*)(void *), char *, int);
|
||||
|
||||
#ifdef XCOFF_GLUE
|
||||
asm(" \n\
|
||||
.text \n\
|
||||
.globl _entry \n\
|
||||
_entry: \n\
|
||||
.long _start,0,0 \n\
|
||||
");
|
||||
#endif
|
||||
|
||||
__asm(" \n\
|
||||
.data \n\
|
||||
stack: \n\
|
||||
|
|
@ -55,46 +46,10 @@ stack: \n\
|
|||
.text \n\
|
||||
.globl _start \n\
|
||||
_start: \n\
|
||||
li %r8,0 \n\
|
||||
li %r9,0x100 \n\
|
||||
mtctr %r9 \n\
|
||||
1: \n\
|
||||
dcbf %r0,%r8 \n\
|
||||
icbi %r0,%r8 \n\
|
||||
addi %r8,%r8,0x20 \n\
|
||||
bdnz 1b \n\
|
||||
sync \n\
|
||||
isync \n\
|
||||
\n\
|
||||
lis %r1,stack@ha \n\
|
||||
addi %r1,%r1,stack@l \n\
|
||||
addi %r1,%r1,8192 \n\
|
||||
\n\
|
||||
mfmsr %r8 \n\
|
||||
li %r0,0 \n\
|
||||
mtmsr %r0 \n\
|
||||
isync \n\
|
||||
\n\
|
||||
mtibatu 0,%r0 \n\
|
||||
mtibatu 1,%r0 \n\
|
||||
mtibatu 2,%r0 \n\
|
||||
mtibatu 3,%r0 \n\
|
||||
mtdbatu 0,%r0 \n\
|
||||
mtdbatu 1,%r0 \n\
|
||||
mtdbatu 2,%r0 \n\
|
||||
mtdbatu 3,%r0 \n\
|
||||
\n\
|
||||
li %r9,0x12 /* BATL(0, BAT_M, BAT_PP_RW) */ \n\
|
||||
mtibatl 0,%r9 \n\
|
||||
mtdbatl 0,%r9 \n\
|
||||
li %r9,0x1ffe /* BATU(0, BAT_BL_256M, BAT_Vs) */ \n\
|
||||
mtibatu 0,%r9 \n\
|
||||
mtdbatu 0,%r9 \n\
|
||||
isync \n\
|
||||
\n\
|
||||
mtmsr %r8 \n\
|
||||
isync \n\
|
||||
\n\
|
||||
b startup \n\
|
||||
");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue