Commit Graph

6282 Commits

Author SHA1 Message Date
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
simonb aa57e31a39 Make mptrap.o depend on assym.h; fixes GENERIC.MP -j N kernel build. 2003-07-05 16:56:10 +00:00
christos 76da28320e use the real linux_rt_sigreturn. 2003-07-03 21:25:45 +00:00
dsl 48046920d6 Fix copyright - it got mangled earlier.
Added a mention of Wolfgang Solfrank - there are probably only comments left
from the much older mbr.S that he contributed.
(Wolfgang pointed out the mangled copyright, but doesn't object to the removal
of the Tools GmbH one.)
2003-07-02 14:35:51 +00:00
kanaoka 63ffb11606 - Cleanup usage of ACPI_ALLOCATE_BUFFER/AcpiOsFree combination.
Patch from kochi.
2003-07-02 13:18:17 +00:00
kanaoka 88acff6621 - Remove unneed include file. 2003-07-01 20:24:46 +00:00
simonb ad51219ae3 Make this work without a populated destdir:
machine and x86 symlinks.
 Include from right places.
 Don't depend on LIBCRT0,etc.

Also for the bootxx programs, keep the ELF object during the build
process.
2003-07-01 13:36:59 +00:00
thorpej 221d313d7c Allow SOURCES to be overridden. 2003-06-30 17:54:06 +00:00
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
darrenr 887069bda8 Revert out an accidental commit. 2003-06-28 15:34:41 +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
fvdl 1c961078b9 Mark a CPU as no longer running when it gets a HALT IPI. Avoids other
CPUs getting stuck waiting for it because they sent a TLB shootdown
during shutdown.
2003-06-28 11:33:19 +00:00
drochner 9c0e4279cc remove unneeded cpu_feature declaration 2003-06-26 16:48:18 +00:00
drochner 491828ab43 cpu_feature is not set (nor used) by locore since SMP, so move the
definition to C code
2003-06-26 16:47:15 +00:00
drochner 1fa5ee8d10 make cpu_feature unsigned, just like ci_feature_flags 2003-06-26 16:45:19 +00:00
drochner 31f515916f -make cpu_feature unsigned, just like ci_feature_flags
-clean up duplicate declaration of cpu_info_primary
2003-06-26 16:41:32 +00:00
drochner 470de734bd remove redundant "extern" declarations 2003-06-26 16:37:20 +00:00
thorpej 7401047528 Add a way to force (at compile time) use of int13 extensions. 2003-06-25 04:21:51 +00:00
tron 64e5c9eb7c Remove "lib" directory in "cleandir" target. 2003-06-24 09:38:35 +00:00
martin cd7023a3eb Backout previous, this file is not affected by kernel options. 2003-06-23 14:48:37 +00:00
martin 4858ba3d93 Protect kernel opt_*.h include by #ifdef _KERNEL_OPT 2003-06-23 12:56:07 +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
kanaoka d25a3f14d9 - Remove the unused polling code.
- Clean up the code a bit.
2003-06-19 10:13:14 +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
abs a16551d502 Correctly escape newlines in a string - now can be compiled under gcc3 2003-06-13 10:56:41 +00:00
drochner 0256604827 nuke unnecessary #include <sys/dkstat.h> 2003-06-12 14:44:36 +00:00
dsl 63336846ea Increase sizes of space for ramdisks 2003-06-05 14:33:51 +00:00
gmcgarry 9dcb47fcad Add devices hanging off GPIB. 2003-06-02 04:03:04 +00:00
gmcgarry 0a3dc90fb5 Pull-in GPIB. 2003-06-02 04:02:20 +00:00
kleink 9adea725c5 {u,}intptr_t are ints again. 2003-05-30 11:07:38 +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
christos 0328813526 Back to unsigned int and int for {u,}intptr_t, otherwise java has no chance... 2003-05-29 18:06:55 +00:00
thorpej 84b00019df Comment out DEBUG_MEMSIZE. 2003-05-24 03:38:58 +00:00
lukem f94e08c4e2 tweak previous; use '%#x' instead of '0x%x' (and the lx equivalents) 2003-05-21 23:47:55 +00:00
kristerw 9dc4f5f533 Add some db_sym_t casts to make this compile with -D__AUDIT__. 2003-05-21 23:12:18 +00:00
simonb 830dc8ea61 Prefix a hex error number with "0x". 2003-05-21 16:48:34 +00:00
kristerw 5c192de38a Use __asm instead of asm, to make lint happy. 2003-05-20 22:53:35 +00:00
kristerw 812c1d95e8 Add LINTSTUB: include <sys/types.h> 2003-05-20 20:24:18 +00:00
kanaoka fd8774e6d5 Fix a typo in a comment. 2003-05-20 12:50:27 +00:00
wiz 223c68ba9c Fix typo in debug message. 2003-05-20 12:14:17 +00:00
kanaoka 450fc069f6 - Use AcpiOsQueueForExecution instead of calling vald_acpi_event() directly
in Notify handler.
2003-05-20 12:09:56 +00:00
dsl 7452c78152 Fix botched nathanw_sa_merge change
fixes port-i386/21603
2003-05-17 10:34:39 +00:00
wiz 8381108e2a Don't install machine/mouse.h on i386 and prep; there are no users for
the old busmouse interface any longer, we use wsmouse now.
2003-05-15 18:51:18 +00:00
wiz ee6d7b94d4 Remove last traces of obsolete olms and omms drivers.
Ok'd by drochner and fvdl.
2003-05-15 13:13:21 +00:00
dsl 341c4563e3 Incorrect sector number passed to boot1 in floppy (no mbr) case 2003-05-15 08:50:53 +00:00
drochner 1927ae6a7e -remove opms attachment stuff which is pointless after
opms itself was removed
-do the bus_space reservation in any case
-extend a compile-time check: pccons and ega can't coexist either
2003-05-14 12:10:04 +00:00
drochner b370f1bff8 remove opms attachment stuff which is pointless after
opms itself was removed
2003-05-14 12:04:56 +00:00
drochner 00b4e62a0a fix "unintialized variable" warning 2003-05-14 11:27:39 +00:00
thorpej af1933bfc8 Add icp at chr 102. 2003-05-13 15:43:42 +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 297e776d44 Make cpu_switch return the correct value. From Stephan Uphoff, PR 21558 2003-05-13 08:26:32 +00:00
dsl f8607e15d6 KNF and indentation police 2003-05-12 14:59:51 +00:00
dsl f9bb4eea5d Build my new i386 bootcode 2003-05-12 14:48:56 +00:00
dsl 18e1c04d74 Don't override PROG from subdir Makefile
Install into /usr/mdec
2003-05-12 14:35:54 +00:00
dsl 5ba5335a38 Install into /usr/mdec 2003-05-12 14:34:55 +00:00
dsl 0e9fdbb612 Remove some unused defines 2003-05-12 14:33:49 +00:00
yamt 38312b0116 fix "Frame really belongs to next callpc" case. 2003-05-12 13:38:49 +00:00
yamt dc45c698c2 use 'pr' supplied by the caller instead of printf. 2003-05-12 13:16:11 +00:00
joda c2f624f5b2 it's "pentium m" not "pentium-m" 2003-05-12 11:01:17 +00:00
fvdl 19bd661dcc Add a new include file with some ACPI MD macros, to move i386 specific
stuff out of acnetbsd.h
2003-05-11 21:05:19 +00:00
fvdl 7579aadd9b Redirect to x86/ 2003-05-11 18:46:59 +00:00
fvdl 2e91dc8e00 Update for acpi file move to sys/arch/x86/x86. 2003-05-11 18:24:12 +00:00
fvdl fc926e2c62 Moved to sys/arch/x86/x86 2003-05-11 18:23:17 +00:00
fvdl a800a2a6d2 This file was moved to sys/arch/x86/x86 2003-05-11 18:19:18 +00:00
fvdl f946c62f8e Redirect to x86/. 2003-05-11 18:18:08 +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
fvdl 795fec2b60 The i82093 spec is unclear about it, but my assumption that the selected
ioapic register would stick across a read+write appears to be invalid
for some ioapics. So, select it again for the mask write.
2003-05-11 14:02:17 +00:00
fvdl ecb17acb5c * defer actual ACPI interrupt establishment until after the mp_intr tables
have been set up
* store global_int for the MPACPI intr table build case
* use it to find the desired int number passed down to the ACPI intr
  establish call
2003-05-11 00:08:15 +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 e5ad654753 Silence a gcc 3 warning about a 'x = ++x % foo' construct. 2003-05-09 00:16:55 +00:00
fvdl daea75d74a installboot is compiled in native mode on amd64, unlike the other
things around here. Hence, the machine/ include dir must actually
point to its own.
2003-05-09 00:11:26 +00:00
fvdl 2ade80fac8 A fraglist entry struct must be packed, to make installboot dtrt on amd64. 2003-05-08 23:09:30 +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
kochi 749dbc9fd5 Fix missing break for switch statement. 2003-05-08 14:06:48 +00:00
christos 9dbe78f136 This is a host program. Don't use errx. 2003-05-08 13:42:17 +00:00
fvdl 6aa7a50be4 Adapt for new bus_dma structure.
XXX the MCA-specific stuff in here was never actually used. I pointed
the tag at all the generic functions that can now be used (bounce
functionality was integrated into them).
2003-05-08 12:47:39 +00:00
fvdl 601a2c4d48 Adapt tag initialisation to the new fields that were added recently. 2003-05-08 12:05:34 +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 94cad743e8 Use ${MACHINE} when generating the version string, not plain 'i386'. 2003-05-05 20:49:10 +00:00
hubertf 76a6e18152 use nm(1) to output decimal values immediately, instead of relying on a
(non-working) sh(1) construct.

Reviewed by simonb & bjh21.
2003-05-05 13:38:23 +00:00
dbj 3359b0ac58 force nm addresses in hex and add 0x prefix before handing numerical
expression to the shell.
2003-05-05 02:47:42 +00:00
fvdl 2cd70f0da1 Block level-triggered interrupts at the ioapic if they are deferred.
Avoids interrupt storms seen on some systems. Many thanks to
Stoned Elipot for testing.
2003-05-04 22:01:56 +00:00
ad 225c45d817 Enable the amr driver. 2003-05-04 16:16:18 +00:00
lukem 83fa31ab4c be consistent with other Makefiles here and invoke "rm -f" separately to ln -s 2003-05-04 06:32:39 +00:00
lukem 1d22d3e3ca replace "ln -sf .... $@" with "rm -f $@ && ln -s .... $@"
since the latter works correctly ...
2003-05-04 06:25:10 +00:00
wiz 1ffa7b76c4 DMA, not dma nor Dma. 2003-05-03 18:10:37 +00:00
fvdl 91ccfbdaab Clean up machine include dir handling a tad. 2003-05-03 17:54:21 +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
yamt 04ef812793 add spl.S, vector.S and microtime.S to MD_SFILES so that
'make depend' takes care of them.
2003-05-02 17:40:13 +00:00
tron f4370adfbe Fix typo in last commit: static -> const 2003-05-02 09:36: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
dsl cbcf556e10 Build mbr code here (instead of in sbin/fdisk/mbr) 2003-04-30 19:52:17 +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
dsl 798f520353 Set BFL_NEWMBR flag so that fdisk can differenciate between new and old mbr code. 2003-04-29 10:24:24 +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
dsl b40733ee1b Master Boot Record (mbr) code:
mbr:		boots active partition
mbr_bootsel:	menu selection for partitions 1 to 4
mbr_ext:	menu selection for partitions 1 to 4 and extended partitions
Based on code from sbin/fdisk/mbr_bootsel.
Needs a new fdisk to configure mbr_ext and correctly set default menu selection.(Not yet built by defaulat)
2003-04-28 12:19:05 +00:00
wiz c42e1fac66 Management, not managment. Mostly from jmc@openbsd. 2003-04-26 22:07:12 +00:00
fvdl 043f21d9ea x86_64 -> amd64 2003-04-26 19:14:17 +00:00
fvdl caaaf66e32 x86_64 -> amd64 2003-04-26 19:13:37 +00:00
fvdl a7c0cbd744 Save symtabspace in the LKM || KSYMS case as well; otherwise it'll overlap
with the page table pages for the kernel, and Bad Things will happen.
2003-04-26 18:13:16 +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
fvdl 4b293b5851 Share some common cache info cpuid code between i386 and x86_64. 2003-04-25 21:54:29 +00:00
ragge 766d04f56a Add ksyms device major. 2003-04-25 21:10:46 +00:00
dsl 82d4d158d2 Missing end of comment 2003-04-24 17:41:03 +00:00
dsl c9a0a49ac7 Don't use ENTRY - it aligns the label and we can't afford the space.
Adjust coding to save 2 more bytes (assume 'D' flag clear - it is)
2003-04-24 17:40:32 +00:00
dsl cf4ada7934 Fix code that scans extended partition list 2003-04-24 17:37:54 +00:00
yamt 5d60643560 use acpi notify mechanism if possible.
XXX i'm not sure if there're PCs that actually need to fall back to polling.
2003-04-23 15:48:35 +00:00
jmmv f302f813f2 Bump ramdisk size to 3000 blocks. 2003-04-23 14:21:07 +00:00
fvdl bee66ff5b4 Add commented-out ahd driver. 2003-04-21 00:17:46 +00:00
fvdl 6886cf85b0 Initialize name and dma tag. 2003-04-20 16:54:23 +00:00
martin c1a5cc810d The sysmon device is used for sysmon_power too. 2003-04-20 16:51:35 +00:00
fvdl 4d6d3fb37b Call ahc_softc_init in attach function. 2003-04-20 15:48:25 +00:00
fvdl 349233c2db Adapt to new backend. Needs testing. 2003-04-19 19:36:20 +00:00
thorpej 091e93c002 Bump ramdisk size to 4600 blocks. 2003-04-17 22:57:16 +00:00
thorpej 9cac2cc6d1 Add mpt(4). 2003-04-16 23:39:02 +00:00
thorpej e56e76188e Fix a typo. 2003-04-16 23:36:22 +00:00
dsl 60c3e62a42 Add files for 2nd stage boot loader 2003-04-16 22:36:14 +00:00
dsl b10e65e490 Uncomment line that deletes tempory file 2003-04-16 22:34:00 +00:00
dsl 415cb92c98 Add functions needed by new boot code 2003-04-16 22:30:40 +00:00
dsl 2737b135d5 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:27:35 +00:00
dsl eb2692a8d2 bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
2003-04-16 22:16:36 +00:00
dsl c8db3bdc65 Partially reverse previous change.
Reset RTC only if ntp is running or adjtime system call has changed time.
2003-04-16 21:37:37 +00:00
dsl 1c31ec44a3 Don't set the RTC to kernel time during shutdown.
This stops the system RTC drifting if any hardclock ticks were missed (eg
if the system spent any time at the kdb prompt).
The RTC is set whenever the system clock is set, so setting at shutdown
is unnecessary.
2003-04-16 19:07:34 +00:00
dsl fe778b7b70 Remove definition of LIBSA_SUPPORT_UFS2, the source will only build separate
ufsv1 and ufsv2 objects (the merged one was too large for the code that only
supported a single fs type).
2003-04-16 19:03:33 +00:00
dsl 586810c59b Routines to switch between 16bit real and 32bit protected modes 2003-04-16 17:38:43 +00:00
dsl 0c5af93233 Add some debug prints to the memory size code 2003-04-16 15:03:59 +00:00
bouyer aec10dd80c Nake return values from bounds_check_with_label() conform to the man
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().
2003-04-16 15:00:59 +00:00
dsl cb61d88cb5 Add baud_rate arg to cominit_d 2003-04-16 14:58:32 +00:00
dsl e60ac53619 Modify baud rate handling to make it easier to take it from a variable.
Default to 9600 if the requested baud rate is illegal.
2003-04-16 14:56:55 +00:00
dsl d5b5933e8c remove unused defines 2003-04-16 14:23:11 +00:00
dsl 616c6baa61 Add code to parse V3.x bios disk information.
This should let NetBSD guarantee to tie together the bios disk numbers
with the physical hardware.
#defined out because I don't have a system with a bios that supports it.
2003-04-16 14:22:29 +00:00
dsl 621f25533d Add cvs version, delete unused definition 2003-04-16 13:49:21 +00:00
dsl 2ae46742a2 Add prototyps for all the asm bios/dos calls 2003-04-16 13:47:53 +00:00
dsl 4cf0478777 additional support routines for boot code 2003-04-16 13:24:09 +00:00
dsl 1d68743dfc C code now sets length of disk info structure 2003-04-16 12:45:10 +00:00
dsl 7119639d07 used daddr_t for disk block numbers,
add definitions for v2 and v3 disk info structures
2003-04-16 12:43:45 +00:00
dsl fd18f39232 Use daddr_t for disk block numbers,
Set size of extended disk info structure in the C code
2003-04-16 12:41:03 +00:00
scw 3e475eb186 From PR port-i386/20464, by Yoshihisa Nakagawa: Match i845G AGP bridge. 2003-04-16 07:37:09 +00:00
dsl 225615a61a avoid calling toupper with posibly -ve value. fixes PR 21171 2003-04-14 11:33:40 +00:00
simonb 4dcb48921b Use "options<space><tab>". 2003-04-12 07:39:39 +00:00
nathanw ff28c51cc0 Make cpu_getmcontext() run the PC through ras_lookup() so that kernel
getcontext() plus userlevel setcontext() (as used in libpthread) respects
the atomicity of RAS regions.
2003-04-11 22:02:28 +00:00
drochner 7e56069d9c IPR_VJ -> IRIP_VJ 2003-04-11 14:55:39 +00:00
dsl 243bb03c7c Explicitly specify both ffsv1 and ffsv2 2003-04-11 11:36:28 +00:00
christos b9f9db3ca2 Bye Bye UCONSOLE 2003-04-10 22:06:51 +00:00
thorpej a0aee79a1d Add the ability for pool caches to cache the physical address of
objects.  Clients of the pool_cache API must consistently use
the "paddr" variants or not, otherwise behavior is undefined.

Enable this on Alpha, ARM, MIPS, and x86.  Other platforms must
define POOL_VTOPHYS() in the appropriate manner in order to enable
the feature.

Part 1 of a series of simple patches contributed by Wasabi Systems
to improve network performance.
2003-04-09 18:22:13 +00:00
thorpej fe57487140 Remove something accidentally included in last commit. 2003-04-09 18:17:34 +00:00
thorpej cf9d21bf8e Use PAGE_SIZE rather than NBPG. 2003-04-08 23:39:14 +00:00
abs 89c93ddc45 Note that BSDI binaries require COMPAT_12, COMPAT_13, and COMPAT_43.
Addresses PR/3553, PR/6872, and PR/8029. Does not address PR/7262
Also add some missing COMPAT_15 entries.
2003-04-08 18:58:19 +00:00
perry 31cbf7d80d Add gentbi* PHYs
I noted in reading the log for PR kern/20988 that they were missing
XXX I'm not sure I got the name in the comment right, but if I don't
XXX do this who will?
2003-04-05 18:41:19 +00:00
kent 5e655987ff Print correct name for Pentium-M 2003-04-05 17:16:06 +00:00
perry 773de18a27 Recognize VT82C596A
Patch from Christopher SEKIYA in PR port-i386/21013
2003-04-05 16:03:48 +00:00
christos a9c71d20ab bioscall.S needs assym.h now. 2003-04-02 22:10:23 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
thorpej cc2c493bc4 Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
mycroft d35a2d2955 Add -DSLOW to reduce the size of libz a bit. 2003-04-01 21:25:34 +00:00
mycroft 96f88c853c Trivial const poisoning. 2003-04-01 21:10:45 +00:00
thorpej b4fe782331 Use PAGE_SIZE rather than NBPG. 2003-04-01 20:48:27 +00:00
kristerw 820df2464a Remove unneeded cast that prevents PC_REGS from being used as lvalue. 2003-03-30 02:03:12 +00:00
jmmv 68fc25182e Implement the beep on halt feature. When enabled, it makes the kernel beep
the computer speaker when it's completely safe to power down the machine
(after the "The operating system has halted." message).  This is useful for
headless machines.

The feature is only enabled if the BEEP_ONHALT option is defined (disabled      by default).  It can be tuned through the BEEP_ONHALT_{COUNT,PERIOD,PITCH}      options.

Closes my own PR kern/18792.
2003-03-25 19:37:12 +00:00
dsl 281c2b075c GEOM_DEBUG was left set :-( 2003-03-22 13:05:26 +00:00
dsl bd99e3429d Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
2003-03-21 23:11:19 +00:00
drochner 11d8ce0e4e catch up with constification in sys/lib/libsa/nfs.c 2003-03-19 17:27:43 +00:00
fvdl 93d2b9ee12 Add some underscores in curcpu() to avoid a -Wshadow. 2003-03-18 22:29:58 +00:00
cjep de21c5e413 kernal -> kernel 2003-03-16 19:42:09 +00:00
jdolecek 4b261fc76f allocate majors for vmmon/vmnet - VMware pseudo devices
we have the sources in othersrc tree now, so it's useful to have some
other bits in tree as well to simplify module use
2003-03-16 18:04:08 +00:00
jmmv d69e6401db Note the DDB_ONPANIC option (commented out). Closes my own PR port-i386/17649. 2003-03-15 19:34:16 +00:00
drochner 6b8fef6400 cleanup, delete declarations now in libsa/iodesc.h 2003-03-13 16:02:39 +00:00
drochner 9b72b507ef -use our own netif layer
-call the pxe unload function only on close(), not on open() errors,
 so we have a chance to retry
-remove some remaining references to NFS
2003-03-12 17:35:57 +00:00
drochner 168322ea77 kick out mi libsa/netif.c references 2003-03-12 17:33:55 +00:00
drochner 542ccfb0d5 Kick out the netif layer from mi libsa and implement an own, smaller, one
(we really don't need to support multiple interfaces)
Also arrange things so that we are able to unload the PXE stacks only
when we are sure that we don't need them anymore. (To make this more
useful, a hook in exec() is needed.
2003-03-12 17:33:10 +00:00
drochner 1ebc8c2dbd cleanup:
-update comments
-remove remaining references to "bootparam"
-don't try to interpret extra arguments to net_open() - we
 get only passed a NULL anyway (see devopen.c)
2003-03-12 13:15:08 +00:00
drochner c693137139 sync with mi libsa/nfs.c (with the intent to replace it eventually):
-kill "register" attributes
-obey "LIBSA_NO_TWIDDLE"
-ignore leading "/" also in the NFS_NOSYMLINK case
2003-03-12 12:23:06 +00:00
drochner a82c138b1c If we get passed a filename (from the command line or default "netbsd"),
pass it to the BOOTP server in the "filename" field.
(as the "netboot" bootROMs already did)
So the user can easily switch between different kernels/configurations.
2003-03-11 18:32:59 +00:00
drochner dd15fa8102 Fix bug in readudp(): we have to return the correct length
of the received packet to the caller.
TFTP works now.
2003-03-11 18:29:00 +00:00
drochner df62259ae1 kick out RARP/bootparam - PXE uses BOOTP anyway 2003-03-11 16:30:02 +00:00
drochner ff28ac27ec use our own NFS fs implementation, which is smaller, does a better job
in error reporting and coexists with the TFTP fs
2003-03-11 15:01:51 +00:00
drochner 8e04272b51 add prototypes for local functions 2003-03-11 14:38:45 +00:00
dsl f8f0dcfd17 Need .code32 after real_to_prot (not .code16) 2003-03-11 12:37:35 +00:00
drochner a6fda7bcfb create a symlink so that eg <x86/trap.h> is found 2003-03-11 11:03:23 +00:00
dsl 8a6f95626f Avoid pulling strncpy() into minimal boot code 2003-03-08 21:30:59 +00:00
dsl ef18027d4d Don't trust %bp to point to same place in real and protected modes.
prot_to_real preserves %ebp but changes %ss and %sp.
(ok if real %ss is offset n*64k from protected %ss - which it has been)
2003-03-08 21:09:37 +00:00
taca e7e88128f7 Fix compile error with struct consdev change. 2003-03-06 23:47:35 +00:00
grant e41c87001a fix some comments 2003-03-05 10:27:59 +00:00
fvdl e1a37a9604 Define read_psl and write_psl as aliases for read_eflags and write_eflags. 2003-03-04 22:43:09 +00:00
fvdl b2a3a55d38 Enable the define for EISA MPBIOS support. 2003-03-04 22:19:32 +00:00
yamt 182b7b7cda lower acpi interrupt level to IPL_VM.
it's the highest level it can use because it uses malloc(9).
XXX probably, it's still higher than it needs.

ok'ed by thorpej.
2003-03-04 13:44:08 +00:00
fvdl f28dd1acef s/i386_isa_chipset/x86_isa_chipset/, it's defined on multiple ports, but
used in shared code.
2003-03-04 01:06:38 +00:00
fvdl 5d9be5f0db The IDT only contains gate descriptors, so define it as such. 2003-03-03 22:14:15 +00:00
fvdl 1b64bc0ae7 define pmap_cpu_has_pg_n and pmap_cpu_has_invlpg to make code sharing
easier.
2003-03-03 22:13:16 +00:00
fvdl 3ebdf8bcc3 Make CVAR asm reference macro CVAROFF, taking an offset. 2003-03-03 22:12:22 +00:00
christos 767bfa5fb6 microtime.S depends on assym.h 2003-03-02 22:19:05 +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
fvdl 8d69f823b1 Redirect to x86/ 2003-03-02 18:09:42 +00:00
fvdl f555536d9b Move lock_machdep.c to arch/x86/x86. 2003-03-01 22:53:39 +00:00
fvdl aeaf29a3a3 Redirect to x86/cpuvar.h 2003-03-01 18:30:03 +00:00
fvdl a3b7772adf Move the CPU identification out of machdep.c into a seperate file. 2003-03-01 16:37:51 +00:00
fvdl de9139c67d Follow the spec more closely, and do an ljmp immediately after enabling
protected mode, not several instructions afterwards.
2003-03-01 16:36:37 +00:00
fvdl dbef38adbf This was still falsely referencing the ipending variable, which isn't
used anymore. Use curcpu()->ci_ipending (== cpu_info_primary.ci_pending,
since this is only used in the UP case).
2003-03-01 16:35:07 +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
hannken c03626b07b Change "i386_trunc_page" to "x86_trunc_page". 2003-02-27 12:22:52 +00:00
fvdl ba3f3ceb24 Catch up with consinit.c move. 2003-02-27 01:49:29 +00:00
fvdl 10648a4e04 Moved to x86/x86 2003-02-27 01:48:44 +00:00
fvdl d89d6b98f7 Catch up with isa_machdep.c and pci_machdep.c move. 2003-02-27 00:39:40 +00:00
fvdl b7b9aa9909 Moved to x86/pci. 2003-02-27 00:30:21 +00:00
fvdl 2c7dd6813f Moved to x86/isa. 2003-02-27 00:27:54 +00:00
fvdl c0ed70b13c Adapt for move to x86/include. 2003-02-27 00:12:21 +00:00
fvdl ab4edb55ec Adapt for i386/x86 change. 2003-02-26 22:21:19 +00:00
fvdl f720949c2c Adapt for move of files to arch/x86. 2003-02-26 21:33:36 +00:00
fvdl a33bcafdf1 Redirect some includes to x86/foo.h 2003-02-26 21:28:59 +00:00
fvdl cffd488563 Adapt for move of files to arch/x86. 2003-02-26 21:28:20 +00:00
dsl 9474297c7f Clear 'big' bit of segment registers before returning to real mode. 2003-02-25 11:17:36 +00:00
dsl 4552b31f45 Clear 'big' bit of descriptors (%ss in particular) before switching to
16bit mode.  Otherwise the 32bit %esp and (probably) %ebp are used for
stack accesses.  (stupid cpu design!)
(approved by christos)
2003-02-24 23:23:14 +00:00
simonb a5781fdcdf Add LFS support for i386. Tested with a "newfs_lfs -A -O 256" root
filesystem.
2003-02-23 23:25:50 +00:00
atatat 860ed88533 #include opt_uvm.h in machine/vmparam.h (for those ports offering the
topdown option) so that including it directly before including
uvm/uvm_param.h (or uvm/uvm_extern.h which includes uvm/uvm_param.h)
and attempting to use topdown won't result in a compiler error.

Problem noted in private email.
2003-02-23 19:13:43 +00:00
fvdl 11e36a204f For x86_64, split the bootinfo memory entry words to avoid growth of the
structure due to alignment.
2003-02-23 02:45:44 +00:00
atatat df0a9badc6 Introduce "top down" memory management for mmap()ed allocations. This
means that the dynamic linker gets mapped in at the top of available
user virtual memory (typically just below the stack), shared libraries
get mapped downwards from that point, and calls to mmap() that don't
specify a preferred address will get mapped in below those.

This means that the heap and the mmap()ed allocations will grow
towards each other, allowing one or the other to grow larger than
before.  Previously, the heap was limited to MAXDSIZ by the placement
of the dynamic linker (and the process's rlimits) and the space
available to mmap was hobbled by this reservation.

This is currently only enabled via an *option* for the i386 platform
(though other platforms are expected to follow).  Add "options
USE_TOPDOWN_VM" to your kernel config file, rerun config, and rebuild
your kernel to take advantage of this.

Note that the pmap_prefer() interface has not yet been modified to
play nicely with this, so those platforms require a bit more work
(most notably the sparc) before they can use this new memory
arrangement.

This change also introduces a VM_DEFAULT_ADDRESS() macro that picks
the appropriate default address based on the size of the allocation or
the size of the process's text segment accordingly.  Several drivers
and the SYSV SHM address assignment were changed to use this instead
of each one picking their own "default".
2003-02-20 22:16:05 +00:00
simonb b7f4f30f48 Revert previous (in line with <i386/mtrr.h> reversion). 2003-02-19 05:38:58 +00:00
gson d3fce65758 Reserve the I/O ports used by the CRT controller to keep them from
being allocated for other purposes such as PCMCIA I/O space.  Fixes
port-i386/5177.
2003-02-19 04:07:56 +00:00
fvdl 807c14b1f2 Undo constification of mtrr_funcs. I'll deal with it later. 2003-02-19 00:18:34 +00:00
fvdl f2ef2f16fa Revert previous. This file is also used on x86_64, you see. 2003-02-19 00:15:19 +00:00
jdolecek d2309c1fda add file-system SMBFS and pseudo-device nsmb, uncommented, marked as
experimental
2003-02-18 20:13:03 +00:00
jdolecek 51762449f8 add nsmb device-major 2003-02-18 12:26:50 +00:00
david 9a38c06746 sync with GENERIC
add: options SYSTRACE
2003-02-17 22:44:37 +00:00
augustss 8f123087a2 Undo accidental commit of this file. 2003-02-16 17:42:13 +00:00
augustss 519f8f3d30 Add uax(4) (and url(4) in some cases). 2003-02-16 17:35:13 +00:00
dsl 673612c6a0 Use correct segment register in getmementry 2003-02-14 14:39:24 +00:00
jdolecek 1b76f8f55f One more ServerWorks host bridge, seen on Dell PowerEdge server
fix provided in PR port-i386/20333 by Sverre Froyen
2003-02-14 14:26:51 +00:00
tshiozak 4e7944a9b0 use IPL_SCHED instead of IPL_HIGH to establish interrupt for ACPI;
Calling wakeup() from a intr handler established with IPL_HIGH may causes
run/sleep queue to confuse because SCHED_LOCK() uses splsched().
2003-02-14 05:38:39 +00:00
perry 3f573e45ce Instead of spinning, __asm __volatile("hlt"). 2003-02-14 01:11:21 +00:00
ross ff410ba8d2 If no keyboard is attached, implement RB_HALT with a spin. kern/10481 2003-02-13 21:34:03 +00:00
drochner 6fcbbb426d fix a lint stub 2003-02-09 15:49:34 +00:00
enami 0d3ee12026 Fix the type of variable `mtrr_funcs' so that this file compiles again
after constify.
2003-02-09 13:03:38 +00:00
jdolecek ced8cde749 make k6_mtrr_funcs, i686_mtrr_funcs and mtrr_funcs const
remove extern definition for i686_mtrr_funcs from include/mtrr.h, it's
not used outside mtrr_i686.c
2003-02-09 09:38:23 +00:00
jdolecek 1677351fab match anything which claims to be PCI-EISA bridge
the explicit check for Intel PCI-EISA bridge was left in, just in case
it wouldn't identify itself as PCI-EISA bridge

fixes PR kern/9589 by Johan Danielsson
2003-02-08 12:00:36 +00:00
dsl 53d3dabb6a Use on-stack buffer to check for 2.88MB floppy, malloc() hasn't been
loaded when this is called.
Clearly the information is actually available from the bios.
(Approved by christos)
2003-02-07 00:46:08 +00:00
grant eb9c846694 add makphy PHY for Intel gigabit cards (wm).
fixes PR install/19338 from Tomi Nylund.
2003-02-06 04:51:51 +00:00
dsl bfd68d9702 Change to use .codw16/32 and ensure buffer address <64k
(approved by christos)
2003-02-05 21:50:25 +00:00
dsl d77171664a A buffer slipped though the net... Ensure offset < 64k.
(approved by christos)
2003-02-05 21:48:53 +00:00
dsl 7db25b39f8 Remove unused defines 2003-02-05 21:41:51 +00:00
nakayama e3e4805068 Replace machine/rnd.h with more appropriate name to share it
with cycle counter based microtime in kern/kern_microtime.c.
2003-02-05 13:57:50 +00:00
nakayama d364c62597 Switch to kern/kern_microtime.c , so these are no longer needed. 2003-02-05 12:42:01 +00:00
nakayama 64eb1178ab Share i386/tsc_microtime.c with alpha and sparc64 as kern_microtime.c.
(approved by martin)
2003-02-05 12:18:01 +00:00
yamt 085e223bb8 don't restore cpl at end of Xsoft*.
it's too early and allows recursive interrupts.

hopefully fixes PR 20180. (SAITOH Masanobu)
Ok'ed by Frank van der Linden.
2003-02-04 14:17:11 +00:00
chris b1e5771653 Trivial change, convert a tqh_first to TAILQ_FIRST(). 2003-02-03 23:16:30 +00:00
briggs f6909b984b Revert my last change. While it actually allows a build to finish,
an iso-image created from the resulting release won't boot.  I don't
know if this change is the source of that, but one more knowledgable
than I about the x86 booter needs to look at this, and I don't want
the waters muddied any more than necessary.
2003-02-03 03:03:16 +00:00
briggs c6b14f1ca4 Add CPPFLAGS+= -D__daddr_t=int32_t. 2003-02-03 00:08:30 +00:00
dsl a3b6bf84d6 Increase MAXFLENTRIES - the limit is being hit on some systems.
(approved by christos)
2003-02-02 21:08:55 +00:00
dsl bf6f586096 Change comments to refer to increased default number of fragments
(approved by christos)
2003-02-02 21:05:15 +00:00
dsl 81acacd723 Change all .S files to use .code16 and .code32
Support 32bit addresses >64k as valid on bios calls.
Move stack for dosboot and biosboot to >64 so stack doesn't hit data.
Use disk sector number passed by mbr code to select default partition
(the mbr code doesn't do this yet).
NB only biosboot and dosboot have been tested so far.
(changes approved by christos and fvdl)
2003-02-01 14:48:16 +00:00
zuntum 6d1101369a - bump MEMORY_DISK_ROOT_SIZE from 2920 to 2960
in sys/arch/i386/conf/INSTALL_TINY
- bump IMAGESIZE from 1460k to 1480k
  in distrib/i386/floppies/ramdisk-tiny/Makefile

so that "build.sh release" works again.

Suggested by simon, okay'd by luke.
2003-02-01 13:53:36 +00:00
fvdl c17467b083 Wrap 'old BSD id' warning in DEBUG ifdef. 2003-01-31 15:35:04 +00:00
thorpej 84855a5789 Test _KERNEL_OPT before including opt_*.h files. 2003-01-30 19:59:29 +00:00
fvdl 1ae2ac239d Make the ld workaround work on x88_64, and add the temporary ld script
to CLEANFILES.
2003-01-29 18:44:47 +00:00
drochner e3b243beb8 give some VM which was reserved for the UAREA but not used anymore back
to the user and adjust some comments (which were not accurate anyway
since NOREDZONE)
binary compatibility note: changing VM_MAXUSER_ADDRESS might influence
some sanity check in kvm_proc, where arguments on the stack are dealt
with, but it was a variable anyway and noone did care...
2003-01-29 14:12:35 +00:00
wiz 7bd6fd354d unknown, not unkown. Noted by mjl. 2003-01-28 22:19:22 +00:00
dsl 00706969a9 Remove the 4k between code and data to increase the stack space.
Support for 64bit disk blocks seems to have exploded the code.
2003-01-28 16:21:58 +00:00
kent 0b153da394 _bus_dmamem_unmap():
Sets the specified pages cacheable again because _bus_dmamem_map() might
change them uncacheable.
 The code was provided by Dhoyashiki-san in kern/19919.
2003-01-28 08:46:53 +00:00
kent cd7d9faeaf Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it. 2003-01-28 01:07:51 +00:00
thorpej ac44af9a88 Add the "ataraid" pseudo-device and the "ld" instances that attach
to it.
2003-01-27 22:31:12 +00:00
fvdl a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
jdolecek 31fcb050d5 add another memory size detection routine, using int15, function 0xc7, which
is supported on later IBM PS/2 models; this is necessary to detect memory
over 64MB
thanks go to Pavel Cahyna for testing on his IBM PS/2 machine with 128MB

bump biosboot version to 2.15
2003-01-23 21:22:24 +00:00
jdolecek 1323e01ddf use %e?x instead of %?x as 'xorl' arguments
use %al for 'movb' target, and 'andb' for masking the result with $0x02
since 'and' conveniently sets ZF, use 'and+jnz' instead of 'and+cmp+jne'
2003-01-23 21:01:18 +00:00
hannken e6785a37e2 Increase time to wait for TLB IPI rendezvous.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-01-22 18:32:18 +00:00
christos 2bb5209b1b lwp'ify 2003-01-22 17:48:02 +00:00
yamt 41ad61ee76 make KSTACK_CHECK_* compile after sa merge. 2003-01-22 12:52:14 +00:00
itojun d4bff57bae s/options^I^I/options ^I/ 2003-01-21 02:44:15 +00:00
christos e83cbded11 add support for p1003.1b semaphores. From FreeBSD 2003-01-20 20:08:30 +00:00
drochner 3ef8fd67ee this is too young to bitrot: LWPify 2003-01-20 18:43:18 +00:00
sommerfeld 69ed85673a We really don't need two vanity configs for BP6-based systems
("SWINGER" is the other).
2003-01-20 16:33:05 +00:00
lukem ef1ca5d8b8 crank to 2240k; they've grown again 2003-01-20 01:39:02 +00:00
simonb c369177127 Remove variable that is only assigned too but not referenced. 2003-01-20 01:29:18 +00:00
simonb 540020ec01 Don't need an extern declaration of phys_map; it's in uvm_extern.h. 2003-01-20 01:28:33 +00:00
simonb b4509098d5 Put the storage class first. 2003-01-20 01:25:04 +00:00
thorpej 5819507df3 Merge the nathanw_sa branch. 2003-01-19 16:30:13 +00:00
tron d9835f8fa4 Add "COMPAT_OSSAUDIO" option. 2003-01-19 10:42:54 +00:00
tron b4458473fd Correct indentation error for "COMPAT_OSSAUDIO" option. 2003-01-19 10:42:06 +00:00
christos 7b47c1bae4 add COMPAT_OSSAUDIO [for lkms that need it]. XXX: wish for /dev/ksyms 2003-01-18 22:33:29 +00:00
thorpej a50e3bc1cb Merge the nathanw_sa branch. 2003-01-17 22:58:53 +00:00
thorpej c8763685b7 Allow the serial console boot blocks to be built with a specific
console speed, and build some of the more common ones.
2003-01-14 23:53:30 +00:00
thorpej f6f0dbd011 Stub out LIBCRT0, LIBCRTBEGIN, LIBCRTEND, and LIBC. 2003-01-14 23:51:34 +00:00
fvdl 5692526bb6 Remove duplicate assignment. 2003-01-14 11:13:25 +00:00
fvdl d928619394 Add a couple more ServerWorks host bridges that explicitly need IO space
enabled.
2003-01-14 10:56:53 +00:00
fvdl 28c12bee16 Actually return the number of found PCI interrupt routes in mpacpi_pcircount
(doh). From Wolfgang Solfrank.
2003-01-13 21:14:39 +00:00
fvdl 991c0f3475 Install interrupt handlers properly when in apic mode. 2003-01-13 01:20:58 +00:00
fvdl 86ae625e2c Declare nioapics as well. 2003-01-13 01:19:34 +00:00
fvdl a4880cb372 Export the ioapic softc linked list, for the benefit of the mpbios code. 2003-01-12 23:20:17 +00:00
fvdl d43937377e Handle all-apics entries for ioapic interrupts. 2003-01-12 23:19:44 +00:00
fvdl 9cf4ee5aef Move the check if ioapics were found outside of ifdef MPBIOS. Set the
polarity for the default ISA entries to 'default'.
2003-01-10 15:01:09 +00:00
fvdl 599d302034 If the polarity wasn't set in the mp config entry associated with the
ioapic pin, assume defaults (active low for level triggered, high
for edge triggered).
2003-01-10 14:58:46 +00:00
fvdl 3cef21b0f5 Pass acpi_softc down to mpacpi functions. 2003-01-10 00:45:52 +00:00
fvdl 14cc29cd5d Don't make assumptions about PCI bus numbers, carefully find all of
them before setting up the interrupt routing tables. This still
assumes that all bus numbers have been configured before this
is called.
2003-01-10 00:44:23 +00:00
soren 4a7a63dba9 URL for devids.txt moved. 2003-01-08 23:50:23 +00:00
tron 5543f31d4d Fix indendation problem in entry for "pckbc* at acpi?". 2003-01-08 13:41:17 +00:00
fvdl 864739bdee DUMMY_NOPS is gone, replace it with an inverted, less confusing option:
PIC_DELAY. To be used on very old machines.
2003-01-08 13:20:26 +00:00
fvdl c873a9a9a1 Remove leftover debug "mp_verbose = 1" assignment. 2003-01-07 21:11:10 +00:00
fvdl 013008be77 Wrap mpbios_scanned in the right ifdef. 2003-01-07 20:13:29 +00:00
fvdl 06b5330bc7 Add MPACPI option (commented out). Add MPBIOS option by default, it is
needed now to do MP BIOS MP configuration.
2003-01-07 18:55:36 +00:00
fvdl a23660903d Add code to configure cpus, ioapics and interrupt wiring using ACPI.
Shuffle some code around so that this an exist as a method next
to mpbios, both creating the same data structures. If both are
defined, try ACPI first.
2003-01-07 18:54:08 +00:00
fvdl d2dfe3f39a Define acpi_md_callback. It retrieves interrupt routing info if the MP
BIOS wasn't already used for that (currently won't happen; ACPI gets
to try first if configured).
2003-01-07 18:52:43 +00:00
fvdl 501607aeed Disable ExtINT by default when using I/O APICs. 2003-01-07 18:51:15 +00:00
fvdl f33d911ff7 Don't use any cpu_info structures until at least one CPU was attached. 2003-01-07 18:50:13 +00:00
fvdl c2ff6d5b83 Add various external declarations to accomodate ACPI MP probing as an
alternate method to MPBIOS probing. Move some stuff common to the two
methods into mpconfig.h
2003-01-07 18:48:44 +00:00
itohy 87d5eedbbb Delete reference to astpending, which doesn't exist any longer. 2003-01-07 09:57:01 +00:00
jmcneill 4d08051d29 *soren* remember <SPACE><TAB> in config files :-)
Space-Tab-ify ACPI examples.
2003-01-07 03:19:38 +00:00
wiz 1035faff1d writable, not writeable. 2003-01-06 20:30:28 +00:00
lukem 4bb41ae2f2 Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile.  Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00
wiz 9a3f5034cf No more opms on i386. 2003-01-06 11:31:39 +00:00
sommerfeld 52b083a154 Add symbolic names for MSR's used by SYSENTER/EXIT.
(I was experimenting a while back, might as well commit this one file..)
2003-01-05 22:47:13 +00:00
christos a731ae7dc4 add ACPIVERBOSE [commented out] 2003-01-05 22:31:13 +00:00
jmcneill 65c6c82f48 Document all known ACPI devices and options (disabled by default). 2003-01-05 21:44:32 +00:00
lukem a250e57c96 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
2003-01-03 15:34:30 +00:00
tron 050140988d Add commented out entry for acpi(4). 2003-01-02 12:36:51 +00:00
thorpej 1132348b98 Use aprint_normal() for cfprint routines. 2003-01-01 01:24:19 +00:00
explorer 4b995bb9a4 fix for my sony laptop, which doesn't quite follow spec 2002-12-30 21:55:05 +00:00
sommerfeld 20d271e712 TODO list, paraphrasing Jason Thorpe 2002-12-28 20:12:24 +00:00
kristerw 2ae40935fb The correct way to decorate objects with attributes is to use __attribute__
instead of the synonyms understood by gcc.
2002-12-28 20:11:57 +00:00
christos f69bc61a87 remove redundant declaration 2002-12-28 20:06:07 +00:00
jmcneill 8eb0fffdfc Add an npx at acpi(4) attachment 2002-12-28 17:51:16 +00:00
matt 13e7cd4f3f Use i386_isa_chipset explicitly. 2002-12-28 17:36:59 +00:00
jmcneill df719d72e4 NACPCA -> NACPI, so isa_dmainit gets called if we have ACPI support too. 2002-12-28 17:31:25 +00:00
matt 6b5d7a7b6c Remember the isa_chipset_tag_t and supply to isa_intr_establish.
(thereby removing a XXX in the code).
2002-12-28 17:13:39 +00:00
matt 51ec27c813 Move the call to isa_dmainit to mainbus_attach from pnpbios_attach since
ACPI needs to have that done for the exact same reasons as ACPI.
2002-12-28 17:11:50 +00:00
jmcneill c8111254a1 Pass ISA chipset information through to ACPI devices, to allow for porting
of pnpbios(4) glue to acpi(4).
2002-12-28 06:14:07 +00:00
manu f464631d66 Several things:
1) rights should be shared by the threads within a process. While it would
be easier to handle this with the struct proc/struct lwp split, we attempt to
do this now by sharing the right lists. Because each right holds a reference
to struct proc, this might cause some problems later.
2) in pthread_exit, really exit the thread. Also reintialize the righ tlist to
make sure we will not destroy the parent's right list
3) rights can hold multiple permissions on a port (ie: send and receive). Fix th
is.
4) first attempt on right carried by messages. We still have to do rights carrie
d in the message body (complex messages).
2002-12-27 09:59:24 +00:00
junyoung 9f582c3342 Cosmetic changes to reduce diff against GENERIC. 2002-12-26 08:25:20 +00:00
junyoung 41313fe244 #<space>comment...
Pointed out by collver1 via PR#18468.
2002-12-26 08:21:56 +00:00
manu 4a06119a9d Pass the system call table to trace_enter() and ktrsys() so that it is
possible to use alternate system call tables. This is usefull for
displaying correctly the arguments in Mach binaries traces.

If NULL is given, then the regular systam call table for the process is used.
2002-12-21 16:23:56 +00:00
thorpej 899e58abe7 Bump ramdisk size to 2920 blocks. 2002-12-20 23:14:14 +00:00
gmcgarry 5abd84e433 Use callee-saved registers in RAS processing. 2002-12-17 20:49:07 +00:00
gmcgarry 7443ad1b01 Move to MI runqueue functions. 2002-12-17 19:47:15 +00:00
jdolecek 30f7194bc4 use the __HAVE_CPU_MAXPROC hook to limit kern.maxproc to number
of available GDT slots
add code in init386() to force maxproc to be maximum cpu_maxproc()

this fixes port-i386/1635 by John Kohl
2002-12-16 18:31:08 +00:00
fvdl 4bd73a650e Remove leftover declarations used for debugging purposes only. 2002-12-16 16:22:50 +00:00
fvdl b2622c34d6 In syscall_fancy(), drop the kernel lock if trace_enter fails.
From Nick Hudson.
2002-12-14 14:40:36 +00:00
junyoung 16c0ce8d78 Fix comment.
De-__P().
2002-12-14 09:46:36 +00:00
junyoung 058737862e Now that gdt_compact() is gone, #if 0'ed gdt_shrink() doesn't need to be
here, either. Remove other #if 0 code as well.
2002-12-14 09:38:50 +00:00
christos 0cc4fbf335 add twe control device 2002-12-13 23:26:47 +00:00
fvdl ac22ef18d8 Remove redundant cli/sti instructions. From Enami Tsugutomo. 2002-12-12 21:39:33 +00:00
christos 61b8a488ba Add empty shells of new functions so we can keep compiling. 2002-12-12 17:42:10 +00:00
christos 09e9a5cde9 This new file is wanted by compat_darwin. 2002-12-12 17:41:53 +00:00
christos c9498dd93c add missing dependency. 2002-12-12 17:41:19 +00:00
joda 86b7f22e4f cpuid feature bit 30 is set on IA-64 (in x86 mode) 2002-12-11 13:50:14 +00:00
fvdl a167f47c0c Since a CPU may spin waiting for another CPU to handle an IPI, an
IPI must be the very first thing to be handled in splx(), if it
had been blocked before. Change things around a bit to guarantee
this.
2002-12-11 12:02:07 +00:00
perry c2afe21c94 Change from a hardcoded sanity check date that has to be updated by
hand every few years to code that uses the automatically generated
time value from config_time.h
Fixes an ancient XXX in the code.
2002-12-10 23:24:33 +00:00
thorpej e8cc3884de Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is. 2002-12-10 17:14:02 +00:00