Page MenuHomeFreeBSD

D58550.id183093.diff
No OneTemporary

D58550.id183093.diff

diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -1403,6 +1403,23 @@
movq $0,PCB_GSBASE(%r8)
jmp doreti
+#if defined(__clang__) && (__clang_major__ <= 19)
+/*
+ * Encode 'lkgs %ax"
+ */
+ .macro lkgs ignored
+ .byte 0xf2, 0x0f, 0x00, 0xf0
+ .endm
+
+ .macro eretu
+ .byte 0xf3, 0x0f, 0x01, 0xca
+ .endm
+
+ .macro erets
+ .byte 0xf2, 0x0f, 0x01, 0xca
+ .endm
+#endif
+
/*
* FRED guarantees that on entry, %rflags is set to '2', which in
* particular means that interrupts are disabled, and DF/AC are clear.

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 4, 3:09 AM (5 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35779679
Default Alt Text
D58550.id183093.diff (612 B)

Event Timeline