Print this page
11787 Kernel needs to be built with retpolines
11788 Kernel needs to generally use RSB stuffing
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: John Levon <john.levon@joyent.com>
*** 19,32 ****
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* exit routine from linker/loader to kernel
*/
#include <sys/asm_linkage.h>
--- 19,31 ----
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2019 Joyent, Inc.
*/
/*
* exit routine from linker/loader to kernel
*/
#include <sys/asm_linkage.h>
*** 62,72 ****
/ $arg2
movq $ops, %rax
movq (%rax), %rdx
/ Call destination
! call *%r11
SET_SIZE(exitto)
#endif
--- 61,71 ----
/ $arg2
movq $ops, %rax
movq (%rax), %rdx
/ Call destination
! INDIRECT_CALL_REG(r11)
SET_SIZE(exitto)
#endif