* shared/include/powerpc-utility.h: API changes for ppc_*_cache_*()
	functions.
This commit is contained in:
Sebastian Huber
2011-05-19 12:03:09 +00:00
parent 20e3bf7a1b
commit 00d95ce002
2 changed files with 18 additions and 14 deletions

View File

@@ -1,3 +1,8 @@
2011-05-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* shared/include/powerpc-utility.h: API changes for ppc_*_cache_*()
functions.
2011-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
* shared/include/powerpc-utility.h: Added ppc_fsl_system_version*()

View File

@@ -230,7 +230,7 @@ static inline void ppc_data_cache_block_flush(void *addr)
static inline void ppc_data_cache_block_flush_2(
void *base,
void *offset
uintptr_t offset
)
{
__asm__ volatile (
@@ -253,7 +253,7 @@ static inline void ppc_data_cache_block_invalidate(void *addr)
static inline void ppc_data_cache_block_invalidate_2(
void *base,
void *offset
uintptr_t offset
)
{
__asm__ volatile (
@@ -264,7 +264,7 @@ static inline void ppc_data_cache_block_invalidate_2(
);
}
static inline void ppc_data_cache_block_store(void *addr)
static inline void ppc_data_cache_block_store(const void *addr)
{
__asm__ volatile (
"dcbst 0, %0"
@@ -274,19 +274,18 @@ static inline void ppc_data_cache_block_store(void *addr)
}
static inline void ppc_data_cache_block_store_2(
void *base,
void *offset
const void *base,
uintptr_t offset
)
{
__asm__ volatile (
"dcbst %0, %1"
:
: "b" (base), "r" (offset)
: "memory"
);
}
static inline void ppc_data_cache_block_touch(void *addr)
static inline void ppc_data_cache_block_touch(const void *addr)
{
__asm__ volatile (
"dcbt 0, %0"
@@ -296,8 +295,8 @@ static inline void ppc_data_cache_block_touch(void *addr)
}
static inline void ppc_data_cache_block_touch_2(
void *base,
void *offset
const void *base,
uintptr_t offset
)
{
__asm__ volatile (
@@ -307,7 +306,7 @@ static inline void ppc_data_cache_block_touch_2(
);
}
static inline void ppc_data_cache_block_touch_for_store(void *addr)
static inline void ppc_data_cache_block_touch_for_store(const void *addr)
{
__asm__ volatile (
"dcbtst 0, %0"
@@ -317,8 +316,8 @@ static inline void ppc_data_cache_block_touch_for_store(void *addr)
}
static inline void ppc_data_cache_block_touch_for_store_2(
void *base,
void *offset
const void *base,
uintptr_t offset
)
{
__asm__ volatile (
@@ -340,7 +339,7 @@ static inline void ppc_data_cache_block_clear_to_zero(void *addr)
static inline void ppc_data_cache_block_clear_to_zero_2(
void *base,
void *offset
uintptr_t offset
)
{
__asm__ volatile (
@@ -362,7 +361,7 @@ static inline void ppc_instruction_cache_block_invalidate(void *addr)
static inline void ppc_instruction_cache_block_invalidate_2(
void *base,
void *offset
uintptr_t offset
)
{
__asm__ volatile (