mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
diff --git a/src/arch/i386/include/ipxe/rdtsc_timer.h b/src/arch/i386/include/ipxe/rdtsc_timer.h
|
|
index 472e140..d5095a7 100644
|
|
--- a/src/arch/i386/include/ipxe/rdtsc_timer.h
|
|
+++ b/src/arch/i386/include/ipxe/rdtsc_timer.h
|
|
@@ -30,7 +30,10 @@ static inline __always_inline unsigned long
|
|
TIMER_INLINE ( rdtsc, currticks ) ( void ) {
|
|
unsigned long ticks;
|
|
|
|
- __asm__ __volatile__ ( "rdtsc\n\t"
|
|
+ __asm__ __volatile__ (
|
|
+ "mfence\n\t"
|
|
+ "rdtsc\n\t"
|
|
+ "mfence\n\t"
|
|
"shrdl %1, %%edx, %%eax\n\t"
|
|
: "=a" ( ticks ) : "i" ( TSC_SHIFT ) : "edx" );
|
|
return ticks;
|
|
diff --git a/src/include/assert.h b/src/include/assert.h
|
|
index 655cbdc..a8016c8 100644
|
|
--- a/src/include/assert.h
|
|
+++ b/src/include/assert.h
|
|
@@ -31,7 +31,7 @@ extern unsigned int assertion_failures;
|
|
* to the printf symbol.
|
|
*/
|
|
extern int __attribute__ (( format ( printf, 1, 2 ) ))
|
|
-assert_printf ( const char *fmt, ... ) asm ( "printf" );
|
|
+assert_printf ( const char *fmt, ... ) asm ( "ipxe_printf" );
|
|
|
|
/**
|
|
* Assert a condition at run-time.
|
|
diff --git a/src/include/compiler.h b/src/include/compiler.h
|
|
index e555924..b430e37 100644
|
|
--- a/src/include/compiler.h
|
|
+++ b/src/include/compiler.h
|
|
@@ -263,7 +263,7 @@ REQUEST_EXPANDED ( CONFIG_SYMBOL );
|
|
|
|
/** printf() for debugging */
|
|
extern void __attribute__ (( format ( printf, 1, 2 ) ))
|
|
-dbg_printf ( const char *fmt, ... );
|
|
+dbg_printf ( const char *fmt, ... ) asm ( "ipxe_printf" );
|
|
extern void dbg_autocolourise ( unsigned long id );
|
|
extern void dbg_decolourise ( void );
|
|
extern void dbg_hex_dump_da ( unsigned long dispaddr,
|