svn commit: r338436 - in head/sys: amd64/include kern

Konstantin Belousov kib at FreeBSD.org
Sun Sep 2 21:16:44 UTC 2018


Author: kib
Date: Sun Sep  2 21:16:43 2018
New Revision: 338436
URL: https://svnweb.freebsd.org/changeset/base/338436

Log:
  Add amd64 mdthread fields needed for the upcoming EFI RT exception
  handling.
  
  This is split into a separate commit from the main change to make it
  easier to handle possible revert after upcoming KBI freeze.
  
  Reviewed by:	kevans
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week
  Approved by:    re (rgrimes)
  Differential revision:	https://reviews.freebsd.org/D16972

Modified:
  head/sys/amd64/include/proc.h
  head/sys/kern/kern_thread.c

Modified: head/sys/amd64/include/proc.h
==============================================================================
--- head/sys/amd64/include/proc.h	Sun Sep  2 20:17:51 2018	(r338435)
+++ head/sys/amd64/include/proc.h	Sun Sep  2 21:16:43 2018	(r338436)
@@ -62,6 +62,8 @@ struct mdthread {
 	register_t md_saved_flags;	/* (k) */
 	register_t md_spurflt_addr;	/* (k) Spurious page fault address. */
 	struct pmap_invl_gen md_invl_gen;
+	register_t md_efirt_tmp;	/* (k) */
+	int	md_efirt_dis_pf;	/* (k) */
 };
 
 struct mdproc {

Modified: head/sys/kern/kern_thread.c
==============================================================================
--- head/sys/kern/kern_thread.c	Sun Sep  2 20:17:51 2018	(r338435)
+++ head/sys/kern/kern_thread.c	Sun Sep  2 21:16:43 2018	(r338436)
@@ -83,7 +83,7 @@ _Static_assert(offsetof(struct thread, td_pflags) == 0
     "struct thread KBI td_pflags");
 _Static_assert(offsetof(struct thread, td_frame) == 0x470,
     "struct thread KBI td_frame");
-_Static_assert(offsetof(struct thread, td_emuldata) == 0x518,
+_Static_assert(offsetof(struct thread, td_emuldata) == 0x528,
     "struct thread KBI td_emuldata");
 _Static_assert(offsetof(struct proc, p_flag) == 0xb0,
     "struct proc KBI p_flag");


More information about the svn-src-head mailing list