Commit Graph

2646 Commits

Author SHA1 Message Date
ad
93ea4650a6 dumpsys: don't spew numbers into the log. 2008-11-25 15:51:34 +00:00
nakayama
4cb83f9c6e Make DDB shows right register values on 32-bit sparc64 kernels.
- define db_expr_t as int64_t.
- %gsr is 32-bit, so use db_sparc_intop.
- sync arguments with function prototype.
- ansify.
2008-11-25 15:41:11 +00:00
ad
6ba528b5bc Remove softdep, pass 1. We are focused on improving journalling.
Proposed on tech-kern@.
2008-11-24 11:41:07 +00:00
nakayama
5eb6089010 Wrap #include "opt_*.h" with #ifdef _KERNEL_OPT. 2008-11-23 01:10:00 +00:00
spz
beee1d989f pmap_is_referenced_locked() is relevant for non-MULTIPROCESSOR systems too,
says martin@
2008-11-22 13:01:08 +00:00
martin
53e6514de6 remove duplicate prototype (sys/signalvar.h is authoritive) 2008-11-20 22:50:52 +00:00
ad
92ce8c6a3d Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
2008-11-19 18:35:57 +00:00
macallan
cfce4b5539 make this work right with WSDISPLAY_SCROLLSUPPORT 2008-11-16 05:10:46 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
dyoung
94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
nakayama
f62c51b2f4 Wrap more code specific to USE_BLOCK_STORE_LOAD. 2008-10-30 12:29:45 +00:00
jkunz
20870d5cc0 Enable the newly inported device drivers alipm(4) and admtemp(4). 2008-10-29 17:29:45 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
mrg
6c952c0d18 move the float definitions all into <sparc/float.h> and make that
version work in either 32 or 64 bit mode.
2008-10-25 09:23:50 +00:00
martin
58175029a4 Avoid code duplication: make cpu_lwp_fork() use cpu_setfunc(). Leave
the inlinig to the compiler. Suggested by Nick Hudson.
2008-10-24 07:54:41 +00:00
jnemeth
a44b3bd750 add pseudo-device drvctl 2008-10-22 07:23:42 +00:00
ad
d1b01a3709 Provide a small inline wrapper for sysent::sy_call() and use it to store
the active syscall description in struct lwp. To be used at some future
point to prevent unloading of modules that provide syscalls, while the
syscalls are in use.
2008-10-21 12:16:58 +00:00
macallan
7fef38b51e If output-device contains a video mode specifier ( as in
screen:r1152x900x76 ) cut it off and pass it to the console driver. This
way radeonfb has a fighting chance to setup a mode similar or identical to
the firmware's.
2008-10-21 06:07:14 +00:00
nakayama
013857af9f Change type of per-CPU event counters to EVCNT_TYPE_MISC. 2008-10-18 04:41:14 +00:00
nakayama
b585d2d805 - fix corner case bugs.
- avoid unnecessary write backs.
- remove meaningless local variable usages.
2008-10-18 04:20:37 +00:00
nakayama
4317807e77 It is wasteful that reconstructing arguments for inserting the pointer
to streaming buffers in each bus_dma functions on sbus/psycho layer.

Use iommu functions directly with storing the pointer into (unused)
_dm_cookie at bus_dmamap_create time.
2008-10-18 03:31:10 +00:00
nakayama
3b0cd26d98 UltraSPARC IIi and IIe have PCI DMA Write Synchronization Register to
synchronize the DMA writes.  So use it in case of BUS_DMASYNC_POSTREAD.

Tested on my Netra X1 for several years.
2008-10-18 03:10:53 +00:00
martin
ec4b77b48c resurrect cpu_setfunc(), adapted to new world order. 2008-10-16 17:08:33 +00:00
wrstuden
fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
nakayama
b940ad18f1 Avoid local include. 2008-10-13 12:34:56 +00:00
nakayama
af71e728d1 Remove unnecessary includes. 2008-10-13 12:25:22 +00:00
nakayama
4d0ec49dcd Conform previous commit to KNF, pointed out by ad@. 2008-10-06 10:45:47 +00:00
nakayama
226eb3d083 pmap_cache: use BLOCK_SIZE as alignment.
pmap_pv_cache: use large size groups (PR_LARGECACHE) like x86.
2008-10-05 02:07:39 +00:00
nakayama
15985b5612 - in flushing cache, use 32 as increment/decrement value to match the
cache line size.
- remove useless restore of %asi.
- remove nop in delay slot if we can.
2008-10-05 02:00:53 +00:00
nakayama
8ce40a410b struct cpu_info: reorder member to avoid a padding. 2008-10-05 01:53:05 +00:00
martin
ee1e376b77 pmap_is_modified() and pmap_is_referenced(): when we don't find a cached
positive answer in the list head, make sure to aquire pmap_lock before
traversing the pv list (and update the cache in head).
Fixes a diagnostic debugger call reported by Havard Eidnes.
2008-09-23 21:30:11 +00:00
tsutsui
1a0c6c8f90 Remove advertising clause for UCB in various genassym.cf files,
which were derived from genassym.c in 4.4BSD-Lite2 (or 386BSD).
Closes PR misc/39573.  Approved by martin@.
2008-09-20 18:29:04 +00:00
martin
3c52d9932f We are not creating a.out NMAGIC files, and handling the required alignement
of sections explicitly in the ldscript, so do not pass -n to ld.
This fixes the strange combined text/data sections seen with certain
(smaller) kernels as explained on tech-toolchain.
Found by Nick Hudson, ok: matthew green.
2008-08-30 13:23:55 +00:00
martin
d38a14761e use device_private() to get the softc 2008-08-28 19:17:55 +00:00
martin
5c26a4b510 Turn a printf into a DEB 2008-08-27 22:05:13 +00:00
rjs
ec1968ceb9 Set MACHINE to sparc for 32bit kernels.
Approved by martin.
2008-08-26 11:37:56 +00:00
tls
fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
skrll
3ceaf8f8e4 Make "show uvmhist" available to all arches (not just sparc*) in ddb. 2008-08-08 17:09:28 +00:00
martin
80d96333fc Remove a few components of struct lwp that we do not touch any more. 2008-08-06 16:12:59 +00:00
martin
8093db04c6 We need socketvar.h now for struct sockopt. 2008-08-06 15:36:20 +00:00
simonb
0751ba4bff Add "options WAPBL" to standard GENERIC/INSTALL type configs. 2008-07-31 07:40:59 +00:00
nakayama
edb7368453 Use proper CCR. 2008-07-10 15:38:40 +00:00
nakayama
3eac605929 sparc64_ipi_save_fpstate:
- use primary MMU context for consistency with other trap/interrupt handlers.

sparc64_ipi_save_fpstate, savefpstate:
- avoid storing fp registers as we can.

sparc64_ipi_save_fpstate, savefpstate, loadfpstate:
- remove unaligned case since buffers allocated with pool_cache are ensured
  64-byte aligned.

Ok by martin@.
2008-07-10 15:23:58 +00:00
nakayama
b74ec3e6b6 Switch fpstate buffer allocation from malloc to pool_cache.
Ok by martin@.
2008-07-10 15:04:41 +00:00
rmind
160268aca6 Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.
2008-07-02 19:49:58 +00:00
ad
b94f79f0e8 Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@. 2008-07-02 17:28:54 +00:00
nakayama
773fffc601 UltraSPARCs don't have floating point queue, and reading %fq regsiter
will cause illegal instruction trap. So remove the code handling them.
2008-07-02 12:15:19 +00:00
nakayama
3644fd9574 Fix commented sparc derived code. 2008-06-30 14:16:13 +00:00
nakayama
fa9b47137f Avoid use of "<< TSTATE_PSTATE_SHIFT". 2008-06-30 14:12:20 +00:00
nakayama
ddf9744a79 Add 32-bit kernel configuration with SMP support. 2008-06-29 08:05:43 +00:00