summaryrefslogtreecommitdiff
path: root/sys/arch/prep/include/cpu.h
AgeCommit message (Collapse)Author
2011-06-20Don't expose port-specific if _MODULE is defined.matt
Don't _MACHINE_CPU_H_, _<PORT>_CPU_H_
2007-10-17Merge the ppcoea-renovation branch to HEAD.garbled
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here. TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted. NOTES: pmppc was removed as an arch, and moved to a evbppc target.
2006-03-16More changes to prep port:garbled
1) Add the NVRAM device. This device allows us to speak with the nvram on prep-based machines and read/write to it. Also add a simple IOCTL interface for speaking with the nvram from userland. This hasn't been tested yet, but eventually I plan to support it with the sparc eeprom command. 2) Change the root device detection to use the nvram device to attempt to guess the boot device. Most machines should now correctly guess thier boot device, though I expect a few devices to still not work quite right yet. 3) change the default IRQ to level rather than edge in the pnpbus if the flags are invalid or empty. (based on output from a PowerStack E1) 4) correctly handle older machines in pnpbus that have FixedIOPorts rather than variable ones. Still have much to do.
2001-08-26Make all powerpc ports use a common Makefile.powerpc (except walnut)matt
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports. Split out macppc cpu support and make common to mpc6xx ports. Make other mpc6xx ports use it. Add evcnts for mpc6xx traps.
2001-06-14Don't need to prototype child_return() here, it's in <sys/proc.h>.thorpej
2001-05-30use _KERNEL_OPTmrg
2000-12-14Partial syscall cleanup, as per other ports.mycroft
2000-08-25Make need_resched() take a "struct cpu_info *" argument. Thisthorpej
causes gives a primitive form of processor affinity. Its use in roundrobin() still needs some work.
2000-05-26First sweep at scheduler state cleanup. Collect MI schedulerthorpej
state into global and per-CPU scheduler state: - Global state: sched_qs (run queues), sched_whichqs (bitmap of non-empty run queues), sched_slpque (sleep queues). NOTE: These may collectively move into a struct schedstate at some point in the future. - Per-CPU state, struct schedstate_percpu: spc_runtime (time process on this CPU started running), spc_flags (replaces struct proc's p_schedflags), and spc_curpriority (usrpri of processes on this CPU). - Every platform must now supply a struct cpu_info and a curcpu() macro. Simplify existing cpu_info declarations where appropriate. - All references to per-CPU scheduler state now made through curcpu(). NOTE: this will likely be adjusted in the future after further changes to struct proc are made. Tested on i386 and Alpha. Changes are mostly mechanical, but apologies in advance if it doesn't compile on a particular platform.
2000-02-29Initial import prep port.nonaka