opnsense-src/sys/i386/i386
Bill Paul 6041f1a522 The kthread_create() API is supposed to allow you to create threads
with more than the normal amount of stack pages, however the stack
pointer always wound up being initialized using KSTACK_PAGES. It
should be using td->td_kstack_pages instead. This means that although
the vm subsystem would give you all the stack pages you asked for,
%esp would always be initialized as if you had just 2 pages, and
the rest would go to waste.

I wanted to use the 'give me more stack pages' feature of kthread_create()
because the Intel 2200BG NDIS driver does an alloca() of about 5000 bytes,
which wrecks the stack with the default 2 page size, and I was baffled
that no matter how much code I shoved into thread contexts with
allegedly larger stacks, the thing would still crash unless I changed
KSTACK_PAGES.

Note: this bug is present in _ALL_ arches at this point. Peter has
promised to merge this fix into all of them.
2004-03-22 00:28:38 +00:00
..
apic_vector.s Revert the skipping of segment register reloads as it appears to actually 2004-02-03 22:00:42 +00:00
atomic.c Fix copyright comment & FBSDID style nits. 2003-08-25 09:48:48 +00:00
autoconf.c - Remove explicit enabling of the BSP's APIC in the APIC_IO case and the 2003-11-03 22:20:50 +00:00
bios.c Don't probe PnP BIOS devices for PICs for now to avoid problems with those 2003-11-03 22:22:04 +00:00
bioscall.s
busdma_machdep.c Now that contigfree() does not require Giant, don't grab it in busdma. 2004-03-13 15:42:59 +00:00
critical.c Include <machine/psl.h> for the definition of PSL_I instead of depending 2004-03-05 14:23:13 +00:00
db_disasm.c Fix copyright comment & FBSDID style nits. 2003-08-25 09:48:48 +00:00
db_interface.c These are changes to allow to use the Intel C/C++ compiler (lang/icc) 2004-03-12 21:45:33 +00:00
db_trace.c Update names of entry points for interrupt frames. 2003-11-03 22:07:21 +00:00
dump_machdep.c Fix copyright comment & FBSDID style nits. 2003-08-25 09:48:48 +00:00
elan-mmcr.c The PPS code needs to be much more brutal to avoid synchronism on 2004-03-15 21:47:34 +00:00
elf_machdep.c Add an additional field to the elf brandinfo structure to support 2003-12-23 02:42:39 +00:00
exception.s - Export doreti as a global symbol. 2003-11-03 22:08:52 +00:00
genassym.c Garbage collect unused values. 2003-11-12 18:14:34 +00:00
geode.c Add support for the watchdog in Geode SC1100 which is used in embedded 2004-02-28 22:33:28 +00:00
i386-gdbstub.c Fix copyright comment & FBSDID style nits. 2003-08-25 09:48:48 +00:00
i686_mem.c Change all SYSCTLS which are readonly and have a related TUNABLE 2003-10-21 18:28:36 +00:00
identcpu.c These are changes to allow to use the Intel C/C++ compiler (lang/icc) 2004-03-12 21:45:33 +00:00
in_cksum.c These are changes to allow to use the Intel C/C++ compiler (lang/icc) 2004-03-12 21:45:33 +00:00
initcpu.c Update a comment. 2003-11-10 15:48:30 +00:00
intr_machdep.c Widen the enable/disable helper function's argument in line with the 2003-11-17 06:10:15 +00:00
io_apic.c - Move manipulation of td_intr_nesting_level out of assembly interrupt 2003-11-12 18:13:57 +00:00
k6_mem.c Fix copyright comment & FBSDID style nits. 2003-08-25 09:48:48 +00:00
legacy.c Fix copyright comment & FBSDID style nits. 2003-08-25 09:48:48 +00:00
local_apic.c - Make sure the apic is idle before sending an IPI. This is required on 2004-02-02 09:50:43 +00:00
locore.s New APIC support code: 2003-11-03 21:53:38 +00:00
longrun.c Compiled longrun.c when defined options CPU_ENABLE_LONGRUN, 2004-01-31 20:14:44 +00:00
machdep.c Set PCPU_GET(curpcb) for the BSP to thread0's pcb. Otherwise, the boot CPU 2004-02-02 23:22:24 +00:00
mem.c Device megapatch 4/6: 2004-02-21 21:10:55 +00:00
mp_clock.c - Fail to probe if acpi0 probed ok as this driver basically tries to probe 2003-10-24 21:01:31 +00:00
mp_machdep.c - Move smp_topology to subr_smp.c so that it is defined on all architectures. 2004-01-24 19:52:48 +00:00
mpboot.s New i386 SMP code: 2003-11-03 22:32:04 +00:00
mptable.c Use NAPICID for the maximum number of local APICs rather than MAXCPU when 2003-12-10 19:29:39 +00:00
mptable_pci.c Add the MP Table APIC enumerator. This code uses the BIOS MP Table to 2003-11-03 22:12:37 +00:00
nexus.c Instead of marking all 159 interrupts as available in the IRQ resource 2003-11-05 23:19:44 +00:00
p4tcc.c o Typo: Ternal -> Thermal. 2004-02-29 18:30:35 +00:00
perfmon.c Device megapatch 4/6: 2004-02-21 21:10:55 +00:00
pmap.c Retire pmap_pinit2(). Alpha was the last platform that used it. However, 2004-03-07 21:06:48 +00:00
support.s Allocate space for the intrcnt array. This array is managed in the 2003-11-03 21:28:54 +00:00
swtch.s Add linenumber and source filename to panic(9) output. 2004-01-19 21:27:11 +00:00
symbols.raw
sys_machdep.c Turning on warning for static LDT allocation. 2003-09-07 05:23:28 +00:00
trap.c Remove stale or broken call to kdb_trap() and protected by the non- 2004-03-11 00:17:45 +00:00
tsc.c Change all SYSCTLS which are readonly and have a related TUNABLE 2003-10-21 18:28:36 +00:00
uio_machdep.c Add an implementation of uiomove_fromphys() for i386. This implementation 2004-03-21 20:28:36 +00:00
vm86.c Fix copyright comment & FBSDID style nits. 2003-08-25 09:48:48 +00:00
vm86bios.s - Add support for PAE and more than 4 gigs of ram on x86, dependent on the 2003-03-30 05:24:52 +00:00
vm_machdep.c The kthread_create() API is supposed to allow you to create threads 2004-03-22 00:28:38 +00:00