2 comments:
File src/soc/intel/common/block/cpu/car/cache_as_ram.S:
* macro: find_free_mtrr
* Clobbers %eax, %ebx, %ecx, %edx.
* If not found %ebx is 0.
* If found MTRR_BASE is at %ecx.
Note: the MTRR MSRs are contiguous, and alternating between BASE and MASK:
MTRR_PHYS_MASK(0) = MTRR_PHYS_BASE(0) + 1
MTRR_PHYS_BASE(n) = MTRR_PHYS_BASE(0) + 2 * n
MTRR_PHYS_MASK(n) = MTRR_PHYS_MASK(0) + 2 * n
That applies to the whole file, not just this macro.
right. […]
Are you sure one can use names in an assembler macro?
To view, visit change 37190. To unsubscribe, or for help writing mail filters, visit settings.