From ba7daa4cde712f723a9df7a42ecca06ccae0ee87 Mon Sep 17 00:00:00 2001 From: dsl Date: Thu, 2 Jun 2011 18:46:51 +0000 Subject: [PATCH] Replace the trapframe fields for segment registers with two uint16_t fields - one of which is an explicit pad. --- sys/arch/i386/include/frame.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sys/arch/i386/include/frame.h b/sys/arch/i386/include/frame.h index 966c865e0c1e..e8f9e336b5ef 100644 --- a/sys/arch/i386/include/frame.h +++ b/sys/arch/i386/include/frame.h @@ -1,4 +1,4 @@ -/* $NetBSD: frame.h,v 1.33 2008/11/14 13:05:34 ad Exp $ */ +/* $NetBSD: frame.h,v 1.34 2011/06/02 18:46:51 dsl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -77,10 +77,14 @@ * Exception/Trap Stack Frame */ struct trapframe { - int tf_gs; - int tf_fs; - int tf_es; - int tf_ds; + uint16_t tf_gs; + uint16_t tf_gs_pad; + uint16_t tf_fs; + uint16_t tf_fs_pad; + uint16_t tf_es; + uint16_t tf_es_pad; + uint16_t tf_ds; + uint16_t tf_ds_pad; int tf_edi; int tf_esi; int tf_ebp;