summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/cimx/sb800
diff options
context:
space:
mode:
authorDavid Hendricks <dhendricks@fb.com>2018-01-28 18:01:10 -0800
committerPatrick Georgi <pgeorgi@google.com>2018-04-09 08:18:16 +0000
commit6053a9ce05c1ca9c8919689fd766e14f4a8b4884 (patch)
tree26a227637a18b74a5d9d53ea6b0fb646e76dff77 /src/southbridge/amd/cimx/sb800
parentb90c0d90cff03e5f7cbf2c3413f8766983589762 (diff)
console: Expose vsnprintf
It's a standard function. Change-Id: I039cce2dfc4e168804eb7d12b76a29af712ac7a1 Signed-off-by: David Hendricks <dhendricks@fb.com> Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/23616 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/amd/cimx/sb800')
-rw-r--r--src/southbridge/amd/cimx/sb800/AmdSbLib.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/southbridge/amd/cimx/sb800/AmdSbLib.h b/src/southbridge/amd/cimx/sb800/AmdSbLib.h
index cc75353f3d..c13eda4e58 100644
--- a/src/southbridge/amd/cimx/sb800/AmdSbLib.h
+++ b/src/southbridge/amd/cimx/sb800/AmdSbLib.h
@@ -20,18 +20,7 @@
#ifndef _AMD_SB_LIB_H_
#define _AMD_SB_LIB_H_
-typedef signed char *va_list;
-#ifndef _INTSIZEOF
- #define _INTSIZEOF (n) ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
-#endif
-
-// Also support coding convention rules for var arg macros
-#ifndef va_start
- #define va_start(ap, v) ( ap = (va_list)&(v) + _INTSIZEOF (v) )
-#endif
-#define va_arg(ap, t) ( *(t *) ((ap += _INTSIZEOF (t)) - _INTSIZEOF (t)) )
-#define va_end(ap) ( ap = (va_list)0 )
-
+#include <console/vtxprintf.h>
#pragma pack (push, 1)