Also need to initialize the queue length of a newly allocated fpstate.

This commit is contained in:
kleink 1998-12-14 16:18:46 +00:00
parent 2cc5fd4000
commit 342b5e5134
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.77 1998/11/12 14:00:06 ws Exp $ */
/* $NetBSD: trap.c,v 1.78 1998/12/14 16:18:46 kleink Exp $ */
/*
* Copyright (c) 1996
@ -391,6 +391,7 @@ badtrap:
if (fs == NULL) {
fs = malloc(sizeof *fs, M_SUBPROC, M_WAITOK);
*fs = initfpstate;
fs->fs_qsize = 0;
p->p_md.md_fpstate = fs;
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.20 1998/11/24 12:55:56 mrg Exp $ */
/* $NetBSD: trap.c,v 1.21 1998/12/14 16:18:47 kleink Exp $ */
/*
* Copyright (c) 1996
@ -664,6 +664,7 @@ badtrap:
/* NOTE: fpstate must be 64-bit aligned */
fs = malloc((sizeof *fs), M_SUBPROC, M_WAITOK);
*fs = initfpstate;
fs->fs_qsize = 0;
p->p_md.md_fpstate = fs;
}
/*