Commit Graph

986 Commits

Author SHA1 Message Date
dholland
effcf1af5c Convert 67 namei call sites to use namei_simple, in these functions:
check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,
compat_20_sys_statfs, compat_20_netbsd32_statfs,
ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs,
ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib,
osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs,
ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4),
adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount,
ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount,
ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags,
sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown,
sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs,
sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl,
sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file,
sys_extattr_get_link, sys_extattr_delete_file,
sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link,
sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr,
sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr

All have been scrutinized (several times, in fact) and compile-tested,
but not all have been explicitly tested in action.

XXX: While I haven't (intentionally) changed the use or nonuse of
XXX: TRYEMULROOT in any of these places, I'm not convinced all the
XXX: uses are correct; an audit might be desirable.
2009-06-29 05:08:15 +00:00
uwe
4872798d7b In pmap_protect(), compute the bitmask to set in the ptes only once, instead
of every iteration.  From OpenBSD.
2009-06-09 02:38:27 +00:00
uwe
77f067a4b0 Fix logic error in copyinstr() when deciding whether to return EFAULT
or ENAMETOOLONG.

From OpenBSD revision 1.9 by miod@
2009-06-09 01:35:11 +00:00
uwe
ee5edddfc3 Spell "handler" correctly. 2009-06-09 00:24:51 +00:00
skrll
e03976623a Add TLS relocation definitions. 2009-05-30 05:56:52 +00:00
nonaka
3340f93870 Added SH7706 cache flush op. 2009-05-16 10:13:13 +00:00
nonaka
2ed632c011 Add SH4 INTEVT codes for GPIO. 2009-05-16 10:11:50 +00:00
nonaka
8ca2e6bcac Support SH7706 2009-04-30 05:20:30 +00:00
nonaka
3954731670 Added some register definition. 2009-04-30 05:19:38 +00:00
cegger
1d89a182fb change pmap flags argument from int to u_int.
discussed with christos@ on source-changes-d@
2009-04-21 21:29:58 +00:00
nonaka
1674ba203e Add SH7706 2009-04-21 12:57:41 +00:00
uwe
375ebd8c0b Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
2009-04-05 00:22:27 +00:00
uwe
c68d2565cb Register with pmf(9), tell it we don't need anything. 2009-04-05 00:17:56 +00:00
uwe
584c995418 Register with pmf(9), tell it we don't need anything. 2009-04-05 00:04:51 +00:00
uwe
490f3711c0 Interrupt handling changes (revision 1.23) bumped down _IPL_N to 8 for
some reason.  Restore it to correct 16.

HTF did hpcsh work all this time with hd6446x_imask[_IPL_N] indexed
with IPLs 0..15 is a mistery...  Discovered by accidentally triggering
hd64461 timer interrupt that is not enabled and should have been
masked.

_IPL_N used to be *also incorrect* 15 before Andy's change, which
makes one wonder if dumb luck is severly underappreciated.
2009-03-21 06:11:08 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
joerg
f5b0fec0e0 Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
2009-03-06 20:31:46 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
uwe
f7b9361ff7 Revert two previous revisions and just use __pmap_kernel directly again.
There's no reason to pretend we don't know what kernel_pmap_ptr is.
2009-01-23 16:54:14 +00:00
uwe
c02a1adf3c Unhide __pmap_kernel for the benefit of fast tlb miss handlers. 2009-01-23 16:46:51 +00:00
uch
a44b846fe4 __pmap_kernel is pointer not symbol from pmap.c 1.68. set correct address. 2009-01-23 04:36:13 +00:00
cegger
b4fe900840 adaption for making kgdb_dev a dev_t 2009-01-11 23:20:37 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
njoly
992269c5c4 Fix remaining archs (arm, luna68k, powerpc and sh3) that were still
using a proc argument instead of an expected lwp for ADDUPROF macro.

ok by christos.
2008-12-19 15:20:10 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
pooka
ee352f3d33 Make kernel_pmap_ptr a const. Requested by steve_martin. 2008-12-10 11:10:17 +00:00
pooka
29d439f898 Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.
2008-12-09 20:45:44 +00:00
uwe
67e730e6a0 Sort 2008-11-22 02:12:45 +00:00
uwe
1b438796de Move COMPAT_16 signal stuff to the new compat_16_machdep.c file, so
that it can be built as part of a module.
2008-11-22 01:53:41 +00:00
uwe
c2b0ccbf39 Provide COMPAT_16 sigcode for MODULAR kernels too (to avoid the
trouble of adding compat_16_locore.S just for these 20 bytes - at
least for now).
2008-11-22 01:51:22 +00:00
uwe
da6162349a G/c all reloc types except R_SH_DIR32 - which is the only one we
expect from a kmod that only have unresolved external symbols.
2008-11-21 23:18:11 +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
uwe
5e0b9095dd Implement PT___GETREGS40 and PT___SETREGS40 under COMPAT_40 so that
old gdb works on newer kernels.
2008-10-27 23:50:12 +00:00
uwe
428393080e Compile conditionally depending on options PTRACE and COREDUMP. 2008-10-27 22:10:36 +00:00
uwe
6dd6ba05bf Fix typo in comment inherited from i386 (spotted by mjf@). 2008-10-26 19:53:03 +00:00
uwe
ccef70cded process_read_regs, process_write_regs - handle reg::r_gbr 2008-10-26 19:43:20 +00:00
uwe
2d5078daa2 Add r_gbr to struct reg. Provide old definition as struct __reg40.
Rename old PT_GETREG to PT___GETREG40, PT_SETREG to PT___SETREG40.
2008-10-26 19:37:59 +00:00
uwe
70b97564f4 Oops, make #endif comment properly reflect the test. 2008-10-26 19:16:51 +00:00
uwe
ebee56aef0 Multiple inclusion protection. 2008-10-26 19:10:10 +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
wrstuden
15e53296cb upcallret() will work much better if it's not in the middle of another
routine!
2008-10-21 04:16:59 +00:00
wrstuden
fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
uwe
83b202b6e6 Use pushsection/popsection for RCSID. 2008-09-19 03:02:35 +00:00
matt
91d4704c12 Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of the
NetBSD defined ones.  Redefine the NetBSD ones in terms of the C99 ones.
Step 1 to having <fenv.h>
2008-08-05 16:47:41 +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
cegger
2dea63fe78 use device_lookup_private to get softc 2008-06-13 13:08:57 +00:00
uwe
b3f49ac041 sh_vector_generic - reorder literals to improve locality of reference. 2008-06-08 23:45:33 +00:00
uwe
1a80db70f1 Match PC address for single-stepping, program BARA = tf->tf_spc before
returning from exception.

Makes single-stepping work on sh3 - without matching the address sh3
gets stuck at the instruction we are at, getting EXPEVT_BREAK before
executing the instruction.
2008-06-08 22:13:09 +00:00