commit | 8b24346bff4f0421ed041c3b021467665785d60c | [log] [tgz] |
---|---|---|
author | Kumar Gala <kumar.gala@intel.com> | Fri Feb 03 17:22:14 2023 +0000 |
committer | Anas Nashif <anas.nashif@intel.com> | Sun Feb 19 20:47:23 2023 -0500 |
tree | 07dcd0be1722d2ab12228e7102da80dc788cef74 | |
parent | 7a1eb41077abc6b0618d2808b9771ca184b39a25 [diff] |
tests: arch: x86: static_idt: Fix test when building with llvm llvm will generate a different div instruction than gcc does and than the number of types that the div instruction opcode takes is not 2. Move to using inline asm with a idivl instruction to ensure the opcode size is what we expect so that exc_divide_error_handler() can properly skip over the instruction. Signed-off-by: Kumar Gala <kumar.gala@intel.com>