Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d53604f

Browse files
iprt: r0drv: linux: Do not call CLD instruction for newer kernels sinse it triggers objtool warning (fix comment), bugref:10964.
svn:sync-xref-src-repo-rev: r170400
1 parent a8954a3 commit d53604f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: memuserkernel-r0drv-linux.c 110871 2025年09月03日 11:52:29Z vadim.galitsyn@oracle.com $ */
1+
/* $Id: memuserkernel-r0drv-linux.c 110873 2025年09月03日 12:19:58Z vadim.galitsyn@oracle.com $ */
22
/** @file
33
* IPRT - User & Kernel Memory, Ring-0 Driver, Linux.
44
*/
@@ -150,9 +150,7 @@ static int rtR0MemKernelCopyLnxWorker(void *pvDst, void const *pvSrc, size_t cb)
150150
return VINF_SUCCESS;
151151

152152
__asm__ __volatile__ (
153-
/* Do not call CLD instruction for recent kernels since it triggers objtool
154-
warning, but play safe with older ones. */
155-
# if RTLNX_VER_MAX(6,0,0)
153+
# if RTLNX_VER_MAX(6,0,0) /* Do not call CLD for recent kernels since it triggers objtool warning. */
156154
"cld\n"
157155
# endif
158156
"1:\n\t"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /