Revision b4916d7b
b/linux-user/elfload.c | ||
---|---|---|
2339 | 2339 |
* strictly necessary but we do it here for sake of completeness. |
2340 | 2340 |
*/ |
2341 | 2341 |
|
2342 |
/* find out lenght of the vector, AT_NULL is terminator */
|
|
2342 |
/* find out length of the vector, AT_NULL is terminator */
|
|
2343 | 2343 |
i = len = 0; |
2344 | 2344 |
do { |
2345 | 2345 |
get_user_ual(val, auxv); |
b/linux-user/flatload.c | ||
---|---|---|
575 | 575 |
* help simplify all this mumbo jumbo |
576 | 576 |
* |
577 | 577 |
* We've got two different sections of relocation entries. |
578 |
* The first is the GOT which resides at the begining of the data segment |
|
578 |
* The first is the GOT which resides at the beginning of the data segment
|
|
579 | 579 |
* and is terminated with a -1. This one can be relocated in place. |
580 | 580 |
* The second is the extra relocation entries tacked after the image's |
581 | 581 |
* data segment. These require a little more processing as the entry is |
b/linux-user/main.c | ||
---|---|---|
1638 | 1638 |
queue_signal(env, info.si_signo, &info); |
1639 | 1639 |
break; |
1640 | 1640 |
case POWERPC_EXCP_PIT: /* Programmable interval timer IRQ */ |
1641 |
cpu_abort(env, "Programable interval timer interrupt " |
|
1641 |
cpu_abort(env, "Programmable interval timer interrupt "
|
|
1642 | 1642 |
"while in user mode. Aborting\n"); |
1643 | 1643 |
break; |
1644 | 1644 |
case POWERPC_EXCP_IO: /* IO error exception */ |
... | ... | |
2434 | 2434 |
if (env->iflags & D_FLAG) { |
2435 | 2435 |
env->sregs[SR_ESR] |= 1 << 12; |
2436 | 2436 |
env->sregs[SR_PC] -= 4; |
2437 |
/* FIXME: if branch was immed, replay the imm aswell. */ |
|
2437 |
/* FIXME: if branch was immed, replay the imm as well. */
|
|
2438 | 2438 |
} |
2439 | 2439 |
|
2440 | 2440 |
env->iflags &= ~(IMM_FLAG | D_FLAG); |
b/linux-user/signal.c | ||
---|---|---|
80 | 80 |
[SIGSYS] = TARGET_SIGSYS, |
81 | 81 |
/* next signals stay the same */ |
82 | 82 |
/* Nasty hack: Reverse SIGRTMIN and SIGRTMAX to avoid overlap with |
83 |
host libpthread signals. This assumes noone actually uses SIGRTMAX :-/ |
|
83 |
host libpthread signals. This assumes no one actually uses SIGRTMAX :-/
|
|
84 | 84 |
To fix this properly we need to do manual signal delivery multiplexed |
85 | 85 |
over a single host signal. */ |
86 | 86 |
[__SIGRTMIN] = __SIGRTMAX, |
b/linux-user/syscall_defs.h | ||
---|---|---|
1 | 1 |
/* common syscall defines for all architectures */ |
2 | 2 |
|
3 | 3 |
/* Note: although the syscall numbers change between architectures, |
4 |
most of them stay the same, so we handle it by puting ifdefs if |
|
4 |
most of them stay the same, so we handle it by putting ifdefs if
|
|
5 | 5 |
necessary */ |
6 | 6 |
|
7 | 7 |
#include "syscall_nr.h" |
... | ... | |
669 | 669 |
* SIGBUS si_codes |
670 | 670 |
*/ |
671 | 671 |
#define TARGET_BUS_ADRALN (1) /* invalid address alignment */ |
672 |
#define TARGET_BUS_ADRERR (2) /* non-existant physical address */
|
|
672 |
#define TARGET_BUS_ADRERR (2) /* non-existent physical address */
|
|
673 | 673 |
#define TARGET_BUS_OBJERR (3) /* object specific hardware error */ |
674 | 674 |
|
675 | 675 |
/* |
... | ... | |
868 | 868 |
#define TARGET_CDROM_GET_MCN 0x5311 /* Obtain the "Universal Product Code" |
869 | 869 |
if available (struct cdrom_mcn) */ |
870 | 870 |
#define TARGET_CDROM_GET_UPC TARGET_CDROM_GET_MCN /* This one is depricated, |
871 |
but here anyway for compatability */
|
|
871 |
but here anyway for compatibility */
|
|
872 | 872 |
#define TARGET_CDROMRESET 0x5312 /* hard-reset the drive */ |
873 | 873 |
#define TARGET_CDROMVOLREAD 0x5313 /* Get the drive's volume setting |
874 | 874 |
(struct cdrom_volctrl) */ |
Also available in: Unified diff