#
eb96f2eb |
| 01-Nov-2021 |
thorpej <thorpej@NetBSD.org> |
Use "stack_t" instead of "struct sigaltstack", as the former is the newer standardized name. NFC.
|
#
d50c96bb |
| 07-Sep-2021 |
riastradh <riastradh@NetBSD.org> |
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it awa
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
show more ...
|
#
91dfe799 |
| 09-Aug-2021 |
andvar <andvar@NetBSD.org> |
fix typos in asymmetry, asymmetric(al), symmetrical.
|
#
48f82a0f |
| 19-May-2019 |
maxv <maxv@NetBSD.org> |
Rename
fpu_save_area_clear -> fpu_clear fpu_save_area_reset -> fpu_sigreset
Clearer, and reduces a future diff. No real functional change.
|
#
d2ad4531 |
| 17-Sep-2017 |
maxv <maxv@NetBSD.org> |
Remove the second argument from USERMODE and KERNELMODE, it is unused now that we don't have vm86 anymore.
|
#
81ce6dad |
| 12-Aug-2017 |
maxv <maxv@NetBSD.org> |
Remove vm86. Simplifies a number of critical places.
Pass 2.
|
#
3203c4bb |
| 05-Feb-2017 |
maxv <maxv@NetBSD.org> |
Rename ldt->ldtstore and gdt->gdtstore on i386. It reduces the diff with amd64, and makes it easier to track down these variables on nxr - 'ldt' and 'gdt' being common keywords.
|
#
1c39317b |
| 13-Jul-2016 |
maxv <maxv@NetBSD.org> |
x86_alldisks can be NULL, so don't dereference it. Not tested, but obvious enough.
|
#
e92dd42c |
| 08-Dec-2015 |
christos <christos@NetBSD.org> |
Fix DIOCGPARTINFO
|
#
9f63582c |
| 08-Dec-2015 |
christos <christos@NetBSD.org> |
Replace DIOCGPART -> DIOCGPARTINFO which returns the data needed instead of pointers.
|
#
0d955aa7 |
| 09-Nov-2014 |
maxv <maxv@NetBSD.org> |
Do not uselessly include <sys/malloc.h>.
|
#
766fc1e0 |
| 19-Feb-2014 |
dsl <dsl@NetBSD.org> |
Add explicit #include <x86/fpu.h> instead of relying on pcb.h including it.
|
#
663a6b84 |
| 15-Feb-2014 |
dsl <dsl@NetBSD.org> |
Remove all references to MDL_USEDFPU and deferred fpu initialisation. The cost of zeroing the save area on exec is minimal. This stops the FP registers of a random process being used the first time
Remove all references to MDL_USEDFPU and deferred fpu initialisation. The cost of zeroing the save area on exec is minimal. This stops the FP registers of a random process being used the first time an lwp uses the fpu. sendsig_siginfo() and get_mcontext() now unconditionally copy the FP registers. I'll remove the double-copy for signal handlers soon. get_mcontext() might have been leaking kernel memory to userspace - and may still do so if i386_use_fxsave is false (short copies).
show more ...
|
#
576405d1 |
| 26-Jan-2014 |
dsl <dsl@NetBSD.org> |
Remove support for 'external' floating point units and the MS-DOS compatible method of handling floating point exceptions. Make kernel support for teh fpu non-optional (486SX should still work). On
Remove support for 'external' floating point units and the MS-DOS compatible method of handling floating point exceptions. Make kernel support for teh fpu non-optional (486SX should still work). Only 386 cpus support external fpu, and i386 support was removed years ago. This means that the npx code no longer uses port 0xf0 or interupt 13. All the "npx at isa" lines go from the configs, arch/i386/isa/npx.c is now mandatory for all i386 kernels. I've renamed npxinit() to fpuinit() and npxinit_cpu() to fpuinit_cpu() to match the very similar amd64 functions. The fpu of the boot cpu is now initialised by a direct call from cpu_configure(), this enables FP emulation for a 486SX. (for amd64 the cr0 values are set in locore.S and similar). This fixes a long-standing bug in linux_setregs() - which did not save the fpu regsiters if they were active. I've test booted a single cpu i386 kernel (using anita). amd64 builds - none of teh changes should affect it. The i386 XEN kernels build, but I'm not sure where they set cr0, and it might have got lost!
show more ...
|
#
4b6a4017 |
| 19-Jan-2014 |
dsl <dsl@NetBSD.org> |
Flatten the floating point register structures bu moving the 'environment' registers into the main strcuture. There are x87 instructions that only affect the environment, but that is no real excu
Flatten the floating point register structures bu moving the 'environment' registers into the main strcuture. There are x87 instructions that only affect the environment, but that is no real excuse for all the sub-structures. Rename fields so that there are far fewer collisions between the two sets of field names.
show more ...
|
#
8e681509 |
| 09-Dec-2013 |
dsl <dsl@NetBSD.org> |
Missing change to the fxsave structure rename
|
#
c959d6a1 |
| 01-Dec-2013 |
christos <christos@NetBSD.org> |
revert fpu/pcu changes until we figure out what's wrong; they cause random freezes
|
#
0f75fe56 |
| 23-Oct-2013 |
drochner <drochner@NetBSD.org> |
Use the MI "pcu" framework for bookkeeping of npx/fpu states on x86. This reduces the amount of MD code enormously, and makes it easier to implement support for newer CPU features which require more
Use the MI "pcu" framework for bookkeeping of npx/fpu states on x86. This reduces the amount of MD code enormously, and makes it easier to implement support for newer CPU features which require more fpu state, or for fpu usage by the kernel. For access to FPU state across CPUs, an xcall kthread is used now rather than a dedicated IPI. No user visible changes intended.
show more ...
|
#
d2a93a7e |
| 18-Nov-2011 |
christos <christos@NetBSD.org> |
- add sigtimedwait support. - merge the siginfo population code.
|
#
c3454f5a |
| 04-Mar-2011 |
joerg <joerg@NetBSD.org> |
Refactor ps_strings access. Based on PK_32, write either the normal version or the 32bit compat layout in execve1. Introduce a new function copyin_psstrings for reading it back from userland and conv
Refactor ps_strings access. Based on PK_32, write either the normal version or the 32bit compat layout in execve1. Introduce a new function copyin_psstrings for reading it back from userland and converting it to the native layout. Refactor procfs to share most of the code with the kern.proc_args sysctl handler.
This material is based upon work partially supported by The NetBSD Foundation under a contract with Joerg Sonnenberger.
show more ...
|
#
33fa5ccb |
| 07-Jul-2010 |
chs <chs@NetBSD.org> |
many changes for COMPAT_LINUX: - update the linux syscall table for each platform. - support new-style (NPTL) linux pthreads on all platforms. clone() with CLONE_THREAD uses 1 process with many
many changes for COMPAT_LINUX: - update the linux syscall table for each platform. - support new-style (NPTL) linux pthreads on all platforms. clone() with CLONE_THREAD uses 1 process with many LWPs instead of separate processes. - move the contents of sys__lwp_setprivate() into a new lwp_setprivate() and use that everywhere. - update linux_release[] and linux32_release[] to "2.6.18". - adjust placement of emul fork/exec/exit hooks as needed and adjust other emul code to match. - convert all struct emul definitions to use named initializers. - change the pid allocator to allow multiple pids to refer to the same proc. - remove a few fields from struct proc that are no longer needed. - disable the non-functional "vdso" code in linux32/amd64, glibc works fine without it. - fix a race in the futex code where we could miss a wakeup after a requeue operation. - redo futex locking to be a little more efficient.
show more ...
|
#
cc199107 |
| 03-Feb-2010 |
wiz <wiz@NetBSD.org> |
Remove extra parenthesis. Found by cppcheck, reported by Henning Petersen in PR 42732.
|
#
93f06d87 |
| 05-Jan-2010 |
mbalmer <mbalmer@NetBSD.org> |
Remove extra semicolon.
|
#
eaddd780 |
| 23-Nov-2009 |
rmind <rmind@NetBSD.org> |
Use lwp_getpcb() in compat code, clean from struct user.
|
#
d22e6f64 |
| 29-May-2009 |
njoly <njoly@NetBSD.org> |
Add native to linux siginfo si_status translation, used on i386 and amd64.
|