Commit 5554b6fc authored by Ben Collins's avatar Ben Collins

[SPARC64]: Correctly mask the physical address for remapping the kernel TLB's

parent 51662d3b
...@@ -54,7 +54,14 @@ bootup_user_stack: ...@@ -54,7 +54,14 @@ bootup_user_stack:
.ascii "HdrS" .ascii "HdrS"
.word LINUX_VERSION_CODE .word LINUX_VERSION_CODE
.half 0x0203 /* HdrS version */
/* History:
*
* 0x0202 : Supports kernel params string
* 0x0300 : Supports being located at other than 0x4000
*/
.half 0x0300 /* HdrS version */
root_flags: root_flags:
.half 1 .half 1
root_dev: root_dev:
...@@ -345,7 +352,8 @@ spitfire_got_tlbentry: ...@@ -345,7 +352,8 @@ spitfire_got_tlbentry:
nop nop
nop nop
and %g1, %g3, %g1 /* Mask to just get paddr bits. */ and %g1, %g3, %g1 /* Mask to just get paddr bits. */
sub %g1, %g2, %g1 /* Get rid of %pc offset to get base. */ set 0x5fff, %l3 /* Mask offset to get phys base. */
andn %g1, %l3, %g1
/* NOTE: We hold on to %g1 paddr base as we need it below to lock /* NOTE: We hold on to %g1 paddr base as we need it below to lock
* NOTE: the PROM cif code into the TLB. * NOTE: the PROM cif code into the TLB.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment