freebsd-skq/sys/i386/include
peter 85c9a2ddc1 Clean up some low level bootstrap code:
- stop using the evil 'struct trapframe' argument for mi_startup()
  (formerly main()).  There are much better ways of doing it.
- do not use prepare_usermode() - setregs() in execve() will do it
  all for us as long as the p_md.md_regs pointer is set.  (which is
  now done in machdep.c rather than init_main.c.  The Alpha port did it
  this way all along and is much cleaner).
- collect all the magic %cr0 etc register settings into one place and
  have the AP's call that instead of using magic numbers (!!) that keep
  changing over and over again.
- Make it safe to call kthread_create() earlier, including during the
  device probe sequence.  It doesn't need the callback mechanism that
  NetBSD's version uses.
- kthreads created this way are root-less as they exist before the root
  filesystem is mounted.  init(1) is set up so that it aquires the root
  pointers prior to running.  If other kthreads want filesystem acccess
  we can make this code more generic.
- set all threads start times once we have decided what time it is.
- init uses a trampoline rather than the evil prepare_usermode() hack.
- kern_descrip.c has a couple of tweaks to deal with forking when there
  is no rootdir or cwd etc.
- adjust the early SYSINIT() sequence so that a few prereqisites are in
  place. eg: make sure the run queue is initialized before doing forks.

With this, the USB code can easily create a kthread to do the device
tree discovery.  (I have tested it, it works nicely).

There are still some open issues before this is truely useful.
- tsleep() does not like working before the clock is running.  It
  sort-of tries to spin wait, but it can do more useful things now.
- stopping a kthread in kld code at unload time is "interesting" but
  we have a solution for that.

The Alpha code needs no changes for this.  It already uses pretty much the
same strategies, but a little cleaner.
2000-08-11 09:05:12 +00:00
..
pc Some more i386-only BIOS-friendliness: 2000-04-16 20:48:33 +00:00
_limits.h
ansi.h
apic.h
apicreg.h
apm_bios.h Cleanup debug messages and Add some enhancements from linux on 2000-08-04 20:28:53 +00:00
apm_segments.h
asc_ioctl.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
asm.h
asmacros.h
asnames.h Commit major SMP cleanups and move the BGL (big giant lock) in the 2000-03-28 07:16:37 +00:00
atomic.h When using _asm{} in GCC, one must specify the operand's size if one 2000-05-10 01:15:55 +00:00
bootinfo.h
bus_at386.h Fixed syntax errors and style bugs in previous commit. The syntax 2000-06-14 18:48:39 +00:00
bus_dma.h Fixed syntax errors and style bugs in previous commit. The syntax 2000-06-14 18:48:39 +00:00
bus_memio.h
bus_pc98.h Fixed syntax errors and style bugs in previous commit. The syntax 2000-06-14 18:48:39 +00:00
bus_pio_ind.h Added indirect pio into the bus space stuff for the NEC PC-98. bus.h 2000-03-29 03:15:22 +00:00
bus_pio.h
bus.h Added indirect pio into the bus space stuff for the NEC PC-98. bus.h 2000-03-29 03:15:22 +00:00
cdk.h
clock.h
comstats.h
console.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
cpu.h Clean up some low level bootstrap code: 2000-08-11 09:05:12 +00:00
cpufunc.h
cputypes.h
cronyx.h
db_machdep.h
dvcfg.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
elf.h
endian.h
exec.h
float.h
floatingpoint.h
frame.h
globaldata.h Commit major SMP cleanups and move the BGL (big giant lock) in the 2000-03-28 07:16:37 +00:00
globals.h Commit major SMP cleanups and move the BGL (big giant lock) in the 2000-03-28 07:16:37 +00:00
gsc.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
i4b_cause.h
i4b_debug.h
i4b_ioctl.h
i4b_rbch_ioctl.h
i4b_tel_ioctl.h
i4b_trace.h
ieeefp.h
if_wavelan_ieee.h
if_wl_wavelan.h
iic.h
in_cksum.h Make in_cksum() a macro call to in_cksum_skip(), since it provides the 2000-05-06 18:18:32 +00:00
ioctl_bt848.h Add multiple #include protection 2000-04-04 16:46:19 +00:00
ioctl_ctx.h
ioctl_fd.h
ioctl_meteor.h
ipl.h Pack the SWI bits to save some time and space. 2000-05-31 16:36:20 +00:00
limits.h
lock.h Commit major SMP cleanups and move the BGL (big giant lock) in the 2000-03-28 07:16:37 +00:00
md_var.h Clean up some low level bootstrap code: 2000-08-11 09:05:12 +00:00
mouse.h
mpapic.h Bump the default NBUS value to 8, in lieu of actually sizing it 2000-05-31 18:55:02 +00:00
mptable.h Clean up some low level bootstrap code: 2000-08-11 09:05:12 +00:00
mtpr.h
npx.h
param.h Change the mbuf size from 128 -> 256. Increasing the mbuf header size 2000-03-29 05:39:04 +00:00
pcaudioio.h
pcb_ext.h
pcb.h
pci_cfgreg.h
pcpu.h Commit major SMP cleanups and move the BGL (big giant lock) in the 2000-03-28 07:16:37 +00:00
pcvt_ioctl.h Add support for "green" saver mode. 2000-03-31 08:29:21 +00:00
perfmon.h
pmap.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
proc.h
profile.h
psl.h
ptrace.h
reg.h
reloc.h
resource.h
segments.h
setjmp.h
sigframe.h
signal.h
smb.h
smp.h Be more verbose when changing APIC ID on an IO APIC. 2000-08-06 00:04:03 +00:00
smptests.h Commit major SMP cleanups and move the BGL (big giant lock) in the 2000-03-28 07:16:37 +00:00
speaker.h
specialreg.h
spigot.h
stdarg.h
sysarch.h
trap.h
tss.h
types.h
uc_device.h
ucontext.h
ultrasound.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
varargs.h
vm86.h
vmparam.h Make sysv-style shared memory tuneable params fully runtime adjustable 2000-03-30 07:17:05 +00:00
wtio.h