Commit Graph

3476 Commits

Author SHA1 Message Date
thorpej
452a8fdae2 Rename IPL_IMP -> IPL_VM. 2003-06-16 20:00:56 +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
thorpej
22a1ce1e9d Add -ffreestanding. 2003-06-01 00:43:47 +00:00
nakayama
c80c657a39 Correct invalid type. 2003-05-20 13:38:00 +00:00
martin
c189434481 Make kernels with options KGDB compile. (Didn't test kgdb though) 2003-05-18 16:45:21 +00:00
nakayama
ca7665c318 Don't traverse here in case of sparc64 32-bit environment. 2003-05-17 02:45:04 +00:00
nakayama
6256a4034a Make sure to remove lib directories. 2003-05-17 02:30:14 +00:00
nakayama
cd35e5f630 Make sure to remove proper link. 2003-05-17 02:26:27 +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
thorpej
36da248c07 Back out the following chagne:
http://mail-index.netbsd.org/source-changes/2003/05/08/0068.html

There were some side-effects that I didn't anticipate, and fixing them
is proving to be more difficult than I thought, do just eject for now.
Maybe one day we can look at this again.

Fixes PR kern/21517.
2003-05-10 21:10:23 +00:00
martin
f4e8d9c840 Remove a spurious Debugger() call in a "this should never happen"
(SUN4U only) code path.
2003-05-10 13:26:44 +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
pk
d44463bc60 GC old FPU code. 2003-05-07 08:25:30 +00:00
pk
c84d68a75a cpu_exit(): keep the MD FPU pointers in a consistent state since the thread
structure will linger for a while on various zombie lists.
2003-05-07 08:24:29 +00:00
pk
c1b72e3dc0 Fixup comment on cpu_exit(). 2003-05-07 08:19:21 +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
pk
5ac72273d9 Restore TLB flushes when removing level 2 & 3 page tables (these went missing
in revision 1.242).
2003-05-01 14:14:46 +00:00
martin
d7259b772a Make this compile with __FULL_SPARC_BUS_SPACE,
from Steve Rumble in PR 21398.
2003-04-30 22:12:34 +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
bjh21
4be7a2dcf3 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
2003-04-28 23:16:11 +00:00
ragge
d79e49080c #ifdef around end[]. 2003-04-26 14:12:22 +00:00
ragge
d8c8fa8111 Add pseudo-device ksyms. 2003-04-26 14:10:04 +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
martin
d313e6d92e Add sysmon device. 2003-04-20 16:53:46 +00:00
christos
a2dfb1b570 PR/3012: Greg A. Woods: Write all float.h files [except the vax of course]
in terms of float_ieee.h
2003-04-19 23:05:28 +00:00
jdc
7a2abff303 Always include (new) cpuconf.h.
From Christopher SEKIYA in PR port-sparc/21093.
2003-04-11 13:55:24 +00:00
jdc
eacecff6bb Install (new) cpuconf.h.
From Christopher SEKIYA in PR port-sparc/21093.
2003-04-11 13:54:16 +00:00
christos
b9f9db3ca2 Bye Bye UCONSOLE 2003-04-10 22:06:51 +00:00
thorpej
d154229cf2 Don't define PAGE_SIZE, etc. in terms of NBPG, rather use the same
logic as used by <machine/param.h> to define constant PAGE_SIZE if
possible.

Also define the minimum and maximum PAGE_SIZE that might appear in
any given configuration (4K and 8K, respectively).
2003-04-09 16:27:06 +00:00
thorpej
efdd83f440 Move CPU configuration predicates to <machine/cpuconf.h>. 2003-04-09 16:22:33 +00:00
uwe
b0645fe98e Add names for v8 traps (cf page 76, table 7-1).
Fix coprocessor disabled/exception traps that were placed incorrectly:
cp_disabled == 0x24 (0t36) was placed at 0x36, ditto for cp_exception.
2003-04-08 21:56:31 +00:00
uwe
d7080d6b9d In msiiep_attach print \n to terminate its attachment line. 2003-04-08 15:16:14 +00:00
uwe
cb7b4919ec Make v8_*_len symbols local so that they don't get in the way in ddb. 2003-04-08 01:51:46 +00:00
he
b44c5e8370 Track changes introduced when UFS2 was merged, so that this builds again. 2003-04-05 08:58:55 +00:00
christos
14e617d80f try to make this work with ufs1 only. 2003-04-03 22:10:12 +00:00
thorpej
02efafccdc Use PAGE_SIZE rather than NBPG. 2003-04-02 04:35:22 +00:00
pk
a63321f624 pmap_kprotect: use supervisor permissions; don't bother checking for `no
change' case, it's not worth the effort.
2003-03-25 11:33:46 +00:00
hannken
f2746edc5b Explicit cast for netif.
Approved by: Matthias Drochner <drochner@netbsd.org>
2003-03-13 12:02:54 +00:00
jdc
cc782e8a7e Make this compile with only SUN4 defined. 2003-03-12 07:51:00 +00:00
lukem
6107a9b605 crank memory disk from 1360 blocks to 1376 blocks 2003-03-08 00:04:36 +00:00
pk
f26c7b7e7f Note a kernel pmap locking problem in pmap_kenter_pa4m(). 2003-03-03 22:43:58 +00:00
tshiozak
31e2cbf0b5 add some ISO C 1995 I18N functions and types:
btowc, wctrans, towctrans, wcscoll, wcsxfrm, wctype_t and wctrans_t.
2003-03-02 22:18:11 +00:00
pk
77accc351e Use the new pmap_kprotect() function instead of pmap_changeprot().
The latter is now a pmap internal function; and it wasn't used correctly
in mkclock.c anyway.
2003-03-02 21:42:48 +00:00
pk
22cf03a09f pmap_changeprot() is not a UVM <-> PMAP interface function; make it internal.
Provide pmap_kprotect() for MD code to change protection on a range of
kernel addresses (cuurent users: intr.c and mkclock.c).
2003-03-02 21:37:20 +00:00
pk
1b5340d327 Add support for large kernels by searching for a physical memory segment
to fit it in. As a bonus, the kernel is now also mapped to the virtual
address (i.e. KERNBASE) it is linked at.
2003-03-01 13:01:55 +00:00
perseant
eab869e1c0 Make BRIDGE_IPF an option, and document it. Add it (commented) to GENERIC.
Let brconfig tell whether the bridge is using the ipfilter hook, or not.
2003-02-27 19:22:36 +00:00