Add support for writing SR 6 and 7

This commit is contained in:
Maschell 2022-04-29 10:12:07 +02:00
parent 71e4a7dcd1
commit dc6d6f9957

View File

@ -105,12 +105,15 @@ void KernelWriteSRsInternalFunc(sr_table_t *table) {
asm volatile("mtsr 3, %0" : : "r" (table->value[i])); i++;
asm volatile("mtsr 4, %0" : : "r" (table->value[i])); i++;
asm volatile("mtsr 5, %0" : : "r" (table->value[i])); i++;*/
//asm volatile("mtsr 6, %0" : : "r" (table->value[6])); i++;
/*asm volatile("mtsr 7, %0" : : "r" (table->value[i])); i++;*/
asm volatile("mtsr 6, %0"
:
: "r"(table->value[6]));
asm volatile("mtsr 7, %0"
:
: "r"(table->value[7]));
asm volatile("mtsr 8, %0"
:
: "r"(table->value[8]));
//i++;
/*asm volatile("mtsr 9, %0" : : "r" (table->value[i])); i++;
asm volatile("mtsr 10, %0" : : "r" (table->value[i])); i++;
asm volatile("mtsr 11, %0" : : "r" (table->value[i])); i++;