Commit Graph

119 Commits

Author SHA1 Message Date
christos
a0a66e38c7 move MI stuff to the MI include. 2003-09-26 18:09:13 +00:00
christos
85d91a39fe add catch up with const sigset_t * 2003-09-26 18:05:01 +00:00
christos
4f76392503 catch up with const sigset_t * 2003-09-26 18:04:11 +00:00
simonb
550b4bef88 Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test
compiled on most architectures.
2003-09-26 12:02:55 +00:00
fvdl
8f8298758f LONG_BIT should be 64. From Nicolas Joly. 2003-09-19 12:09:51 +00:00
cl
2532f4497c add MD part of SA/pthread pagefault handling on amd64 2003-09-16 15:49:06 +00:00
kleink
d440784b30 __{BEGIN,END}_DECLS-wrap prototypes. 2003-09-11 09:40:11 +00:00
fvdl
5a759ef06c Move the bulk of pci_intr_string into a seperate intr_string function. Use
that new function to print the pciide compat interrupt in pciide_machdep.c.
Share pciide_machdep.c between amd64 and i386.
2003-09-06 17:44:36 +00:00
itojun
fc918f8713 add rnd(4) device to installation media.
necessary for many purposes, including password seeding, tcp sequence number,
and more.  see tech-security
2003-09-06 03:25:23 +00:00
fvdl
cd1ddca4f8 Use MPBIOS_SCANPCI by default. 2003-09-01 00:35:44 +00:00
fvdl
e8769fc0a0 Update a few types and formats. 2003-08-31 23:24:04 +00:00
fvdl
2d5fec0580 Remove a lot of stuff, making it closer to the i386 INSTALL. 2003-08-30 20:09:04 +00:00
itojun
8ebd15f8cd add udav* 2003-08-22 07:52:48 +00:00
itojun
4440262659 create /dev/crypto 2003-08-22 05:06:22 +00:00
fvdl
c43b35423e Pass pointers to frames from assembly, do not use the 'frame on stack
as argument passed by value' trick, as gcc 3.3.x makes (valid) assumptions
about the stack that will not be true. Costs 2 instructions per trap/syscall
on i386, 4 per interrupt for MP. One instruction per trap/syscall on amd64,
2 per interrupt for MP. I expect gcc 3.3.1 to make up for this by better
optimization (it'd better..)

While here, make amd64 compile again by using subr_mbr_disk.c
2003-08-20 21:48:35 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
bouyer
7c840df334 Add esiop at pci to GENERIC which already have siop at pci.
esiop has been tested enouth now.
esiop not added to INSTALL kernels because of possible space constraint.
siop should be able to drive all adapters supported by esiop.
2003-08-06 12:32:03 +00:00
dsl
0ca66aa416 mbr partition stuff isn't saved here (or anywhere else) anymore. 2003-08-04 10:09:10 +00:00
itojun
3f14c71f75 reserve cdev major # for PF. ok'ed by technical-exec 2003-07-27 14:17:57 +00:00
thorpej
063033a023 Since everyone uses clock_subr.c (or should, if they don't currently),
list it in conf/files instead of in every port's files.*.
2003-07-27 01:17:37 +00:00
lukem
37dbc5a71b __KERNEL_RCSID() 2003-07-14 23:32:28 +00:00
kochi
9ab543513d o cleanup usage of ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP
o delete usage of ENABLE_DEBUGGER

As ACPI_ACTIVATE_DEV/ACPI_PCI_FIXUP are defflag'ed in files.acpi,
these options don't have to have a value.
2003-07-06 04:03:21 +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
drochner
1a03e79900 don't #include <sys/dkstat.h> where it is (appearently) unused 2003-06-18 08:58:34 +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
fvdl
afff857edc Add the options MPBIOS_SCANPCI and MPACPI_SCANPCI to configure PCI roots
with the MPBIOS/ACPI bus information, by walking through the buses, and
descending down every bus that hasn't been marked configured yet.
2003-05-29 20:22:28 +00:00
fvdl
3e4b8e3852 Another pair of locks to pacify UVM (XXX -- not needed). 2003-05-27 20:05:35 +00:00
christos
ecaad897e4 make this compile again with -DDEBUG 2003-05-27 16:46:16 +00:00
christos
f74633f4ed another dependency on assym.h 2003-05-27 16:46:03 +00:00
fvdl
c08a75d828 Correct a few maximum values. 2003-05-25 19:29:35 +00:00
christos
56064ce6e8 Add ACPI gunk. 2003-05-21 17:23:35 +00:00
christos
dfc37ed355 clock.o depends on config_time.h 2003-05-17 05:39:35 +00:00
fvdl
db7d3c35bc Decrease the ramdisk size a bit to allow for more options to be added
to the kernel, and still have it fit in 2.88M.
2003-05-15 14:02:00 +00:00
wiz
abefb9582b There are no olms or omms drivers for amd64. 2003-05-15 07:33:51 +00:00
fvdl
e3b6ff6748 Add #if NACPI around acpi attach args. 2003-05-15 02:20:51 +00:00
fvdl
f8a204c941 Add RCS Id and/or copyright notice. 2003-05-14 12:22:34 +00:00
fvdl
d840dd2438 While the previous change actually made the code do what it intended,
it was still wrong. cpu_switch() must return 1 when it switched to
a different LWP, 0 if it didn't. It was doing exactly the reverse.
2003-05-13 09:35:16 +00:00
fvdl
1a53be1e96 Return the correct value in cpu_switch; from Stephan Uphoff for i386. 2003-05-13 08:33:58 +00:00
fvdl
d75682ade1 include <machine/mpacpi.h> 2003-05-11 21:54:49 +00:00
fvdl
83e3d0cccf Add commented out acpi. 2003-05-11 21:41:00 +00:00
fvdl
07ad7b2791 Empty sleep stub function. 2003-05-11 21:39:41 +00:00
fvdl
59f5ef76ed ACPI support. Wakeup code still to be done. 2003-05-11 21:39:00 +00:00
fvdl
31024872ed Reselect the ioapic register for each read or write. 2003-05-11 15:46:57 +00:00
yamt
a421df4c74 remove L_BIGLOCK check for kernel-mode pagefaults in trap().
syscall() and its variants actually does copyin() without biglock.

ok'ed by Frank van der Linden.
2003-05-11 15:19:19 +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
thorpej
2a90e2a9c9 Remove redundant bounds_check_with_label() prototype. 2003-05-10 16:12:02 +00:00
fvdl
edbae54fa5 Enable ioapics. 2003-05-10 14:24:56 +00:00
fvdl
73324eaa5a Revert previous until I look at some issues regarding default labels. 2003-05-08 20:36:12 +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
fvdl
9ad6da9936 Move x86_pause() out of ifdef _KERNEL. 2003-05-08 10:27:43 +00:00
fvdl
8aca0c88d2 Add x86_pause() inline function, containing the "pause" instruction
for i386, and nothing for amd64. Sprinkle it in various spinloops,
as recommended by Intel.
2003-05-08 01:04:34 +00:00
fvdl
c2bd5e2fe9 Don't whine if no disklabel was found, it's not a fatal error. Follows
Jason's commit to the ARM disksubr.c
2003-05-07 23:32:40 +00:00
fvdl
604b3c2a65 Enable LKM. 2003-05-07 22:58:41 +00:00
fvdl
dce33cef19 Set up lkm_map in range of kernel text. 2003-05-07 22:58:18 +00:00
fvdl
38b24046a0 Fix some locking nits found by LOCKDEBUG. Somewhat ugly, since they're
not really needed. But, they're not called very frequently.
2003-05-07 21:25:34 +00:00
fvdl
a4777405c5 unifdef bus/segv/ill logging. 2003-05-04 23:51:56 +00:00
fvdl
9756b6a911 Follow i386, and mask deferred level-triggered interrupts at the ioapic. 2003-05-04 23:46:41 +00:00
fvdl
041046e740 Default to -O2. 2003-05-04 12:03:41 +00:00
fvdl
7a214454f6 Correct save FP state for signals. 2003-05-04 12:00:14 +00:00
fvdl
b5233cbfdd Add dummy eisa option to ease sharing with i386. 2003-05-03 14:24:52 +00:00
yamt
4b800ec987 set symbol to be a function using .type directive in IDTVEC macro
so that ddb backtrace can pick them up after recent ksyms changes.

suggested by Matt Thomas on tech-kern.
ok'ed by Frank van der Linden.
2003-05-02 18:05:46 +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
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
fvdl
a4d65735ea Fix *LONGMAX values. 2003-04-27 22:33:49 +00:00
fvdl
176ac62c3e Skip sym space if ksyms or LKMs are included, too. 2003-04-26 19:34:45 +00:00
fvdl
043f21d9ea x86_64 -> amd64 2003-04-26 19:14:17 +00:00
fvdl
81918bf8b4 Rename the x86_64 port to amd64, as this is the actual name used for
the processor family now. x86_64 is kept as the MACHINE_ARCH value,
since it's already widely used (by e.g. the toolchain, etc), and
by other operating systems.
2003-04-26 18:39:25 +00:00