Commit Graph

405 Commits

Author SHA1 Message Date
hamajima
e39c6d8223 fix compile error for ktrace-lwp. 2006-01-14 17:14:46 +00:00
cube
0ea99faebc Add support for VM_TOPDOWN, and use it unconditionally (just like i386).
For COMPAT_NETBSD32 binaries, use VM_TOPDOWN layout too, and sync some
parameters with their i386 counterpart.

OK'd by fvdl@.
2006-01-11 09:30:45 +00:00
dsl
58e614b1ca De __P
Add some 'struct xxx' definitions in the else part of a '#if 0' so that
the function prototypes later down the file don't define the structure
within the argument list.
2006-01-07 18:22:25 +00:00
xtraeme
668713f3d9 Enable rlphy(4). 2006-01-04 23:38:27 +00:00
jmmv
eb23406894 Add a 'struct bootinfo' to represent the bootinfo structure used in the
kernel by x86 platforms (instead of a simple char *).  This way, the code
in, e.g., lookup_bootinfo, is a bit easier to understand.

While here, move the lookup_bootinfo function used in x86 platforms (amd64,
i386 and xen) to a common file (x86/x86_machdep.c), as it was exactly the
same in all of them.
2005-12-30 13:37:57 +00:00
rjs
2ad16298b8 Add config for ACPI kernel. 2005-12-30 11:27:07 +00:00
perry
2d542ba1f8 inline -> __inline 2005-12-28 19:09:29 +00:00
perry
e7b322a5f7 inline -> __inline 2005-12-28 18:40:13 +00:00
chs
074111feef use panic() instead of cpu_reboot() for unhandled kernel traps. 2005-12-27 17:28:27 +00:00
chs
33d70de438 remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions.  the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
2005-12-27 00:46:38 +00:00
perry
50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry
2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
rjs
46eed28b47 Add boilerplate for cardbus support. 2005-12-21 22:35:41 +00:00
thorpej
c97c3de6e9 Remove the tablet line discipline. 2005-12-20 05:35:27 +00:00
yamt
a1e02d70cd remove an unused file. 2005-12-18 05:31:08 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
elad
4591e5acfd Add (commented out) Veriexec options and pseudo-device to GENERIC kernels,
and remove the i386 GENERIC_VERIEXEC config.
2005-12-09 23:34:01 +00:00
rjs
dc0571d75e Make it compile when not using KTRACE or SYSTRACE. 2005-12-07 19:02:36 +00:00
tsutsui
2a32b6081e Remove obsolete options VNODE_OP_NOINLINE. 2005-12-07 12:40:46 +00:00
tsutsui
ff9b47d69e Adjust comments for options FFS_NO_SNAPSHOT.
XXX: This option should be mentioned in options(4).
2005-12-07 09:10:11 +00:00
manu
7b98bb2b0b Linux does not use retval[1] 2005-12-01 14:19:22 +00:00
dsl
3b81c53b36 It seems that make doesn't like testing empty() on undefined variables.
Also objdump DTRT when asked to update a file, so no need to do a mv ourselves.
2005-11-30 21:50:47 +00:00
dsl
9a6cc769c9 If we are compiling with -fno-asynchronous-unwind-tables then also
remove the .eh_frame section from athhal-x86_64-elf.hal.o.
2005-11-27 13:30:27 +00:00
dsl
7baed7ef31 Compile with -fno-asynchronous-unwind-tables so that gcc doesn't generate
the .eh_frame data area that can be used to aid thr generation of stack
traceback - at a cost of a load of bloat!
Reinstate the isp driver.
Remove the unlikely-to-be-needed esh, lmc and ntwoc.
2005-11-27 13:08:50 +00:00
thorpej
cfc81086d9 swcr -> swcrypto 2005-11-25 16:41:31 +00:00
thorpej
7385cdd346 "pseudo-device crypto" really refers to the /dev/crypto API to the
opencrypto framework, not the framework itself.  Update the comment
accordingly.
2005-11-25 16:35:11 +00:00
thorpej
751f32db24 Add "pseudo-device swcr" (commented out if "pseudo-device crypto" is also
commented out).
2005-11-25 16:30:23 +00:00
dsl
b184d489b2 We don't need 'le' here, I'm not sure amd64 GENERIC deserves it either. 2005-11-24 20:06:53 +00:00
riz
5c2fb87e43 syscall_fancy() is only used if either KTRACE or SYSTRACE is defined,
so only compile it if one or the other is defined.  An amd64 INSTALL
kernel now compiles again.  :)

Approved by matt@ .
2005-11-13 00:14:57 +00:00
rpaulo
3de46f226c PR 31996: fix the comments for MPBIOS and MPACPI. By Damon Brodie. 2005-11-03 23:12:16 +00:00
christos
f1e915cc01 Split the linux syscall out to make the code easier to read and maintain. 2005-11-01 16:28:28 +00:00
manu
e326d4a34d Linux does not seems to set rdx on syscall exit. 2005-11-01 09:13:48 +00:00
dsl
76ed960bec Add sk ethernet as found on ASUS A8V.
Increase ramdisk to 5MB, costs virtually nothing.
2005-10-10 17:24:38 +00:00
dsl
3e17d26fb5 include "INSTALL" then modify it - so we get the same device 2005-10-10 15:40:37 +00:00
chs
94be8205d7 make this compile again. 2005-09-27 14:37:06 +00:00
chs
6a0a597fbf pull in changes from i386 profile.h:
- allow profiling of MP kernels, add a spinlock around the body of mcount().
   fixes PR 31360.
 - save and restore eflags instead of just doing cli/sti.
2005-09-22 15:47:03 +00:00
yamt
d597202302 make VMSWAP optional again. 2005-09-17 14:38:38 +00:00
yamt
7e71f567e4 include "conf/std". 2005-09-17 09:44:05 +00:00
chs
43070602ec need to include <compat/sys/ucontext.h> here. 2005-09-14 16:19:27 +00:00
tron
b03866ace9 Add 10 Gigabit Ethernet drivers dge(4) and xge(4). 2005-09-14 08:22:24 +00:00
jmmv
ec93365612 Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).
2005-09-10 19:20:48 +00:00
drochner
727527c99b remove "dev" locators from cardbus device definitions, it doesn't
make sense technically and might be removed
2005-09-09 16:26:19 +00:00
rpaulo
2855760133 Enable WSDISPLAY_SCROLLSUPPORT by default. 2005-09-09 13:43:39 +00:00
dogcow
12c72179ee after discussion with dyoung, add rtw* at cardbus 2005-09-06 02:03:52 +00:00
christos
93c362d7ef Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels 2005-08-19 05:19:49 +00:00
christos
758a209d23 64 bit inode changes. 2005-08-19 02:03:49 +00:00
cube
9f1eb3e30f Change all archs that did:
#define clockframe somethingelse

to:

struct clockframe {
	struct somethingelse cf_se;
};

and change access macros accordingly.

That means that, at least for that very issue, things will not go
ka-boomy if you don't have the actual definition of struct clockframe
before including systm.h.
2005-08-11 20:32:55 +00:00
skrll
1293f7a748 Add (commented out) ucycom to various kernel configs. 2005-08-05 09:23:16 +00:00
fvdl
95178de766 Missed commit from the linux compat changes dealing with setting fs and gs:
copy the PCB fs and gs on fork.
2005-08-04 19:31:53 +00:00
fvdl
ff4290fdee In pmap_map(), do not do TLB shootdowns. It is only used for kernel dumps,
at which point other CPUs are likely halted, and the addresses mappped
are temporary anyway.
2005-08-04 19:29:26 +00:00
yamt
38ca5312d2 revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
2005-07-31 04:04:30 +00:00
wiz
ed1153a3aa Fix typo reported in PR 30872. 2005-07-30 11:11:46 +00:00
yamt
558fded29a add "options VMSWAP" to non INSTALL kernels. 2005-07-30 06:35:34 +00:00
yamt
1d0891101c defflag VMSWAP. 2005-07-30 06:33:33 +00:00
augustss
57ffd27623 Remove obsolete comment about ehci. 2005-07-17 14:53:56 +00:00
hubertf
673730506c Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
2005-07-17 00:08:27 +00:00
wiz
4351be5dd1 Fix typo in comment, from Nicolas Joly in PR 30743. 2005-07-14 11:59:53 +00:00
sekiya
f71fdbe340 Add config goo for ath. Tested with a PCI card, detected as:
ath0 at pci0 dev 10 function 0
	ath0: interrupting at ioapic0 pin 17 (irq 5)
	ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
	ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
	ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36M bps 48Mbps 54Mbps
	ath0: mac 5.9 phy 4.3 radio 3.6

Cardbus untested, so it is commented out.
2005-07-12 20:22:45 +00:00
kiyohara
c1a84a4d12 ieee1394 import from FreeBSD. 2005-07-11 15:29:05 +00:00
tron
04b9c3437f Add (commented out) IPSEC_NAT_T option. 2005-07-07 17:05:46 +00:00
augustss
c65a426711 Add auixp. 2005-07-05 07:11:52 +00:00
martti
253c8a14af Added support for amr. Tested by Joseph A. Dacuma with Dell PowerEdge 2800. 2005-07-04 13:43:45 +00:00
blymn
dadd214d32 Reverse renaming of variable (pd_ents -> pdes) since the clashing
declaration in pmap.h was not used so it was removed from there.
2005-07-04 12:06:14 +00:00
blymn
177ce69567 Remove bogus external declaration for pdes, it appears not to be needed. 2005-07-04 11:50:17 +00:00
augustss
3cadf15c43 Uncomment ehci. It works fairly well now. 2005-07-04 05:57:02 +00:00
cube
72f6b3a65c Constify machine32 and machine_arch32. 2005-07-03 17:18:02 +00:00
cube
6f082c10a9 Make COMPAT_NETBSD32 emulate hw.machine. While it might seem wrong to do
so, it introduces breakage because a lot of applications make assumptions
from its value.  It's especially bad in the sparc64 case, where 64-bits
instructions can be used in 32-bits addressing mode.  However, there are
other means to know the capabilities of the CPU.
2005-07-03 16:53:46 +00:00
christos
6d30dcee75 PR/29607: Christian Biere systrace doesn't handle interrupted syscalls properly
Instead of jumping to the default "bad" case, jump to the error handling
switch, so that we can deal with ERESTART/EJUSTRETURN properly.
2005-07-01 18:01:44 +00:00
augustss
28a18a32db Add ixpide so we handle ATI controllers specially. 2005-07-01 11:03:14 +00:00
wiz
266fc7ab94 pss(4) was removed, remove it from kernel configs too. 2005-06-28 09:08:04 +00:00
dsl
dbf3baf6b4 Remove 'isp' driver (support for Qlogic ISP [12]0x0 SCSI/FibreChannel).
Compensates for the recent bloat of the ath driver and 802.11 support.
2005-06-26 11:24:20 +00:00
rpaulo
64fd052c74 Add file-system PTYFS (commented out) so that people know its existence.
Ok'ed by Christos Zoulas and Hubert Feyrer.
2005-06-25 12:05:15 +00:00
sekiya
aae1d2ace1 ACPI_PCI_FIXUP -> PCI_INTR_FIXUP 2005-06-23 23:39:40 +00:00
wiz
08ff3e7e12 Remove duplicate apci at mainbus line, from Nicolas Joly in PR 30564. 2005-06-22 14:10:34 +00:00
kent
05ff5da3a7 add "azalia at pci" 2005-06-21 02:23:13 +00:00
dyoung
a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
matt
e1245a3c46 Rework the coredump code to have no explicit knownledge of how coredump
i/o is done.  Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o.  This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
2005-06-10 05:10:12 +00:00
tsutsui
4e54a2cc7c - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
2005-06-09 14:43:29 +00:00
drochner
fea4b15e35 remove __UNCONST which is not needed anymore 2005-06-02 10:29:04 +00:00
drochner
1be856bcd9 adapt to ddb constification 2005-06-01 19:30:11 +00:00
drochner
ef59f6d9ce update for acpi busname removal 2005-06-01 18:51:25 +00:00
blymn
6e88f7f53f Rename function variable names that were shadowing global declarations. 2005-06-01 13:10:06 +00:00
blymn
f16255f49d Const'ify structure declarations to prevent compiler warnings. 2005-06-01 13:08:59 +00:00
blymn
a35dcc633d Function declarations did not match prototypes, fix. 2005-06-01 13:06:46 +00:00
blymn
9d5fdb8711 Rename function variables that shadowed globals. 2005-06-01 13:05:31 +00:00
blymn
99a58d941c Cast away const for siginfo structure as the function prototype does not
have const.
2005-06-01 13:04:32 +00:00
scw
8f4aee207b Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).
2005-06-01 13:01:35 +00:00
christos
f6b4c20f18 s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name. 2005-05-31 04:03:08 +00:00
chs
b0a8a83e7b remove vestigal {,e}intr{names,cnt} symbols now that vmstat doesn't need them. 2005-05-31 00:45:02 +00:00
chs
94622623d8 in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.
2005-05-29 15:56:59 +00:00
kleink
4a6a03b162 Include <sys/cdefs.h> for __signed; related to lib/30072. 2005-05-25 20:58:00 +00:00
fvdl
a893ac9f67 If p->emul->e_usertrap is set, call it for T_USER|T_PAGEFAULT traps to
do possible work.
2005-05-20 12:49:14 +00:00
fvdl
0f3ab60285 Get the pcb_flags test right for the 64bit FS base case. 2005-05-17 15:14:47 +00:00
fvdl
bce752852d Translate linux errno in the syscall_fancy case as well. 2005-05-17 13:47:17 +00:00
fvdl
5e91d058da Translate error numbers in the COMPAT_LINUX case. 2005-05-16 11:55:24 +00:00
fvdl
631e44f47d Move linux_trap.c from sys/arch/i386/i386 to sys/arch/x86/x86, and share
it. Remove the amd64 linux_trap.c (which was just a stub with a printf
anyway).
2005-05-15 22:20:23 +00:00
fvdl
7d91366682 Fix up COMPAT_LINUX support for amd64. Still a work in progress, not
usable yet ("Hello World" runs, but many other things do not work).
2005-05-15 21:44:41 +00:00
fvdl
2f9b8a3b68 Start at implementing USER_LDT. Doesn't compile yet (but it didn't previously
either).
2005-05-15 21:42:01 +00:00
fvdl
eeb59b85ad New definitions for LDT system call arguments, amd64 version. Compatible
with the Linux interface. As yet unused.
2005-05-15 21:39:56 +00:00