diff options
author | Iru Cai <mytbk920423@gmail.com> | 2020-11-09 21:15:15 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2020-11-15 11:01:00 +0800 |
commit | 57f14f451be9f301277197c735a6d77b6a43934a (patch) | |
tree | 23bcb749054916e8c5f1bfa1f88f1be8252690c6 | |
parent | 41825932d2cb14d4466c26f059811506970f369c (diff) | |
download | coreboot-57f14f451be9f301277197c735a6d77b6a43934a.tar.xz |
do not use mrc_printk
-rw-r--r-- | src/soc/intel/broadwell/refcode/Makefile.inc | 1 | ||||
-rw-r--r-- | src/soc/intel/broadwell/refcode/broadwell_mrc.asm | 3 | ||||
-rw-r--r-- | src/soc/intel/broadwell/refcode/printk.c | 12 |
3 files changed, 15 insertions, 1 deletions
diff --git a/src/soc/intel/broadwell/refcode/Makefile.inc b/src/soc/intel/broadwell/refcode/Makefile.inc index ce1fa0319c..3eca45f66d 100644 --- a/src/soc/intel/broadwell/refcode/Makefile.inc +++ b/src/soc/intel/broadwell/refcode/Makefile.inc @@ -1,4 +1,5 @@ romstage-libs += $(obj)/broadwell_mrc.o +romstage-y += printk.c ramstage-libs += $(obj)/broadwell_refcode.o $(obj)/%.o: $(src)/soc/intel/broadwell/refcode/%.asm diff --git a/src/soc/intel/broadwell/refcode/broadwell_mrc.asm b/src/soc/intel/broadwell/refcode/broadwell_mrc.asm index 049ead6647..8a48ef8df7 100644 --- a/src/soc/intel/broadwell/refcode/broadwell_mrc.asm +++ b/src/soc/intel/broadwell/refcode/broadwell_mrc.asm @@ -7,6 +7,7 @@ ;; f fcn5 @ 0xfffb7458 bits 32 +extern mrc_printk global mrc_entry mrc_entry: @@ -32514,7 +32515,7 @@ pop edi pop ebp ret -mrc_printk: +mrc_printk_: push ebp mov ebp, esp push edi diff --git a/src/soc/intel/broadwell/refcode/printk.c b/src/soc/intel/broadwell/refcode/printk.c new file mode 100644 index 0000000000..f45243c1ae --- /dev/null +++ b/src/soc/intel/broadwell/refcode/printk.c @@ -0,0 +1,12 @@ +#include <console/console.h> + +int mrc_printk(const char *fmt, ...); + +int mrc_printk(const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + int i = do_vprintk(0, fmt, args); + va_end(args); + return i; +} |