git: 5029119797e1 - stable/14 - stand: Retire setting hw.ata.wc: it doesn't exist.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 16 Apr 2024 02:34:47 UTC
The branch stable/14 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5029119797e1340636952d1a8e7b0defd7b2500b

commit 5029119797e1340636952d1a8e7b0defd7b2500b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-11-24 18:28:44 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-04-16 02:32:05 +0000

    stand: Retire setting hw.ata.wc: it doesn't exist.
    
    hw.ata.wc was disconnected as part ot the 2013 cam-ification of ata. No
    need to continue setting it. It's been unused in FreeBSD 10.x and newer.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 67d2bd974d34d918255307321107273562f11dde)
---
 stand/forth/menu-commands.4th | 2 --
 stand/lua/core.lua            | 2 --
 stand/lua/core.lua.8          | 1 -
 3 files changed, 5 deletions(-)

diff --git a/stand/forth/menu-commands.4th b/stand/forth/menu-commands.4th
index 8121272114d0..2c3d787c65e1 100644
--- a/stand/forth/menu-commands.4th
+++ b/stand/forth/menu-commands.4th
@@ -126,7 +126,6 @@ also menu-namespace also menu-command-helpers
 	s" set kern.smp.disabled=1" evaluate
 	s" set hw.ata.ata_dma=0" evaluate
 	s" set hw.ata.atapi_dma=0" evaluate
-	s" set hw.ata.wc=0" evaluate
 	s" set kern.eventtimer.periodic=1" evaluate
 	s" set kern.geom.part.check_integrity=0" evaluate
 ;
@@ -135,7 +134,6 @@ also menu-namespace also menu-command-helpers
 	s" kern.smp.disabled" unsetenv
 	s" hw.ata.ata_dma" unsetenv
 	s" hw.ata.atapi_dma" unsetenv
-	s" hw.ata.wc" unsetenv
 	s" kern.eventtimer.periodic" unsetenv
 	s" kern.geom.part.check_integrity" unsetenv
 ;
diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index 85896183d98f..65b91cd8f63e 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -176,14 +176,12 @@ function core.setSafeMode(safe_mode)
 		loader.setenv("kern.smp.disabled", "1")
 		loader.setenv("hw.ata.ata_dma", "0")
 		loader.setenv("hw.ata.atapi_dma", "0")
-		loader.setenv("hw.ata.wc", "0")
 		loader.setenv("kern.eventtimer.periodic", "1")
 		loader.setenv("kern.geom.part.check_integrity", "0")
 	else
 		loader.unsetenv("kern.smp.disabled")
 		loader.unsetenv("hw.ata.ata_dma")
 		loader.unsetenv("hw.ata.atapi_dma")
-		loader.unsetenv("hw.ata.wc")
 		loader.unsetenv("kern.eventtimer.periodic")
 		loader.unsetenv("kern.geom.part.check_integrity")
 	end
diff --git a/stand/lua/core.lua.8 b/stand/lua/core.lua.8
index b9af93758818..e12f80671c00 100644
--- a/stand/lua/core.lua.8
+++ b/stand/lua/core.lua.8
@@ -126,7 +126,6 @@ Sets or unsets
 .Ev kern.smp.disabled ,
 .Ev hw.ata.ata_dma ,
 .Ev hw.ata.atapi_dma ,
-.Ev hw.ata.wc ,
 .Ev kern.eventtimer.periodic ,
 and
 .Ev kern.geom.part.check_integrity .