util: Fix typo on plural form of index
Change-Id: Idc165f8eafacf3130a29b701bc3610c1a67f69d5 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32855 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jacob Garber <jgarber1@ualberta.ca>
This commit is contained in:
committed by
Patrick Georgi
parent
cc8665eacc
commit
bd96a84300
@@ -223,7 +223,7 @@ func (cw *cWriter) WritePageEntry(data interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// This map represents what the IA32_PAT MSR should be at runtime. The indicies
|
||||
// This map represents what the IA32_PAT MSR should be at runtime. The indices
|
||||
// are what the linux kernel uses. Reserved entries are not used.
|
||||
// 0 WB : _PAGE_CACHE_MODE_WB
|
||||
// 1 WC : _PAGE_CACHE_MODE_WC
|
||||
@@ -523,11 +523,11 @@ func newAddrSpace(mergeFunc addrRangeMerge, metatdataBaseAddr uint64) *addressSp
|
||||
return as
|
||||
}
|
||||
|
||||
func (as *addressSpace) deleteEntries(indicies []int) {
|
||||
func (as *addressSpace) deleteEntries(indices []int) {
|
||||
// deletions need to be processed in reverse order so as not
|
||||
// delete the wrong entries
|
||||
sort.Sort(sort.Reverse(sort.IntSlice(indicies)))
|
||||
for _, i := range indicies {
|
||||
sort.Sort(sort.Reverse(sort.IntSlice(indices)))
|
||||
for _, i := range indices {
|
||||
as.ranges = append(as.ranges[:i], as.ranges[i+1:]...)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user