Remove a recently added incorrect assertion. I was assuming that
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 29 Jul 2004 20:30:32 +0000 (20:30 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 29 Jul 2004 20:30:32 +0000 (20:30 +0000)
pmap_init_thread() was only being called for processes but it is called
for both processes and threads.

sys/i386/i386/pmap.c
sys/platform/pc32/i386/pmap.c

index 4d3cc92..34dc217 100644 (file)
@@ -40,7 +40,7 @@
  *
  *     from:   @(#)pmap.c      7.7 (Berkeley)  5/12/91
  * $FreeBSD: src/sys/i386/i386/pmap.c,v 1.250.2.18 2002/03/06 22:48:53 silby Exp $
- * $DragonFly: src/sys/i386/i386/Attic/pmap.c,v 1.44 2004/07/29 08:54:58 dillon Exp $
+ * $DragonFly: src/sys/i386/i386/Attic/pmap.c,v 1.45 2004/07/29 20:30:32 dillon Exp $
  */
 
 /*
@@ -899,7 +899,6 @@ void
 pmap_init_thread(thread_t td)
 {
        /* enforce pcb placement */
-       KKASSERT(td->td_kstack_size == UPAGES * PAGE_SIZE);
        td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_size) - 1;
        td->td_savefpu = &td->td_pcb->pcb_save;
        td->td_sp = (char *)td->td_pcb - 16;
index 6ead686..9755bb2 100644 (file)
@@ -40,7 +40,7 @@
  *
  *     from:   @(#)pmap.c      7.7 (Berkeley)  5/12/91
  * $FreeBSD: src/sys/i386/i386/pmap.c,v 1.250.2.18 2002/03/06 22:48:53 silby Exp $
- * $DragonFly: src/sys/platform/pc32/i386/pmap.c,v 1.44 2004/07/29 08:54:58 dillon Exp $
+ * $DragonFly: src/sys/platform/pc32/i386/pmap.c,v 1.45 2004/07/29 20:30:32 dillon Exp $
  */
 
 /*
@@ -899,7 +899,6 @@ void
 pmap_init_thread(thread_t td)
 {
        /* enforce pcb placement */
-       KKASSERT(td->td_kstack_size == UPAGES * PAGE_SIZE);
        td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_size) - 1;
        td->td_savefpu = &td->td_pcb->pcb_save;
        td->td_sp = (char *)td->td_pcb - 16;