Commit Graph

88005 Commits

Author SHA1 Message Date
yamt
da51d139a4 improve post-ubc file overwrite performance in common cases.
ie. when it's safe, actually overwrite blocks rather than doing
read-modify-write.

also fixes PR/33152 and PR/36303.
2007-06-05 12:31:30 +00:00
yamt
962e1166fd add a missing dependency. 2007-06-05 12:14:33 +00:00
martin
3ab04256ac Use the new loadfile() marker MARK_DATA to optimize the loaded kernel
mappings before calling the entry point - change text mappings to read
only and only insert those into the iTLB.
While there remove a few magic constants by information queried from
the firmware.
2007-06-05 08:52:20 +00:00
martin
933b671bfa Add a MARK_DATA marker containing the effective VA of the first loaded
data segment.
2007-06-05 08:48:49 +00:00
mhitch
bbb24892dd Page table sizes depend on pagesize - fix M68K_MAX_PTSIZE to account for
pagesize.  M68K_MAX_KPTSIZE also dependent on pagesize, and was 1/4 the
maximum size of a user pagetable.
2007-06-05 04:52:07 +00:00
mhitch
f8884f1979 Switch amiga to common m68k include files, pcb.h, pmap_motorola.h, and
pte_motrola.h.
2007-06-05 04:46:27 +00:00
briggs
f82d990bc1 Bring in changes from FreeBSD...
* Allocate commands on-demand.
* Update a bunch of constants and some structures.
* Use __attribute__ ((__packed__)) instead of __packed to be consistent.
* Support more commands for devices that can apparently handle them.
* Support a "new comm. interface" present in more recent Adaptec
  firmware.  This reduces the amount of PCI bus traffic in handling
  commands.
* Support larger commands going to the adapter--if the adapter can
  support them.
* Support 64-bit commands for archs where sizeof(bus_addr_t) > 4 and
  for adapters that advertise SGMAP64.
* Handle the WINDOW4G option and NO4GB quirk by excluding 2G-4G window
  unless we have the WINDOW4G capability without the NO4GB quirk.
* Ask the adapter more about its capabilities and try to use those if
  they seem sane.
* Do our bus_dmamap_sync() inside dequeue_fib instead of following,
  since we have the information that we need there.
* Provide access functions for some adapters that I haven't seen yet
  (MIPS-based "Rocket" adapters).  Not yet used.
2007-06-05 04:04:13 +00:00
xtraeme
e0ea4d6215 By popular demand, ANSIfy to be able to diff easily with amd64. 2007-06-05 00:12:54 +00:00
xtraeme
abb9640a6e Ansify, de-__P(). 2007-06-04 23:24:14 +00:00
xtraeme
cb24dd04a8 Ansify, de-__P(), unregister. 2007-06-04 23:15:00 +00:00
dsl
3e4175ccc9 Fix select() without a timeout parameter. 2007-06-04 21:02:22 +00:00
xtraeme
dfa04859c6 Add four missing bits for CPUID2_FLAGS, from FreeBSD. 2007-06-04 16:21:29 +00:00
xtraeme
4b7555434a - Use aprint_verbose for consistency with i386 (suggested by ad).
- Wrap long lines.
2007-06-04 14:45:32 +00:00
xtraeme
1744412928 Print Intel CPUID extended features if they are available, also
simplify ci_feature2_flags and use directly CPUID2_FLAGS on
bitmask_snprintf(9).

Now I can see the same CPUID features than on i386:

$ dmesg|grep -E '(cpu0.*features)'
cpu0: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,B20,DS,ACPI,MMX>
cpu0: features: bffbfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2: 649d<SSE3,MONITOR,DS-CPL,EST,CID,xTPR>
cpu0: features3: bffbfbff<SYSCALL/SYSRET,XD,EM64T>
$

Ok'ed by Andrew Doran.
2007-06-04 14:34:37 +00:00
martti
fff7fd04df s/iplattach/ipfattach/ and s/ipldetach/ipfdetach/ 2007-06-04 12:38:58 +00:00
martin
c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
chs
243f294f4f instead of specifying the start of the data section in the makefile,
just round it up to the next 4MB boundary in the ldscript.
this prevents parts of the kernel-image range from being left unmapped.
fixes PR 36388.
2007-06-04 04:53:44 +00:00
uwe
b419ee7e97 Don't treat KLOADER_KERNEL_PATH as an option to enable kloader(4).
Define proper option KLOADER instead and make KLOADER_KERNEL_PATH
default to "/netbsd".  Make it possible to compile w/out kloader.
2007-06-03 19:46:23 +00:00
xtraeme
583a110ce0 Remove Enhanced Speedstep stuff from here, it's defined on files.x86
now.
2007-06-03 19:37:50 +00:00
xtraeme
53e2712d54 Add the options for Enhanced Speedstep commented out. 2007-06-03 19:34:07 +00:00
xtraeme
699c85af09 Make the Enhanced Speedstep driver available for i386 and amd64.
To use it on EM64T CPUs supporting the EST CPUID feature. Note that
some CPUs still don't work with this driver, like Xeon or Pentium 4.

Move the p[34]_get_bus_clock functions into its own file,
intel_busclock.c and remove this code from i386/identcpu.c.

Tested on i386 by myself and amd64 by Tonerre.
2007-06-03 19:32:26 +00:00
dsl
938cde68e5 Add a #define that expands to the compat wrapper for sigaltstack1().
Use it for the netbsd32_compat_13.c version of the code.
2007-06-03 14:59:46 +00:00
dsl
671dc7790c sendmsg() shouldn't modify the 'msg' parameter, and recvmsg() doesn't have
to modify the 'iov' array - it isn't updated.
2007-06-03 11:30:59 +00:00
dsl
97d93705e5 Calling sigaltstack1() directly is so much easier than going via
compat_13_sys_sigaltstack().
2007-06-03 11:09:35 +00:00
dsl
ed63ffe787 Split netbsd32___semctl14() so that it is callable from
compat_10_netbsd32_sys_semsys() (where the one parameter is already in
kernel space).
Note that the code in compat_10_netbsd32_sys_semsys() has always been wrong,
since it called compat_14_sys___semctl() - which would read 64bit values!
2007-06-03 10:55:10 +00:00
dsl
7ba299c5d4 Split sys__lwp_park() so that the compat/netbsd32 code can copyin and convert
its timeout then call the standard function.
2007-06-03 09:50:12 +00:00
pavel
4d6ee26f48 Attempt to fix PR kern/36431 by including process_read_fpregs() and
process_read_regs() when COREDUMP is defined. These function are used
in core_elf32.c .
2007-06-03 09:38:16 +00:00
dsl
b38af594ea Move the #if at the top of trace_enter/exit back above the declaration of 'p'
(where it used to be in rev 1.147) so that this code compiles when none of
the trace options are in use.
Fixes PR kern/36431
2007-06-03 07:47:50 +00:00
dogcow
9ab52b1142 Move isp* from INSTALL to INSTALL_LARGE; isp is gigantic enough that it
makes a noticable impact in the size of the kernel. (build release now works
again.)
2007-06-03 03:39:53 +00:00
uwe
c75253c460 Nuke traces of PCI. Minor cosmetic clean ups. 2007-06-03 01:52:54 +00:00
uwe
dcaa9bf80c Include igsfb_ofbusvar.h by its full official name. 2007-06-03 01:31:31 +00:00
uwe
217bc0b26b Make the name of the multiple-inclusion guard symbol match the file location. 2007-06-03 01:28:54 +00:00
tsutsui
04776a47dd Remove another #ifdef PCB_CMAP2 portion. 2007-06-02 23:51:37 +00:00
alc
3a676de695 don't increment `ip6stat.ip6s_noroute' here, it has already been done in
in6_src:in6_selectroute().

ok dyoung@
2007-06-02 23:26:26 +00:00
njoly
df2c7d05e6 Revert fs/gs changes for now.
This make clone(2) work again under NPTL compat linux emulation.

ok by fvdl.
2007-06-02 22:59:03 +00:00
dsl
44250a9038 Add some 'magic' defines so that we can build the svr4_32 version of this
code from the same source file as the svr4 copy.
I suspect this cpuld be done in other places....
2007-06-02 21:39:27 +00:00
uwe
cc652c9405 Add COMPAT_40. While here, make COMPAT_30 comment match other COMPAT_*. 2007-06-02 17:16:12 +00:00
dsl
21d1d4f346 Instead of unconditionally initialising the ktriov and conditionally
copying in aiov, just unconditionally copy in aiov.
Probably saves a mispredicted branch and a data cache miss - as well as
removing some code.
2007-06-02 13:38:31 +00:00
yamt
a15e4b5b1b wrap #include "opt_ktrace.h" by #ifdef _KERNEL_OPT. 2007-06-02 13:16:19 +00:00
tsutsui
0264c643f5 Rather than attaching fpu as a usual device during cpu_configure(9),
initialize it explicitly in identifycpu() (before cpu_configure(9))
because after yamt-idlelwp merge savectx() is called before
cpu_configure(9) and it requires fputype initialized properly,
otherwise a kernel fails in savectx() if a machine doesn't have an FPU.
2007-06-02 12:07:03 +00:00
dsl
3d0e15d3b2 Call selcommon() directly instead of using the stackgap... 2007-06-02 11:51:42 +00:00
tsutsui
5044d1542d Fix bus_dmamap_sync(9) to do more proper cache flush operations.
Mostly taken from mvme68k.

Tested on (not yet integrated) mac68k SONIC Ethernet with MI dp83932.c.

XXX: should we also enable _pmap_set_page_cache{able,inhibit}()
XXX: functions in m68k/pmap_motorola.c for BUS_DMA_COHERENT support?
2007-06-02 11:13:45 +00:00
tsutsui
a2d77b96dc In sonic_reset(), make sure to stop TX, RX and timer
and clear and disable all interrupts.
Required by mac68k obio sonic cards, and
no bad side effect on arc jazzio sonic.
2007-06-02 10:48:24 +00:00
dsl
e12ac31b52 Remove an unsed call to stackgap_init() 2007-06-02 10:09:05 +00:00
tsutsui
8964fdca7a Sync tda_status and rda_status DMA descriptors also after they are polled
in interrupt handlers for systems which don't have BUS_DMA_COHERENT support.
2007-06-02 06:41:34 +00:00
tsutsui
9955baccd9 Add #define __NO_STRICT_ALIGNMENT. 2007-06-02 06:34:21 +00:00
tsutsui
59a3d07b9a Don't try to clear BSS if bootinfo is passed
(i.e. running kernel is loaded by the native bootloader).
2007-06-02 06:30:17 +00:00
tsutsui
f4ba139f1a Use some more ANSI character escape sequences in keymaps. 2007-06-02 06:27:12 +00:00
tsutsui
b1102490c5 Sort some keymap entries. 2007-06-02 06:24:56 +00:00
tsutsui
c0f042edea - Don't refer fputype before FPU is probed.
- Call m68k_make_fpu_idle_frame() from initfpu().
2007-06-02 06:23:56 +00:00