Home | History | Annotate | Download | only in include
History log of /src/sys/arch/i386/include/db_machdep.h
RevisionDateAuthorComments
 1.31  06-Nov-2017  christos Cleanup and clarify the ELFSIZE mess:

We now have 2 variables automatically set in elf_machdep.h:

ARCH_ELFSIZE: the size for userland binaries
KERN_ELFSIZE: the size for the kernel binaries

DB_ELFSIZE has been deleted and KERN_ELFSIZE should have always the
same values DB_ELFSIZE used to have.

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
 1.30  26-May-2011  joerg branches: 1.30.14;
Introduce DDB_EXPR_FMT and replace the logic around DB_EXPR_T_IS_QUAD.
 1.29  11-Apr-2011  mrg obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.
 1.28  10-Apr-2011  christos Merge db_trace for x86. From: Vladimir Kirillov proger at wilab dot org dot ua
 1.27  07-Mar-2009  ad branches: 1.27.4; 1.27.6;
Make ddb compile and work in userspace. Mostly this is comprised of three
types of changes:

- Add a few new methods to replace stuff like p_find(), CPU_INFO_FOREACH.

- Use db_read_bytes() instead of accessing kernel structures directly,
and similar changes.

- Add ifdef _KERNEL where the above hasn't been done, and an XXX comment.
 1.26  21-Feb-2007  thorpej branches: 1.26.46; 1.26.54; 1.26.60;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.25  01-Apr-2006  cherry branches: 1.25.14;
closes: PR kern/32359

modifies machine/db_machdep.h: BKPT_SET(inst) to BKPT_SET(inst, addr) for all archs ie; passess the
breakpoint address as well.

Patch from cherry@mahiti.org
 1.24  27-Oct-2003  junyoung branches: 1.24.16; 1.24.30; 1.24.32; 1.24.34; 1.24.36; 1.24.38;
Nuke __P().
 1.23  11-Aug-2003  atatat Make sure to wrap include opt_foo.h in _KERNEL_OPT.
 1.22  23-Jun-2003  martin branches: 1.22.2;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.21  29-Apr-2003  scw Add a BKPT_ADDR() macro which gives MD code a chance to munge a
breakpoint address before it's used. Currently a no-op on all but sh5.

This is useful on sh5, for example, to mask off the instruction
type encoding in the bottom two address bits, and makes it possible
to do "db> break $rXX" instead of manually munging the address.
 1.20  30-Mar-2003  kristerw Remove unneeded cast that prevents PC_REGS from being used as lvalue.
 1.19  01-Oct-2002  fvdl Merge Bill Sommerfeld's i386 MP branch. This code has some known
caveats, but works quite well in a lot of MP cases, and all
UP cases that I have tested. Parts of this will hopefully be
reworked in the not-too-distant future.
 1.18  12-May-2002  matt Eliminate commons.
 1.17  17-Jun-2001  sommerfeld branches: 1.17.2;
Add %fs/%gs to trap frame and save/restore them on
trap/interrupt/syscall entry from userspace.

Remove special-case "by hand" validation of fs/gs register values as
well as special handling of them in various signal handling paths.

Now, like %ds and %es, they are validated by the hardware on return to
userland.

This paves the way for the use of %fs for per-cpu data on
multiprocessor systems, and fixes an otherwise difficult-to-fix
interaction between threads/clone(2) and USER_LDT.

Discussed in advance with Frank van der Linden.
 1.16  07-Jun-2001  lukem work around lint issue (inspired by similar work in sparc port)
 1.15  29-Jun-2000  mrg branches: 1.15.2; 1.15.4;
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.14  04-Dec-1998  thorpej branches: 1.14.10; 1.14.22;
Support both a.out and Elf32 symbols in DDB.
 1.13  13-Aug-1998  thorpej vm_offset_t -> {vaddr_t,paddr_t}, vm_size_t -> vsize_t
 1.12  26-Jun-1997  thorpej #define DB_AOUT_SYMBOLS
 1.11  06-Feb-1997  gwr FIXUP_PC_AFTER_BREAK now takes an arg of type db_regs_t *
 1.10  03-Feb-1997  mycroft db_expr_t became a long.
 1.9  03-May-1996  christos Comment out unused routines; add prototype for kdb_trap
 1.8  27-Oct-1994  cgd new RCS ID format.
 1.7  09-Oct-1994  mycroft Fix typo.
 1.6  09-Oct-1994  mycroft Eliminate i386_saved_state.
 1.5  03-Apr-1994  mycroft branches: 1.5.2;
Clean up #includes.
 1.4  03-Apr-1994  mycroft Clean up #includes.
 1.3  19-Dec-1993  mycroft branches: 1.3.2;
Cleanup from magnum branch.
 1.2  22-May-1993  cgd branches: 1.2.4;
add rcsids to everything and clean up headers
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.2.4.4  14-Nov-1993  mycroft EFL_TF --> PSL_T
 1.2.4.3  13-Nov-1993  mycroft In watchpoint test, check type == T_TRCTRAP, just to be safe.
 1.2.4.2  13-Nov-1993  mycroft Test for watchpoint trap by inspecting the saved image of %dr6.
 1.2.4.1  16-Oct-1993  mycroft VM_MIN_KERNEL_ADDRESS --> VM_MAX_ADDRESS
 1.3.2.2  19-Dec-1993  mycroft Cleanup from magnum branch.
 1.3.2.1  19-Dec-1993  mycroft file db_machdep.h was added on branch magnum on 1993-12-19 03:41:52 +0000
 1.5.2.1  11-Oct-1994  mycroft Update from trunk.
 1.14.22.1  17-Jun-2001  he Pull up revision 1.17 (requested by sommerfeld):
Add %fs/%gs to trap frame and save/restore them on trap/interupt/
syscall entry from userspace.

Remove special-case ``by hand'' validation of %fs/%gs register
values s well as special handling of them in various signal
handling paths. Now, like %ds and %es, they are validated by
the hardware on return to userland.

This paves the way for the use of %fs for per-cpu data on multi-
processor systems, and fixes an otherwise difficult-to-fix
interaction between threads/clone(2) and USER_LDT.
 1.14.10.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.15.4.3  18-Oct-2002  nathanw Catch up to -current.
 1.15.4.2  20-Jun-2002  nathanw Catch up to -current.
 1.15.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.15.2.5  18-May-2002  sommerfeld Catch up with -current. (commons elimination, changes to MI pci framework)
 1.15.2.4  18-Jun-2001  sommerfeld checkpoint merge-in-progress from mainline.
 1.15.2.3  21-Aug-2000  sommerfeld Add prototype for cpu_debug_dump
 1.15.2.2  18-Aug-2000  sommerfeld Preliminary multi-CPU support. Stop other cpu's on entry to DDB,
resume on exit. Add "mach cpu" command to display the list of CPU's,
and "mach cpu N" to view the registers of cpu N.
 1.15.2.1  29-Jun-2000  sommerfeld file db_machdep.h was added on branch sommerfeld_i386mp_1 on 2000-08-18 13:28:27 +0000
 1.17.2.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.17.2.1  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.22.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.22.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.22.2.1  03-Aug-2004  skrll Sync with HEAD
 1.24.38.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.24.36.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.24.34.1  11-Apr-2006  yamt sync with head
 1.24.32.1  22-Apr-2006  simonb Sync with head.
 1.24.30.1  09-Sep-2006  rpaulo sync with head
 1.24.16.2  26-Feb-2007  yamt sync with head.
 1.24.16.1  21-Jun-2006  yamt sync with head.
 1.25.14.1  27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.26.60.4  27-Aug-2011  jym Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.
 1.26.60.3  02-May-2011  jym Sync with head.
 1.26.60.2  01-Nov-2009  jym Sync with HEAD.
 1.26.60.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.26.54.1  28-Apr-2009  skrll Sync with HEAD.
 1.26.46.1  04-May-2009  yamt sync with head.
 1.27.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.27.4.2  31-May-2011  rmind sync with head
 1.27.4.1  21-Apr-2011  rmind sync with head
 1.30.14.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed