1/*-
2 * Copyright (c) 2000 David O'Brien
3 * Copyright (c) 1995-1996 S�ren Schmidt
4 * Copyright (c) 1996 Peter Wemm
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
--- 15 unchanged lines hidden (view full) ---
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/kern/imgact_elf.c 133323 2004-08-08 09:48:10Z dfr $");
33
34#include <sys/param.h>
35#include <sys/exec.h>
36#include <sys/fcntl.h>
37#include <sys/imgact.h>
38#include <sys/imgact_elf.h>
39#include <sys/kernel.h>
40#include <sys/lock.h>
--- 1158 unchanged lines hidden (view full) ---
1199 status->pr_pid = thr->td_tid;
1200 fill_regs(thr, &status->pr_reg);
1201 fill_fpregs(thr, fpregset);
1202 }
1203 __elfN(putnote)(dst, off, "FreeBSD", NT_PRSTATUS, status,
1204 sizeof *status);
1205 __elfN(putnote)(dst, off, "FreeBSD", NT_FPREGSET, fpregset,
1206 sizeof *fpregset);
1207
1208 /* XXX allow for MD specific notes. */
1209
1210 thr = (thr == td) ? TAILQ_FIRST(&p->p_threads) :
1211 TAILQ_NEXT(thr, td_plist);
1212 if (thr == td)
1213 thr = TAILQ_NEXT(thr, td_plist);
1214 }
1215
1216 notesz = *off - noteoff;
1217
--- 89 unchanged lines hidden ---
2 * Copyright (c) 2000 David O'Brien
3 * Copyright (c) 1995-1996 S�ren Schmidt
4 * Copyright (c) 1996 Peter Wemm
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
--- 15 unchanged lines hidden (view full) ---
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/kern/imgact_elf.c 133323 2004-08-08 09:48:10Z dfr $");
33
34#include <sys/param.h>
35#include <sys/exec.h>
36#include <sys/fcntl.h>
37#include <sys/imgact.h>
38#include <sys/imgact_elf.h>
39#include <sys/kernel.h>
40#include <sys/lock.h>
--- 1158 unchanged lines hidden (view full) ---
1199 status->pr_pid = thr->td_tid;
1200 fill_regs(thr, &status->pr_reg);
1201 fill_fpregs(thr, fpregset);
1202 }
1203 __elfN(putnote)(dst, off, "FreeBSD", NT_PRSTATUS, status,
1204 sizeof *status);
1205 __elfN(putnote)(dst, off, "FreeBSD", NT_FPREGSET, fpregset,
1206 sizeof *fpregset);
1207
1208 /* XXX allow for MD specific notes. */
1209
1210 thr = (thr == td) ? TAILQ_FIRST(&p->p_threads) :
1211 TAILQ_NEXT(thr, td_plist);
1212 if (thr == td)
1213 thr = TAILQ_NEXT(thr, td_plist);
1214 }
1215
1216 notesz = *off - noteoff;
1217
--- 89 unchanged lines hidden ---