DCZeroRange

Syntax

#include <revolution/os.h>

void DCZeroRange(void* startAddr, u32 nBytes);

Arguments

startAddr Effective address (not the physical address) .
nBytes Size of region to be cleared.

Return Values

None.

Description

Loads a range into cache and zeroes out all the cache blocks. The startAddr argument will be rounded down to the closest 32-byte boundary, while the end address (startAddr + nBytes) will be rounded up to the closest 32-byte boundary.

Be aware that even if the cache is frozen using the DCFreeze function, this command will still execute. However, if the cache is disabled, an alignment exception will be generated.

See Also

Cache Functions, DCFlushRange, DCInvalidateRange, ICInvalidateRange, DCStoreRange

Revision History

2006/03/01 Initial version.


CONFIDENTIAL