1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Eliminated pcb_inl. It was always 0 because context switches don't occur

in interrupt handlers.
This commit is contained in:
Bruce Evans 1996-07-31 12:36:11 +00:00
parent d4a5028b0c
commit 85acc6887d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17371
7 changed files with 10 additions and 29 deletions

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: swtch.s,v 1.37 1996/06/25 20:01:59 bde Exp $
* $Id: swtch.s,v 1.38 1996/07/31 09:25:53 davidg Exp $
*/
#include "apm.h"
@ -297,9 +297,6 @@ ENTRY(cpu_switch)
movl %esi,PCB_ESI(%ecx)
movl %edi,PCB_EDI(%ecx)
movb _intr_nesting_level,%al
movb %al,PCB_INL(%ecx)
#if NNPX > 0
/* have we used fp, and need a save? */
mov _curproc,%eax
@ -426,9 +423,7 @@ swtch_com:
movl %edx,_curpcb
movl %ecx,_curproc /* into next process */
movb PCB_INL(%edx),%al
movb %al,_intr_nesting_level
movb $0,_intr_nesting_level
#ifdef USER_LDT
cmpl $0, PCB_USERLDT(%edx)

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)genassym.c 5.11 (Berkeley) 5/10/91
* $Id: genassym.c,v 1.36 1996/05/02 22:24:53 phk Exp $
* $Id: genassym.c,v 1.37 1996/07/31 09:25:51 davidg Exp $
*/
#include <stdio.h>
@ -154,7 +154,6 @@ main()
printf("#define\tPCB_FLAGS %p\n", &pcb->pcb_flags);
printf("#define\tPCB_SAVEFPU %p\n", &pcb->pcb_savefpu);
printf("#define\tPCB_SAVEFPU_SIZE %d\n", sizeof pcb->pcb_savefpu);
printf("#define\tPCB_INL %p\n", &pcb->pcb_inl);
printf("#define\tPCB_ONFAULT %p\n", &pcb->pcb_onfault);
printf("#define\tTF_ES %p\n", &tf->tf_es);

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: swtch.s,v 1.37 1996/06/25 20:01:59 bde Exp $
* $Id: swtch.s,v 1.38 1996/07/31 09:25:53 davidg Exp $
*/
#include "apm.h"
@ -297,9 +297,6 @@ ENTRY(cpu_switch)
movl %esi,PCB_ESI(%ecx)
movl %edi,PCB_EDI(%ecx)
movb _intr_nesting_level,%al
movb %al,PCB_INL(%ecx)
#if NNPX > 0
/* have we used fp, and need a save? */
mov _curproc,%eax
@ -426,9 +423,7 @@ swtch_com:
movl %edx,_curpcb
movl %ecx,_curproc /* into next process */
movb PCB_INL(%edx),%al
movb %al,_intr_nesting_level
movb $0,_intr_nesting_level
#ifdef USER_LDT
cmpl $0, PCB_USERLDT(%edx)

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)pcb.h 5.10 (Berkeley) 5/12/91
* $Id: pcb.h,v 1.14 1996/04/25 06:20:19 phk Exp $
* $Id: pcb.h,v 1.15 1996/05/01 03:47:04 bde Exp $
*/
#ifndef _I386_PCB_H_
@ -66,7 +66,6 @@ struct pcb {
*/
u_char pcb_flags;
#define FP_SOFTFP 0x01 /* process using software fltng pnt emulator */
u_char pcb_inl; /* intr_nesting_level at context switch */
caddr_t pcb_onfault; /* copyin/out fault recovery */
};

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)genassym.c 5.11 (Berkeley) 5/10/91
* $Id: genassym.c,v 1.36 1996/05/02 22:24:53 phk Exp $
* $Id: genassym.c,v 1.37 1996/07/31 09:25:51 davidg Exp $
*/
#include <stdio.h>
@ -154,7 +154,6 @@ main()
printf("#define\tPCB_FLAGS %p\n", &pcb->pcb_flags);
printf("#define\tPCB_SAVEFPU %p\n", &pcb->pcb_savefpu);
printf("#define\tPCB_SAVEFPU_SIZE %d\n", sizeof pcb->pcb_savefpu);
printf("#define\tPCB_INL %p\n", &pcb->pcb_inl);
printf("#define\tPCB_ONFAULT %p\n", &pcb->pcb_onfault);
printf("#define\tTF_ES %p\n", &tf->tf_es);

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: swtch.s,v 1.37 1996/06/25 20:01:59 bde Exp $
* $Id: swtch.s,v 1.38 1996/07/31 09:25:53 davidg Exp $
*/
#include "apm.h"
@ -297,9 +297,6 @@ ENTRY(cpu_switch)
movl %esi,PCB_ESI(%ecx)
movl %edi,PCB_EDI(%ecx)
movb _intr_nesting_level,%al
movb %al,PCB_INL(%ecx)
#if NNPX > 0
/* have we used fp, and need a save? */
mov _curproc,%eax
@ -426,9 +423,7 @@ swtch_com:
movl %edx,_curpcb
movl %ecx,_curproc /* into next process */
movb PCB_INL(%edx),%al
movb %al,_intr_nesting_level
movb $0,_intr_nesting_level
#ifdef USER_LDT
cmpl $0, PCB_USERLDT(%edx)

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)pcb.h 5.10 (Berkeley) 5/12/91
* $Id: pcb.h,v 1.14 1996/04/25 06:20:19 phk Exp $
* $Id: pcb.h,v 1.15 1996/05/01 03:47:04 bde Exp $
*/
#ifndef _I386_PCB_H_
@ -66,7 +66,6 @@ struct pcb {
*/
u_char pcb_flags;
#define FP_SOFTFP 0x01 /* process using software fltng pnt emulator */
u_char pcb_inl; /* intr_nesting_level at context switch */
caddr_t pcb_onfault; /* copyin/out fault recovery */
};