fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
martin
69cd0c4a54
struct proc * -> struct lwp *
2003-06-29 13:33:51 +00:00
martin
2edcbf6bb2
struct proc * -> struct lwp *
2003-06-29 10:37:45 +00:00
martin
c101c976d0
Passing struct lwp * instead of struct proc * to device functions.
2003-06-29 10:29:33 +00:00
martin
84a6dd7e55
Passing struct lwp * instead of struct proc * to device functions,
...
replace a homegrown check with proper suser() call.
2003-06-29 10:29:17 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
martin
d505b18964
Make sure to include opt_foo.h if a defflag option FOO is used.
2003-06-23 11:00:59 +00:00
nakayama
64dc0184cc
s/options\t/options \t/
2003-06-20 03:15:05 +00:00
martin
e0b0d04377
Ooops, I didn't intend to enable kgdb by default here.
...
(Since the related changes are not yet commited, it doesn't even compile)
2003-06-19 14:39:52 +00:00
agc
7ebe0b8c4b
Make this compile.
2003-06-19 14:08:54 +00:00
martin
dbe43da717
Add missing COMPAT_ options.
2003-06-18 09:38:56 +00:00
drochner
1a03e79900
don't #include <sys/dkstat.h> where it is (appearently) unused
2003-06-18 08:58:34 +00:00
thorpej
452a8fdae2
Rename IPL_IMP -> IPL_VM.
2003-06-16 20:00:56 +00:00
heas
d00e9c2510
Define option BLINK in option file opt_auxio.h and include it in auxio.c.
...
approved by martin@
2003-06-16 19:24:51 +00:00
fvdl
7dd7f8baa2
Handle 64bit DMA addresses on PCI for platforms that can (currently only
...
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
thorpej
0eff671820
Also pass a type argument to comcnattach() and com_kgdb_attach().
...
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
petrov
49d4047a8f
Pick up from OpenBSD:
...
The sab driver sometimes gets out of sync with the hardware. This can
cause the serial console to hang.
2003-06-13 01:33:32 +00:00
petrov
7c89964036
Use cdevsw_lookup_major.
2003-06-11 22:51:03 +00:00
petrov
175f7ab29d
Comment out debug output.
2003-06-11 22:50:12 +00:00
martin
b812b130a9
Remove commented out and nowadays incorrect KGDB declarations.
2003-05-26 21:12:07 +00:00
petrov
f52795a415
ffb added.
2003-05-23 06:57:58 +00:00
petrov
49f3f8ccaf
Port of OpenBSD ffb driver written by Jason L. Wright.
2003-05-23 06:51:15 +00:00
martin
a47f54c6b8
Make kernels with options KGDB at least compile.
...
Still needs some work to make it working.
2003-05-18 22:11:31 +00:00
martin
ce380782ec
My reading of the gdb code seems to indicate it expects 125 registers
...
from sparc64, not 72 (sparc value). Bump kgdb buffer size a bit too.
2003-05-18 21:00:57 +00:00
martin
6b8eb7fd4f
Remove reference to non-existing file
2003-05-18 20:56:54 +00:00
nakayama
a8c34ddce5
Avoid comparison is always false warnings in gcc 3.3 w/ 32-bit kernels.
2003-05-17 01:49:59 +00:00
nakayama
67e3486872
Avoid integer constant is too large warnings in gcc 3.3.
2003-05-17 01:48:22 +00:00
nakayama
d0f6668f6d
Avoid strict-alias warnings in gcc 3.3.
2003-05-17 01:38:39 +00:00
dsl
88b103687c
ktrace rval[1] - in order to get both fd numbers for pipe()
2003-05-15 12:56:16 +00:00
martin
2bfee7cbe0
Backout previous, it was apparently ovelooked when backing out the
...
change in other places.
2003-05-13 08:39:25 +00:00
kleink
776138ea69
Rename <sys/float_ieee.h> to <sys/float_ieee754.h>, following libc's
...
convention for these.
2003-05-12 15:22:53 +00:00
thorpej
e43fecb228
Change bounds_check_with_label() to take a pointer to the disk structure,
...
rather than the label itself. This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
martin
87c22b8198
Convert a few home-grown if()... Debugger() sequences into real panics.
2003-05-10 14:10:54 +00:00
martin
c1a485bec1
Remove a spurious Debugger() call.
2003-05-10 14:03:19 +00:00
martin
9ce1071f1c
We are always using ELF on sparc64, so nuke bogus test for DB_ELF_SYMBOLS.
2003-05-10 13:35:10 +00:00
thorpej
b77900c3c2
Simplify the way the bounds of the managed kernel virtual address
...
space is advertised to UVM by making virtual_avail and virtual_end
first-class exported variables by UVM. Machine-dependent code is
responsible for initializing them before main() is called. Anything
that steals KVA must adjust these variables accordingly.
This reduces the number of instances of this info from 3 to 1, and
simplifies the pmap(9) interface by removing the pmap_virtual_space()
function call, and removing two arguments from pmap_steal_memory().
This also eliminates some kludges such as having to burn kernel_map
entries on space used by the kernel and stolen KVA.
This also eliminates use of VM_{MIN,MAX}_KERNEL_ADDRESS from MI code,
this giving MD code greater flexibility over the bounds of the managed
kernel virtual address space if a given port's specific platforms can
vary in this regard (this is especially true of the evb* ports).
2003-05-08 18:13:12 +00:00
martin
ae2073f3d8
Make all non-trivial bus space functions "static __inline" (consistently)
...
and turn all macros with local blocks and declarations into functions.
This fixes PR 19975.
2003-05-05 09:36:51 +00:00
martin
57482255bc
When overwriting the cache line size configuration, do not use the magic
...
value 0x10, but instead calculate a line size that is properly aligned
to the IOMMU strbuf cache and our external cache line size.
From FreeBSD.
2003-05-05 07:51:26 +00:00
martin
d22ec31292
Move the bus speed query code into it's own function and make it default
...
to 33 MHz. Cosmetics, no functional change.
2003-05-04 21:36:26 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +00:00
dsl
d91455ce26
Change return type of readdisklabel() to const char *
...
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
scw
8c5c893bf7
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.
2003-04-29 17:06:03 +00:00
nakayama
1af3731706
- Add ehci at pci.
...
- Correct locator names for fwnode, and add sbpscsi at fwnode.
2003-04-29 16:17:12 +00:00
nakayama
4a9dc3167f
Use device attributes, atapi, audiobus and midibus,
...
instead of each devices.
2003-04-29 15:59:08 +00:00
nakayama
7949ab62e7
Wrap a 64-bit mode case with #ifdef __arch64__ for 32-bit kernels,
...
and fix typo in comment.
2003-04-29 05:59:16 +00:00
nakayama
9ab502701d
Use BLOCK_ALIGN rather than BLOCK_SIZE for aligning a pointer.
2003-04-29 05:53:11 +00:00
ragge
1989d659bb
Preserve the symbol table in the LKM || KSYMS cases also.
2003-04-27 10:42:48 +00:00
ragge
4a0e449b1e
Add pseudo-device ksyms.
2003-04-26 14:34:16 +00:00
ragge
69a66687f8
Call ksyms_init() instead of ddb_init() in case of
...
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00
ragge
766d04f56a
Add ksyms device major.
2003-04-25 21:10:46 +00:00