mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Don't disable pmap_setdevram() which isn't called, but which could be,
but instead disable pmap_setvidram() which is called, but probably shouldn't be. PR: 7227, 7240
This commit is contained in:
parent
3bc7e56592
commit
3d1af38b35
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37557
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.202 1998/05/21 07:47:34 dyson Exp $
|
||||
* $Id: pmap.c,v 1.203 1998/07/11 07:45:32 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -483,6 +483,7 @@ putmtrr()
|
||||
void
|
||||
pmap_setvidram(void)
|
||||
{
|
||||
#if 0
|
||||
if (cpu == CPU_686) {
|
||||
wbinvd();
|
||||
/*
|
||||
@ -495,6 +496,7 @@ pmap_setvidram(void)
|
||||
*/
|
||||
wrmsr(0x259, 0x0101010101010101LL);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
@ -505,7 +507,6 @@ pmap_setdevram(unsigned long long basea, vm_offset_t sizea)
|
||||
unsigned long long base;
|
||||
unsigned long long mask;
|
||||
|
||||
return;
|
||||
if (cpu != CPU_686)
|
||||
return;
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.202 1998/05/21 07:47:34 dyson Exp $
|
||||
* $Id: pmap.c,v 1.203 1998/07/11 07:45:32 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -483,6 +483,7 @@ putmtrr()
|
||||
void
|
||||
pmap_setvidram(void)
|
||||
{
|
||||
#if 0
|
||||
if (cpu == CPU_686) {
|
||||
wbinvd();
|
||||
/*
|
||||
@ -495,6 +496,7 @@ pmap_setvidram(void)
|
||||
*/
|
||||
wrmsr(0x259, 0x0101010101010101LL);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
@ -505,7 +507,6 @@ pmap_setdevram(unsigned long long basea, vm_offset_t sizea)
|
||||
unsigned long long base;
|
||||
unsigned long long mask;
|
||||
|
||||
return;
|
||||
if (cpu != CPU_686)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user