Subject: Re: kernel stack overflow detection
To: None <eeh@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 06/27/2002 01:53:10
From: eeh@netbsd.org
Subject: Re: kernel stack overflow detection
Date: 26 Jun 2002 16:05:23 -0000
> | KSTACK_CHECK_MAGIC scans kernel stack on each context switch.
> | so it affects performance too much.
> |
> | KSTACK_CHECK_DR0 uses a debug register exclusively, so
> | people that want to use it for other purposes will not want to
> | enable it.
>
> Why are you changing MI code? Can't it be done all in MD code?
there're 2 things. (sorry for confusing)
KSTACK_CHECK_MAGIC is (intended to be) MI.
KSTACK_CHECK_DR0 is i386-specific.
> If you really need it in MI code, does this work on anything other
> than x86? Have you tested it on anything else?
only tested on i386.
---
YAMAMOTO Takashi<yamt@mwd.biglobe.ne.jp>