XRT icon indicating copy to clipboard operation
XRT copied to clipboard

VITIS-11384 - Process elf section "preempt_save" and "preempt_restore"

Open dezhiAmd opened this issue 9 months ago • 3 comments

Problem solved by the commit

Assembler added new sections in elf file called ".preempt_save" and ".preempt_restore" to support preempt. This PR adds support to process the added new sections. Without the new code, exception will happen which says "Invalid section name"

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

How problem was solved, alternative solutions (if any) and why they were rejected

Adding support in Function initialize_arg_patchers for new sections

Risks (if any) associated the changes in the commit

None

What has been tested and how, request additional testing if necessary

Compile and run xrt_elf_test

Documentation impact (if any)

dezhiAmd avatar May 06 '24 18:05 dezhiAmd

So this PR only cache the save and restore TXN ctrl code in local buffer, while the allocation of scratch-pad-memory and patching the save/restore will be in future PR, right?

larry9523 avatar May 08 '24 03:05 larry9523

So this PR only cache the save and restore TXN ctrl code in local buffer, while the allocation of scratch-pad-memory and patching the save/restore will be in future PR, right?

Yes. That is correct.

dezhiAmd avatar May 08 '24 14:05 dezhiAmd

retest this please

dezhiAmd avatar May 09 '24 02:05 dezhiAmd