Do CPUs (specifically powerpc) allow an interrupt handler to be installed for IPIs (inter processor interrupts) ? The MPIC I am using supports 4 IPIs per core and it has registers for setting the vector and priority of these IPIs, but where should I install the interrupt handler ? The CPU core has IVORs (Interrupt Vector Offset Registers...
Does anyone know of a good introductory textbook on the PowerPC architecture and assembly language that I could recommend to people on my team?
Our company now mostly targets a particular PPC platform for our realtime application, and some of the younger programmers on my team are struggling a bit with release-mode debugging and use of...
Hi!
Does someone know how to initialize a PowerPC 32-bit processor (e.g. PPC-440), similar to Intel's x86 protected mode switch and consequent initialization of address tables and the like? Is there documentation about the first steps an OS should take care of on these processors?
Regards,
...
I've written several copy functions in search of a good memory strategy on PowerPC. Using the Altivec or fp registers with cache hints (dcb*) doubles the performance over a simple byte copy loop for large data. Initially pleased with that, I threw in a regular memcpy to see how it compared... 10x faster than my best! I have no intention ...
Hi,
I am developing a mac program in an intel mac, under OS X. It needs to be also an universal binary, so guess with Xcode one can create the universal binary (UB), am I wrong?
But my question is if there is some kind of virtual machine or such other method, so I can test whether the binary powerpc part runs ok, but I have only the i...
Hello all,
I've been trying to learn embedded software development for some time (been doing software for almost 15 years, 10 in Java, plus good knowledge of C/C++/X86 Asm from College.) Started playing with a PIC-based evaluation board just for kicks.
Where I work, there is a dept. they have some openings on embedded systems from time...
My essential problem is how to make arithmetic with floats on x86 behave like a PowerPC, going from Classic MacOS (CodeWarrior) to Windows (VS 2008).
The code in question, of which there is a lot, has a pile of algorithms which are highly iterative and numerically very sensitive.
A typical complex line is:
Ims_sd = sqrt((4.0*Ams*sqr(n...
I keep getting compilation error for a kernel module:
XXX: In function 'yyy':
ZZZ:125: error: implicit declaration of function '__arch__swab32'
PowerPC, 2.6.30.x, Kamikaze toolchain. According to this the identifier went away after 2.6.28. What should I use instead?
...
Is there a conditional-move-equivalent on the PowerPC (32 or 64) instruction set? It can obviously be emulated using a conditional branch, but I want something that outperforms that.
...
Hi,
I have an old Mac G4 PowerPc, running OSX 10.4.11 MySQL no longer has DMG installation package for PowerPC. I would like to install MySQL on this machine - What's the best way to go about it? This machine currently does not have an install of mysql. Thanks
...
Hello,
my elf-file is about 1MByte with all debug symbols. As I try to create a binary file with "powerpc-eabi-objcopy -O binary out.elf out.bin" the out.bin is 1GByte huge.
The build script looks like this
STARTUP(vectors.o)
ENTRY(__exception_reset)
INPUT(extras.o)
GROUP( libtarget.a libgcc.a libsupc++.a )
MEMORY
{
rom : ORIGIN = 0x...
Hello!
I have to approximate execution time of PowerPC and x86 assembler code.I understand that I cannot compute exact it dependson many problems (current processor state - x86 processor dicides internal instructions in microinstructions, memory access time obtainig code from cache of from slower memory etc.).
I found some information ...
//s_request_view() constructor is declared as below
namespace Identity_VIEW
{
Published_view_identity s_request_view("SAMPLE");
};
//The constructor is called in another source file as below,
bind_view(Identity_VIEW::s_request_view);
This same code is working fine on windows but on SBC (PowerPC) s_request_view is passed as NULL.
Can ...
Hello !
I'm optimizing a Linux boot on PowerPC MPC83xx. I'm trying to optimize the kernel image copy, from nand to ram and trying to check or change the write policy of the cache.
As a read in the reference manual, the processor uses the write-back policy by default. But I haven't found any register where to check/configure this.
How ...
Hi,
I'm writing an assembly macro to a C-program, and being quite new with this I have gotten stuck on something.
I'm trying to write a macro for moving data from a general purpose register to a special purpose register.
My problem is that the syntax I've found to move data from a GPR to an SPR takes a constant SPR value, while I want ...
It is supposed to be possible to install XCode + SDK on a PowerPC.
How easy is this? Can it be done with the latest version (3.2.2).
If not, which versions?
(I think the latest XCode needs an OS version that doesn't run on PowerPC)
...
My code is simple as below.I found rmb and wmb for read and write,but found no general one.lwsync is available on PowerPC,but what is the replacement for x86?Thanks in advance.
#define barrier() __asm__ volatile ("lwsync")
...
lock()
if(!pInst);
{
T* temp=new T;
barrier();
pInst=temp;
}
unlock...
Hi all,
I would like to create a little C/C++ program that should be able to detect wireless APs and getting from this some infos, like ID, the strength of the signal ... encryption (open, WPA, WEP) ... stuff like this! Like airodump or network stumbler!
This code will be run in a power PC, a console (Wii).
Anyone can help me posting s...
Hello All -
Subject: PPC Assembly Language - Linux Loadble Kernel Module
Detail: How access local TOC area (r2) when called from kernel in syscall table hook?
I have written a loadable kernel module for Linux that uses syscall table hooking to intercept system calls and log information about them before passing the call on to the orig...
I'm cross-compiling kernel modules and some libraries on x86 for ppc.
Is it possible to create ld.so.cache and modules.dep on my host system?
P.S I'm using ELDK tools.
...