aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/agesa/f16kb
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2017-06-24 21:50:10 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2017-06-26 18:10:22 +0000
commit069c11e8b3bf918515034a7b1ff245329a21423b (patch)
tree60928ec297d7f4eabf5a5798f0da3c1f7004e0d5 /src/vendorcode/amd/agesa/f16kb
parent82890928d335023d50d8428b2f147baec99aed55 (diff)
vendorcode/amd: Unify gcc-intrin.h
Most of these functions go unused most of the time, but in order to not keep several copies around, let's make sure we are using the same file everywhere first. Change-Id: Ie121e67f3663410fd2860b7d619e8a679c57caba Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/20325 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/vendorcode/amd/agesa/f16kb')
-rw-r--r--src/vendorcode/amd/agesa/f16kb/Include/gcc-intrin.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/vendorcode/amd/agesa/f16kb/Include/gcc-intrin.h b/src/vendorcode/amd/agesa/f16kb/Include/gcc-intrin.h
index 9ae45c3ee2..5d77c4de4d 100644
--- a/src/vendorcode/amd/agesa/f16kb/Include/gcc-intrin.h
+++ b/src/vendorcode/amd/agesa/f16kb/Include/gcc-intrin.h
@@ -612,40 +612,4 @@ static __inline __attribute__(( __always_inline__)) void _mm_sfence (void)
}
#endif /* __SSE3__ */
-static __inline__ __attribute__((always_inline)) void __stosb(unsigned char *dest, unsigned char data, size_t count)
-{
- __asm__ __volatile__ (
- "rep ; stosb "
- : "+D" (dest), "+c" (count)
- : "a"(data)
- );
-}
-
-static __inline__ __attribute__((always_inline)) void __movsb(unsigned char *dest, unsigned char *data, size_t count)
-{
- __asm__ __volatile__ (
- "movsb "
- : "+D" (dest), "+S"(data), "+c" (count)
- );
-}
-
-static __inline__ __attribute__((always_inline))
-void debug_point ( unsigned short Port, unsigned long Data )
-{
- __outdword (Port, Data);
- __asm__ __volatile__ (".word 0xfeeb");
-
-}
-
-static __inline__ __attribute__((always_inline))
-void delay_point ( unsigned short Port, unsigned long Data, unsigned long delayTime )
-{
- UINTN Index;
- Index = 0;
- __outdword (Port, Data);
- while (Index < delayTime * 600000) {
- __outdword (0xE0, 0);
- Index ++;
- }
-}
#endif /* defined (__GNUC__) */