From bd96a8430046601dfa2ffbd31636dfd49a41e2ca Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sat, 18 May 2019 06:57:07 +0200 Subject: util: Fix typo on plural form of index Change-Id: Idc165f8eafacf3130a29b701bc3610c1a67f69d5 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/32855 Tested-by: build bot (Jenkins) Reviewed-by: Jacob Garber --- util/x86/x86_page_tables.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util/x86') diff --git a/util/x86/x86_page_tables.go b/util/x86/x86_page_tables.go index 2dc0ed36ff..e477b54c5e 100644 --- a/util/x86/x86_page_tables.go +++ b/util/x86/x86_page_tables.go @@ -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:]...) } } -- cgit v1.2.3