mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
This is a temporary workaround for kernel panic occurring when
switching video modes. People typically see the panic when the screen saver has been running and is being stopped. WARNING: this is not a real fix. Something really funny must be happening in the page table entries for the physical memory 0x0-0xa0000, which is mapped to the beginning of the kernel region.
This commit is contained in:
parent
ee28fadec0
commit
170f96bb1a
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: vga_isa.c,v 1.2 1999/01/23 10:55:16 yokota Exp $
|
||||
* $Id: vga_isa.c,v 1.4 1999/02/05 12:58:40 yokota Exp $
|
||||
*/
|
||||
|
||||
#include "vga.h"
|
||||
|
|
@ -1973,6 +1973,7 @@ vga_load_state(video_adapter_t *adp, void *p)
|
|||
inb(crtc_addr + 6); /* reset flip-flop */
|
||||
outb(ATC, 0x20); /* enable palette */
|
||||
|
||||
#if notyet /* a temporary workaround for kernel panic, XXX */
|
||||
#ifndef VGA_NO_BIOS
|
||||
if (adp->va_unit == V_ADP_PRIMARY) {
|
||||
writeb(BIOS_PADDRTOVADDR(0x44a), buf[0]); /* COLS */
|
||||
|
|
@ -1984,6 +1985,7 @@ vga_load_state(video_adapter_t *adp, void *p)
|
|||
#endif
|
||||
}
|
||||
#endif /* VGA_NO_BIOS */
|
||||
#endif /* notyet */
|
||||
|
||||
splx(s);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue