Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66198
b: refs/heads/master
c: 1ac74d5
h: refs/heads/master
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Ralf Baechle committed Oct 11, 2007
1 parent 82511b1 commit f0ca0c9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f13558c2a4a7339192ff7148ee903340affdb790
refs/heads/master: 1ac74d528dcfe3dcaa6072289d71fa96569f5e39
20 changes: 20 additions & 0 deletions trunk/arch/mips/mm/pg-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ void __init build_clear_page(void)
{
unsigned int loop_start;
unsigned long off;
int i;

epc = (unsigned int *) &clear_page_array;
instruction_pending = 0;
Expand Down Expand Up @@ -434,12 +435,22 @@ dest = label();
build_jr_ra();

BUG_ON(epc > clear_page_array + ARRAY_SIZE(clear_page_array));

pr_info("Synthesized clear page handler (%u instructions).\n",
(unsigned int)(epc - clear_page_array));

pr_debug("\t.set push\n");
pr_debug("\t.set noreorder\n");
for (i = 0; i < (epc - clear_page_array); i++)
pr_debug("\t.word 0x%08x\n", clear_page_array[i]);
pr_debug("\t.set pop\n");
}

void __init build_copy_page(void)
{
unsigned int loop_start;
unsigned long off;
int i;

epc = (unsigned int *) &copy_page_array;
store_offset = load_offset = 0;
Expand Down Expand Up @@ -515,4 +526,13 @@ dest = label();
build_jr_ra();

BUG_ON(epc > copy_page_array + ARRAY_SIZE(copy_page_array));

pr_info("Synthesized copy page handler (%u instructions).\n",
(unsigned int)(epc - copy_page_array));

pr_debug("\t.set push\n");
pr_debug("\t.set noreorder\n");
for (i = 0; i < (epc - copy_page_array); i++)
pr_debug("\t.word 0x%08x\n", copy_page_array[i]);
pr_debug("\t.set pop\n");
}

0 comments on commit f0ca0c9

Please sign in to comment.