Commit Graph

51534 Commits

Author SHA1 Message Date
chs
cd93d88b01 implement ucas_* for powerpc/oea. 2010-07-07 01:19:54 +00:00
chs
8103357160 implement ucas_* for mips. 2010-07-07 01:19:09 +00:00
chs
794a8be6ca fix hppa ucas_*():
- "ret" is a kernel-space pointer.
 - move the ucas RAS check from the device interrupt path
   to the page-fault path.
2010-07-07 01:18:39 +00:00
chs
e8200b900c implement ucas_* for alpha. 2010-07-07 01:17:49 +00:00
chs
fb84d42413 implement ucas_* for arm. 2010-07-07 01:17:26 +00:00
chs
9ea6b6e3f2 implement ucas_* for m68k. 2010-07-07 01:16:23 +00:00
chs
b9075fd7d9 clean up the check for tracing into a syscall handler. 2010-07-07 01:15:34 +00:00
chs
ffa744f452 add the guts of TLS support on amd64. based on joerg's patch,
reworked by me to support 32-bit processes as well.
we now keep %fs and %gs loaded with the user values
while in the kernel, which means we don't need to
reload them when returning to user mode.
2010-07-07 01:14:52 +00:00
chs
1842e935a4 fix more bugs in ucas_*():
move the "old" value to %*ax so that cmpxchg* can work.
remove the PCB_ONFAULT stuff, onfault_handler() handles this already.
return the error from fault handler in ucas_fault rather than forcing EFAULT.
2010-07-07 01:13:29 +00:00
njoly
3bb7b36948 Install x86/pte.h 2010-07-07 00:10:14 +00:00
cegger
a63798ea7c Turn PMAP_NOCACHE into MI flag.
Add MI flags PMAP_WRITE_COMBINE, PMAP_WRITE_BACK, PMAP_NOCACHE_OVR.
Update pmap(9) manpage.

hppa: Remove MD PMAP_NOCACHE flag as it exists as MI flag
mips: Rename MD PMAP_NOCACHE to PGC_NOCACHE.

x86: Implement new MI flags using Page-Attribute Tables.
x86: Implement BUS_SPACE_MAP_PREFETCHABLE.

Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2010/06/30/msg008458.html

No comments on this last version.
2010-07-06 20:50:33 +00:00
cherry
c971211b47 The Xen balloon driver enables growing and shrinking
PV domains on the fly, by collaborating with UVM and the hypervisor
2010-07-06 15:00:09 +00:00
mrg
b7ea3b98cd use elf2bb / elf2bb.h instead of the old, now gone aout2bb version. 2010-07-06 06:09:56 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
tsutsui
c874d8cab4 Add upgt(4) for WS003SH/WS004SH internal WLAN. 2010-07-05 14:30:00 +00:00
kiyohara
acaa37cf55 Remove unnecessary white-spaces. 2010-07-05 06:54:48 +00:00
kiyohara
999e21b0e4 Fix set the control register. 2010-07-05 06:50:01 +00:00
kiyohara
da93dea326 Add ia64 description. 2010-07-03 13:32:36 +00:00
ragge
85273aa8b3 A big bunch of bugfixes from Johnny Billquist. Highlights:
- Makes the VAX8600 work as expected (500kg of hardware :-)
- Fix a hard-tracked bug causing VAXen to hang at splhigh.
2010-07-01 19:50:11 +00:00
rmind
3c507045e2 Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.
2010-07-01 02:38:26 +00:00
phx
1924b919bc Determine the boot disk with bootinfo cookie.
Patch submitted by Toru Nishimura.
2010-06-30 17:50:34 +00:00
phx
9daf9967b6 Add file system snapshot device. 2010-06-30 17:49:32 +00:00
he
0aa887981d Bump SYMTAB_SPACE so that the contents fits again. 2010-06-30 06:57:13 +00:00
skrll
873fac29a4 Remove some code that snuck in. 2010-06-30 06:33:52 +00:00
kiyohara
0fe9881406 Implement pci_attach_hook/pci_bus_maxdevs/pci_make_tag/pci_decompose_tag/
pci_conf_read/pci_conf_write.
2010-06-28 12:14:08 +00:00
kiyohara
7418b486c4 Move identifycpu() into cpu.c. Our cpu* says:
cpu0 at mainbus0: ProcessorID 0, Id 0, Eid 0
  cpu0: McKinley (1000.00-MHz Itanium 2)
  cpu0: Origin "GenuineIntel",  Revision 7
  cpu0: Features 0x1
2010-06-28 12:08:13 +00:00
kiyohara
a03ec97cba Fix always free. It call, if memory was allocated. 2010-06-28 11:18:44 +00:00
rmind
c81a6ebb0c mp_cpu_start: although fragment is commented out, add pmap_update(), just
in case somebody would come up with a clever idea to copy-paste that.
2010-06-28 00:47:53 +00:00
rmind
d96d372bb4 Add missing pmap_update() in vga_post_init(), remove wrong pmap_kremove()
in error path, and fix pmap_update() in vga_post_set_vbe().
2010-06-28 00:39:47 +00:00
simonb
a21d11f6f4 Use the address of the instruction instead of the contents of the
instruction to calculate a relative branch target address from that
instruction.

Not sure what the intention of this change was, or if it could possibly
have been tested.

Fixes awk on my dbau1500.
2010-06-27 13:44:26 +00:00
phx
791937a070 No longer needed. See dsk.c. 2010-06-27 12:09:41 +00:00
phx
1e968eb269 Replaced test code for Synology SiI3512 with working KuroBox code again. 2010-06-27 12:09:17 +00:00
phx
7d0b196352 - add IDE/SATA diskboot facility
known ok with KuroBox PCIIDE, need more debug on SiI3512 SATA
which fails reading sectors from a drive.

- now capable of TFTP loading

Code submitted by Toru Nishimura.
2010-06-26 22:13:32 +00:00
phx
a23e0160ee - add IDE/SATA diskboot facility
known ok with KuroBox PCIIDE, need more debug on SiI3512 SATA
which fails reading sectors from a drive.

- now capable of TFTP loading

Code submitted by Toru Nishimura.
2010-06-26 21:45:49 +00:00
tsutsui
e04e7d8109 Comment out options RTC_OFFSET so that bootinfo->timezone passed by
hpcboot will be used by default.
2010-06-26 16:34:47 +00:00
tsutsui
e193fab21a Forgot to commit this one that should have been done with zs.c rev 1.119:
> Establish interrupt handlers with proper softc per each zs device
> rather than sharing them among all zs devices and searching softc
> in handlers.
>
> The latter method is derived from ancient sun3 zs driver which tried
> to reduce overhead on autovectored interrupts, but nowadays such hack
> might cause recursive global locks on modern SMP capable framework.
>
> Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
> on tech-kern@:
> http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
> and also tested by Jochen Kunz on SS20 with both serial and kbd console.
>
> Ok'ed by mrg@ and dyoung@.

Noticed by martin@.
2010-06-26 16:10:00 +00:00
kefren
25133d6d8f Fix build for MPLS import: add options MPLS, changed pseudo-device mpls
to pseudo-device ifmpls
2010-06-26 15:17:56 +00:00
kefren
f2c541b4fa add pseudo-device mpls - commented in GENERIC for now 2010-06-26 14:36:48 +00:00
bouyer
f249dc1977 Sync DKWEDGE options with GENERIC 2010-06-26 13:08:37 +00:00
skrll
0af7f6db64 Remove unused cbit. 2010-06-26 08:40:01 +00:00
bsh
e9bb7e64f7 Don't use DMA for sdmmc on TWINTAIL for now, because it causes kernel panic. 2010-06-26 07:51:45 +00:00
tsutsui
fee87accc6 Um, fix botch in previous. 2010-06-26 03:49:52 +00:00
tsutsui
995d4be272 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 03:44:49 +00:00
tsutsui
42db966caf Remove an unused variable. 2010-06-26 03:39:53 +00:00
tsutsui
2c8811ab00 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 01:48:57 +00:00
tsutsui
dc3badf5ec Establish interrupt handlers with proper softc per each zs device
rather than sharing them among all zs devices and searching softc
in handlers.

The latter method is derived from ancient sun3 zs driver which tried
to reduce overhead on autovectored interrupts, but nowadays such hack
might cause recursive global locks on modern SMP capable framework.

Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
on tech-kern@:
http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
and also tested by Jochen Kunz on SS20 with both serial and kbd console.

Ok'ed by mrg@ and dyoung@.
2010-06-26 01:42:57 +00:00
tsutsui
9bb99692d4 If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports.  Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files.  Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
2010-06-26 00:25:02 +00:00
rmind
f66e2cf323 Add missing sys/xcall.h inclusion, remove sys/malloc.h one. 2010-06-25 19:00:05 +00:00
tsutsui
8809b23e72 Add several USB Ethernet devices. 2010-06-25 17:53:28 +00:00
tsutsui
42613739e0 Enable options DDB, which is enabled in other kernels. 2010-06-25 17:42:02 +00:00