Re: svn commit: r342973 - head/sys/kern

2019-01-12 Thread Cy Schubert
In message <201901122041.x0ckfvui057...@repo.freebsd.org>, Andrew 
Turner writes
:
> Author: andrew
> Date: Sat Jan 12 20:41:57 2019
> New Revision: 342973
> URL: https://svnweb.freebsd.org/changeset/base/342973
>
> Log:
>   Fix the check for the offset of td_frame and td_emuldata in struct thread.
>   
>   Pointy hat: andrew
>   Sponsored by:   DARPA, AFRL
>
> Modified:
>   head/sys/kern/kern_thread.c
>
> Modified: head/sys/kern/kern_thread.c
> =
> =
> --- head/sys/kern/kern_thread.c   Sat Jan 12 17:56:23 2019(r34297
> 2)
> +++ head/sys/kern/kern_thread.c   Sat Jan 12 20:41:57 2019(r34297
> 3)
> @@ -102,9 +102,9 @@ _Static_assert(offsetof(struct thread, td_flags) == 0x
>  "struct thread KBI td_flags");
>  _Static_assert(offsetof(struct thread, td_pflags) == 0xa0,
>  "struct thread KBI td_pflags");
> -_Static_assert(offsetof(struct thread, td_frame) == 0x2e8,
> +_Static_assert(offsetof(struct thread, td_frame) == 0x2ec,
>  "struct thread KBI td_frame");
> -_Static_assert(offsetof(struct thread, td_emuldata) == 0x334,
> +_Static_assert(offsetof(struct thread, td_emuldata) == 0x338,
>  "struct thread KBI td_emuldata");
>  _Static_assert(offsetof(struct proc, p_flag) == 0x68,
>  "struct proc KBI p_flag");
>

Thank you Andrew.


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX: Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r342973 - head/sys/kern

2019-01-12 Thread Conrad Meyer
Maybe bump FreeBSD_version in sys/param.h since these seem to be
asserting KBI and have now been changed.

Best,
Conrad

On Sat, Jan 12, 2019 at 12:42 PM Andrew Turner  wrote:
>
> Author: andrew
> Date: Sat Jan 12 20:41:57 2019
> New Revision: 342973
> URL: https://svnweb.freebsd.org/changeset/base/342973
>
> Log:
>   Fix the check for the offset of td_frame and td_emuldata in struct thread.
>
>   Pointy hat:   andrew
>   Sponsored by: DARPA, AFRL
>
> Modified:
>   head/sys/kern/kern_thread.c
>
> Modified: head/sys/kern/kern_thread.c
> ==
> --- head/sys/kern/kern_thread.c Sat Jan 12 17:56:23 2019(r342972)
> +++ head/sys/kern/kern_thread.c Sat Jan 12 20:41:57 2019(r342973)
> @@ -102,9 +102,9 @@ _Static_assert(offsetof(struct thread, td_flags) == 0x
>  "struct thread KBI td_flags");
>  _Static_assert(offsetof(struct thread, td_pflags) == 0xa0,
>  "struct thread KBI td_pflags");
> -_Static_assert(offsetof(struct thread, td_frame) == 0x2e8,
> +_Static_assert(offsetof(struct thread, td_frame) == 0x2ec,
>  "struct thread KBI td_frame");
> -_Static_assert(offsetof(struct thread, td_emuldata) == 0x334,
> +_Static_assert(offsetof(struct thread, td_emuldata) == 0x338,
>  "struct thread KBI td_emuldata");
>  _Static_assert(offsetof(struct proc, p_flag) == 0x68,
>  "struct proc KBI p_flag");
>
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"