I use Keil uVision RealView C Compiler and cannot find any C function qualifier like __ram or __ramfunc to enable that function execution from on-chip RAM. Device is AT91SAM7S256, uVision version is 3.50.
Or, maybe, this compiler does not support RAM function definition?