commonlib/console/post_code.h: Change post code prefix to POSTCODE
The prefix POSTCODE makes it clear that the macro is a post code. Hence, replace related macros starting with POST to POSTCODE and also replace every instance the macros are invoked with the new name. The files was changed by running the following bash script from the top level directory. sed -i'' '30,${s/#define POST/#define POSTCODE/g;}' \ src/commonlib/include/commonlib/console/post_codes.h; myArray=`grep -e "^#define POSTCODE_" \ src/commonlib/include/commonlib/console/post_codes.h | \ grep -v "POST_CODES_H" | tr '\t' ' ' | cut -d ' ' -f 2`; for str in ${myArray[@]}; do splitstr=`echo $str | cut -d '_' -f2-` grep -r POST_$splitstr src | \ cut -d ':' -f 1 | xargs sed -i'' -e "s/POST_$splitstr/$str/g"; grep -r "POST_$splitstr" util/cbfstool | \ cut -d ':' -f 1 | xargs sed -i'' -e "s/POST_$splitstr/$str/g"; done Change-Id: I25db79fa15f032c08678f66d86c10c928b7de9b8 Signed-off-by: lilacious <yuchenhe126@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76043 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
@@ -16,7 +16,7 @@ _cache_as_ram_setup:
|
||||
bootblock_pre_c_entry:
|
||||
|
||||
cache_as_ram:
|
||||
post_code(POST_BOOTBLOCK_CAR)
|
||||
post_code(POSTCODE_BOOTBLOCK_CAR)
|
||||
|
||||
/* Send INIT IPI to all excluding ourself. */
|
||||
movl $0x000C4500, %eax
|
||||
@@ -185,7 +185,7 @@ before_c_entry:
|
||||
call bootblock_c_entry_bist
|
||||
|
||||
/* Should never see this postcode */
|
||||
post_code(POST_DEAD_CODE)
|
||||
post_code(POSTCODE_DEAD_CODE)
|
||||
|
||||
.Lhlt:
|
||||
hlt
|
||||
|
@@ -21,7 +21,7 @@ bootblock_pre_c_entry:
|
||||
jmp check_mtrr /* Check if CPU properly reset */
|
||||
|
||||
cache_as_ram:
|
||||
post_code(POST_BOOTBLOCK_CAR)
|
||||
post_code(POSTCODE_BOOTBLOCK_CAR)
|
||||
|
||||
/* Send INIT IPI to all excluding ourself. */
|
||||
movl $0x000C4500, %eax
|
||||
@@ -238,7 +238,7 @@ before_c_entry:
|
||||
call bootblock_c_entry_bist
|
||||
|
||||
/* Should never see this postcode */
|
||||
post_code(POST_DEAD_CODE)
|
||||
post_code(POSTCODE_DEAD_CODE)
|
||||
|
||||
|
||||
.Lhlt:
|
||||
|
@@ -14,7 +14,7 @@ _cache_as_ram_setup:
|
||||
bootblock_pre_c_entry:
|
||||
|
||||
cache_as_ram:
|
||||
post_code(POST_BOOTBLOCK_CAR)
|
||||
post_code(POSTCODE_BOOTBLOCK_CAR)
|
||||
|
||||
/* Clear/disable fixed MTRRs */
|
||||
mov $fixed_mtrr_list_size, %ebx
|
||||
@@ -160,7 +160,7 @@ before_c_entry:
|
||||
call bootblock_c_entry_bist
|
||||
|
||||
/* Should never see this postcode */
|
||||
post_code(POST_DEAD_CODE)
|
||||
post_code(POSTCODE_DEAD_CODE)
|
||||
|
||||
.Lhlt:
|
||||
hlt
|
||||
|
@@ -20,7 +20,7 @@ _cache_as_ram_setup:
|
||||
bootblock_pre_c_entry:
|
||||
|
||||
cache_as_ram:
|
||||
post_code(POST_BOOTBLOCK_CAR)
|
||||
post_code(POSTCODE_BOOTBLOCK_CAR)
|
||||
|
||||
movl $LAPIC_BASE_MSR, %ecx
|
||||
rdmsr
|
||||
@@ -385,7 +385,7 @@ before_c_entry:
|
||||
call bootblock_c_entry_bist
|
||||
|
||||
/* Should never see this postcode */
|
||||
post_code(POST_DEAD_CODE)
|
||||
post_code(POSTCODE_DEAD_CODE)
|
||||
|
||||
.Lhlt:
|
||||
hlt
|
||||
|
@@ -15,7 +15,7 @@
|
||||
bootblock_pre_c_entry:
|
||||
|
||||
cache_as_ram:
|
||||
post_code(POST_BOOTBLOCK_CAR)
|
||||
post_code(POSTCODE_BOOTBLOCK_CAR)
|
||||
/*
|
||||
* Nothing to do here on qemu, RAM works just fine without any
|
||||
* initialization.
|
||||
@@ -104,7 +104,7 @@ before_c_entry:
|
||||
call bootblock_c_entry_bist
|
||||
/* Never returns */
|
||||
.Lhlt:
|
||||
post_code(POST_DEAD_CODE)
|
||||
post_code(POSTCODE_DEAD_CODE)
|
||||
hlt
|
||||
jmp .Lhlt
|
||||
|
||||
|
@@ -43,7 +43,7 @@ _start16bit:
|
||||
cli
|
||||
/* Save the BIST result */
|
||||
movl %eax, %ebp
|
||||
post_code(POST_RESET_VECTOR_CORRECT)
|
||||
post_code(POSTCODE_RESET_VECTOR_CORRECT)
|
||||
|
||||
/* IMMEDIATELY invalidate the translation lookaside buffer (TLB) before
|
||||
* executing any further code. Even though paging is disabled we
|
||||
|
@@ -31,7 +31,7 @@ bootblock_protected_mode_entry:
|
||||
/* Save the BIST value */
|
||||
movl %eax, %ebp
|
||||
|
||||
post_code(POST_ENTER_PROTECTED_MODE)
|
||||
post_code(POSTCODE_ENTER_PROTECTED_MODE)
|
||||
|
||||
movw $ROM_DATA_SEG, %ax
|
||||
movw %ax, %ds
|
||||
|
Reference in New Issue
Block a user