Skip to content

Commit

Permalink
drm/amdkfd: Separate trap handler assembly code and its hex values
Browse files Browse the repository at this point in the history
Since the assembly code is inside "#if 0", it is ineffective. Despite that,
during debugging, we need to change the assembly code, extract it into
a separate file and compile the new file into hex values using sp3.
That process also requires us to remove "#if 0" and modify lines starting
with "#", so that sp3 can successfully compile the new file.

With this change, all the above chore is no longer needed, and
cwsr_trap_handler_gfx*.asm can be directly used by sp3 to generate its
hex values.

Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
  • Loading branch information
Yong Zhao authored and Oded Gabbay committed May 1, 2018
1 parent a2e9415 commit 0db54b2
Show file tree
Hide file tree
Showing 4 changed files with 575 additions and 555 deletions.
Loading

0 comments on commit 0db54b2

Please sign in to comment.