summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
Commit message (Collapse)AuthorAgeFilesLines
* Add ptrace_clear_single_step(), alpha already has it for years, the functiondavidxu2004-07-132-0/+16
| | | | will be used by ptrace to clear a thread's single step state.
* Rename low-level code ddb -> db. Use KDB instead of DDB.grehan2004-07-122-72/+72
| | | | | Fix bug in setup of stack frame where 8 bytes wasn't being saved for the callee's frame pointer and saved LR.
* Bring into KDB new order.grehan2004-07-122-18/+12
|
* - DDB -> KDB, with kdb routinesgrehan2004-07-122-46/+108
| | | | | | | - ddb -> db for low-level trapcode - implement makectx. I think it only matters that the stack is setup correctly. - bring over ddb_trap_glue and rename to db_trap_glue
* No need for ddb option. Never a need for ipkdb option.grehan2004-07-122-4/+0
|
* Catch up with gratuitous ddb -> db renaminggrehan2004-07-121-1/+1
|
* Bring into line with KDB. Bring in NetBSD updates for backtrace routine,grehan2004-07-121-149/+155
| | | | although it really needs a decent re-work.
* Remove unused NetBSD code. Bring mem r/w routines into here in linegrehan2004-07-121-341/+61
| | | | | | with sparc64, although keep the size deref checks: they are useful when accessing PCI space where some devices may not implement byte access.
* Gratuitous namechange to avoid low-level association with ddb.grehan2004-07-121-1/+1
|
* Add prototype for KDB's makectx routinegrehan2004-07-121-0/+2
|
* Remove old NetBSD-derived unused code and stuff that is now obsoletegrehan2004-07-121-33/+12
| | | | due to KDB.
* DDB -> KDB, and rename low-level trap handler to avoid name conflict.grehan2004-07-121-4/+4
|
* kdb.h for PowerPC. Stubs for now.grehan2004-07-121-0/+49
|
* Add new KDB option, and also drop in long-held fxp/dc eth drivers.grehan2004-07-121-1/+4
|
* pmap_remove_pages() must not remove wired mappings. Sincealc2004-07-123-12/+0
| | | | | | pmap_remove_pages() is an optimization, its implementation is optional. Discussed with: grehan
* - correctly set the return value for the copyin/out fault buffer to 1grehan2004-07-092-4/+20
| | | | | | | | | | | so setfault would return correctly when a page fault was invalid (e.g. a syscall with a bad parameter). This caused an endless DSI loop, seen when running sendmail which does a setlogin() call with a NULL pointer. - introduce KTR_SYSC tracing. expose the syscallnames[] array to make the tracing more readable.
* G4 requires isync after 256Mb ibat/dbat update, G3 requiresgrehan2004-07-083-9/+12
| | | | | isync after each bat update. Otherwise, pmap_bootstrap causes an ISI exception. A fall-out of loader BAT removal.
* - trailing white-space cleanupgrehan2004-07-062-14/+20
| | | | | - add call to thread_user_enter for P_SA processes before trap processing ala all other arches
* In the spirit of amd64/include/stdarg.h rev 1.6; add __va_copyobrien2004-07-061-0/+3
| | | | | | | | | | (but keep it conditional on __ISO_C_VISIBLE >= 1999. Why? Our out /usr/src/contrib assumes it, and more than a few ports have an autoconf that looks for __va_copy because it is available on glibc. It is critical that we use it on PowerPC. It generally isn't a problem for i386 and its ilk because those platforms can get away with cheating the C standard, using a plain assignment.
* Add 32-bit framebuffer support. Tested on PearPC at lo-res, too painfulgrehan2004-07-062-29/+130
| | | | to watch at hi-res.
* Correct pmap_extract()'s return type. It should be vm_paddr_t, notalc2004-07-053-3/+3
| | | | vm_offset_t.
* Implement preemption of kernel threads natively in the scheduler ratherjhb2004-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | than as one-off hacks in various other parts of the kernel: - Add a function maybe_preempt() that is called from sched_add() to determine if a thread about to be added to a run queue should be preempted to directly. If it is not safe to preempt or if the new thread does not have a high enough priority, then the function returns false and sched_add() adds the thread to the run queue. If the thread should be preempted to but the current thread is in a nested critical section, then the flag TDF_OWEPREEMPT is set and the thread is added to the run queue. Otherwise, mi_switch() is called immediately and the thread is never added to the run queue since it is switch to directly. When exiting an outermost critical section, if TDF_OWEPREEMPT is set, then clear it and call mi_switch() to perform the deferred preemption. - Remove explicit preemption from ithread_schedule() as calling setrunqueue() now does all the correct work. This also removes the do_switch argument from ithread_schedule(). - Do not use the manual preemption code in mtx_unlock if the architecture supports native preemption. - Don't call mi_switch() in a loop during shutdown to give ithreads a chance to run if the architecture supports native preemption since the ithreads will just preempt DELAY(). - Don't call mi_switch() from the page zeroing idle thread for architectures that support native preemption as it is unnecessary. - Native preemption is enabled on the same archs that supported ithread preemption, namely alpha, i386, and amd64. This change should largely be a NOP for the default case as committed except that we will do fewer context switches in a few cases and will avoid the run queues completely when preempting. Approved by: scottl (with his re@ hat)
* Modify loop test when cycling through phys_avail array. It's possiblegrehan2004-07-013-6/+12
| | | | | for an OpenFirmware implementation to have a single memory region (hello PearPC).
* Catch up with __RMAN_RESOURCE_VISIBLE changegrehan2004-07-018-0/+25
|
* Move soft structs back to C files to avoid exposing rman fieldsgrehan2004-07-012-18/+1
| | | | to clients now that it's protected with __RMAN_RESOURCE_VISIBLE
* Catchup to now-required <sys/module.h> for PowerPCgrehan2004-06-2511-0/+11
|
* Do the dreaded s/dev_t/struct cdev */phk2004-06-161-1/+1
| | | | Bump __FreeBSD_version accordingly.
* Remove checks for curthread == NULL - it can't happen.tjr2004-06-032-10/+6
|
* Move TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoidtjr2004-06-032-18/+8
| | | | | | | having to acquire sched_lock when manipulating it in lockmgr(), uiomove(), and uiomove_fromphys(). Reviewed by: jhb
* Retire cpu_sched_exit(); it is not used any more.tmm2004-05-262-12/+0
|
* Moved most of the "MI" definitions and declarations from <machine/profile.h>bde2004-05-191-11/+0
| | | | | | to <sys/gmon.h>. Cleaned them up a little by not attempting to ifdef for incomplete and out of date support for GUPROF in userland, as in the sparc64 version.
* trap_pfault() shouldn't be acquiring Giant. Found to blow upgrehan2004-05-192-4/+0
| | | | | | with MUTEX_PROFILING. Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
* <stdint.h> should define WINT_M{AX,IN} independent from whether WCHAR_MIN isstefanf2004-05-181-1/+1
| | | | | | | | defined. Otherwise first including <wchar.h> and then <stdint.h> leads to no WINT_M{AX,IN} at all. PR: 64956 Approved by: das (mentor)
* Make a small revision to the api between the elf linker core and thepeter2004-05-161-8/+10
| | | | | | elf_reloc() backends for two reasons. First, to support the possibility of there being two elf linkers in the kernel (eg: amd64), and second, to pass the relocbase explicitly (for relocating .o format kld files).
* Add option GEOM_GPT. This brings the ability to have a large number ofmarcel2004-05-021-0/+1
| | | | partitions on a single disk.
* Spell Ethernet correctly.obrien2004-05-021-4/+4
|
* Hide FLT_EVAL_METHOD and DECIMAL_DIG in pre-C99 compilationdas2004-04-251-0/+4
| | | | | | | environments. PR: 63935 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* - Catch up with recent ATA changes.grehan2004-04-232-6/+9
| | | | - Remove trailing space in ata_macio.c
* Include <machine/pte.h> since it has been removed from <machine/param.h>.grehan2004-04-211-0/+1
|
* <machine/pte.h> has no business being here. Finally exposed by F77 buildgrehan2004-04-211-2/+0
| | | | failure.
* MFamd64alc2004-04-183-156/+28
| | | | | Simplify the sf_buf implementation. In short, make it a veneer over the direct virtual-to-physical mapping.
* Remove avail_end. It is not used.alc2004-04-114-22/+3
|
* Remove advertising clause from University of California Regent'simp2004-04-0712-48/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Remove avail_start on those platforms that no longer use it. (Only amd64alc2004-04-054-13/+6
| | | | does anything with it beyond simple initialization.)
* Remove unused arguments from pmap_init().alc2004-04-053-3/+3
|
* In some cases, sf_buf_alloc() should sleep with pri PCATCH; in others, italc2004-04-032-4/+4
| | | | | | | should not. Add a new parameter so that the caller can specify which is the case. Reported by: dillon
* Match the specific MPC106 host bridge PCI ID rather than allgrehan2004-04-011-6/+3
| | | | | generic host bridges: this avoids a race with the UniNorth generic match.
* The end argument to bus_alloc_resource() should have been ~0 andgrehan2004-03-311-2/+1
| | | | | | | not ~1, but the call has been switched over to bus_alloc_resource_any() which has the same effect. Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
* Replace td2 with td on the assumption that this was a typo. This should atbenno2004-03-302-2/+2
| | | | | | | least unbreak the build. Pointy hat to: peter Not tested either by: benno
* Finish tidying up a couple of leftovers from the KSTACK_PAGES stuff. Somepeter2004-03-292-10/+6
| | | | files still #included the opt_ file. powerpc hadn't been updated yet.
OpenPOWER on IntegriCloud