clflush over the LAPIC mapping

clflush over the LAPIC mapping

I am remapping the LAPIC registers page to some virtual address. During the remap procedure, virtual memory subsystem invalidates the TLB for the page and then does clflush over the region, looping from the page start to end with appropriate step.

Unfortunately, on the first clflush, for the lowest address, I get unexpected interrupt. The interrupt is syncronous, i.e. it happens with $eip pointing to clflush.

Is it allowed and correct to call clflush over the virtuall mapping of lapic ?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.