S390 port
Mathieu Desnoyers <[email protected]>
| Newsgroups | gmane.linux.kernel.tracing |
|---|---|
| Message-ID | <20061003140508.GA24716@Krystal> |
Hi,
I am currently doing the markers port, and thought it would be a good idea to
switch the s290 code from the original LTT to MARKERS too.
Can anyone explain me the subtility there ?
static void inline do_trap(long interruption_code, int signr, char *str,
struct pt_regs *regs, siginfo_t *info)
{
trapid_t ltt_interruption_code;
char * ic_ptr = (char *) <t_interruption_code;
/*
* We got all needed information from the lowcore and can
* now safely switch on interrupts.
*/
if (regs->psw.mask & PSW_MASK_PSTATE)
local_irq_enable();
memset(<t_interruption_code,0,sizeof(ltt_interruption_code));
memcpy(ic_ptr+4,&interruption_code,sizeof(interruption_code));
ltt_ev_trap_entry(ltt_interruption_code, (regs->psw.addr & PSW_ADDR_INSN));
It looks like an endianness issue mixed with different size types, but I want to
make sure I understand before I modify it.
Mathieu
OpenPGP public key: http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68