summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/alpha
AgeCommit message (Collapse)Author
2006-12-24Define PROC_PC. Then, since profiling information is being reported inMiod Vallat
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-11-29Kernel stack can be swapped. This means that stuff that's on the stackMiod Vallat
should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
2006-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
confusing when trying to attach scsibus to a hba, since it is really meant for attaching scsi devices to scsibus. ok deraadt@ marco@
2006-10-28We don't currently write a disklabel into an OpenBSD ('A6') DOS MBRKenneth R Westerback
extended partition except on alpha, hppa, hppa64 and mips64. So don't spoof extended partitions as 'a' and try to read a disklabel from them. Make all archs consistant. When we can boot from extended partitions we can change to reading and writing disklabels from them. This means the first OpenBSD ('A6') extended partition will now be ignored during spoofing, just as subsequent ones have always been. Feedback from tom@, weingart@ and deraadt@.
2006-10-21Don't try to spoof 0 length DOS MBR/EBR partitions. By skippingKenneth R Westerback
partitions with 0 in the length field we don't need to test for and skip partitions that are all zeros. Eliminating that code allows elimination of a local pointer. "0 length partitions are definately dead" deraadt@
2006-10-21Some KNF cleanup.Kenneth R Westerback
De-register. Move declaration to top of function for DOS MBR processing. Indent nit in macppc. No functional change.
2006-10-21We have a pointer (pp), so use it in the DOSPTYP_UNUSED case ratherKenneth R Westerback
than lp->d_partitions[8+n++]. All other cases already use the pointer. No functional change.
2006-10-20Try again with local variable to avoid alignment issues.Kenneth R Westerback
"The dosparts member of cpu_disklabel was not used for any persistant data. Eliminate it, and just use the data being read in while processing MBR and EBR records. Should be no functional change. ok weingart@ deraadt@"
2006-10-18back out disksubr changes ... since they violate strict alignment onTheo de Raadt
some architectures (kaboom); that will be fixed in the next iteration hopefully!
2006-10-17The dosparts member of cpu_disklabel was not used for any persistantKenneth R Westerback
data. Eliminate it, and just use the data being read in while processing MBR and EBR records. Should be no functional change. ok weingart@ deraadt@
2006-10-10Don't spoof a Free/NetBSD MBR partition as the 'a' partition in aKenneth R Westerback
disklabel. Fixes 'double spoofing' of these partitions as both 'a' and something in the 'i' to 'p' range. OpenBSD changed its MBR partition type to 'A6' eight years ago. As a backward compatibility measure NetBSD and FreeBSD MBR partitions were still spoofed as 'a' partitions when no OpenBSD partition could be found. This bit of backward compatibility is no longer required. 'we can get rid of it' deraadt@
2006-10-04unused variableTheo de Raadt
2006-10-04More tidying up after bad144. Remove references in comments andKenneth R Westerback
don't include dkbad.h when nothing in it is used. Missed arm/include/disklabel.h first time around.
2006-10-04Zap bad144 bad sector info in disklabels. Sparsely used if at all forKenneth R Westerback
a few obsolete and easily replaced disk models. And didn't work anyway according to Bob, who has tried. ok beck@
2006-09-16Revert new check for DOS partitions running past d_secperunit (e.g.Kenneth R Westerback
r1.54 of i386/disksubr.c). The check incorrectly handled extended partitions. Possibly a symptom of a deeper problem with extended partition offsets that will be addressed post-4.0. Problem reported/fix tested by A. Velichinsky, cause diagnosed by otto@. ok pedro@ mickey@ miod@ deraadt@
2006-08-20When spoofing an MSDOS disklabel, don't create partitions with a finalKenneth R Westerback
block past d_secperunit. Fixes devices where bogus partitions with a starting offset > d_secperunit were created. e.g. floppies formatted by Caldera DR-DOS. ok pedro@
2006-08-17fix tyop.Michael Knudsen
2006-08-17tsk tsk, krw did not test compile thisTheo de Raadt
2006-08-17Check d_secpercyl in all readdisklable() functions, and have all ofKenneth R Westerback
them return 'invalid geometry' when d_secpercyl == 0. While there move the check to a consistant location (after the check of d_secperunit) and use a consistant idiom (i.e. some readdisklabel()'s have no 'done' label). prodded by thib@ after a bad macppc experience. ok deraadt@
2006-08-13Fix EV6 processor minor type: 0 is reserved and thus all entries wereMichael Knudsen
off by one. Also add a bunch of minor types for EV6 and tables for PCA57 and EV67. The present tables should now be complete as per Alpha Architecture Reference Manual v4. ok miod
2006-08-11Use d_secperunit rather than 0x1fffffff as the default value forKenneth R Westerback
RAW_PART's p_size. Since d_secperunit is initialized to 0x1fffffff if not specified there should be no need to use the magic number again. And if d_secperunit was specified then that value should be used instead of the magic number. This was already being done for hp300, luna88k, mac68k, mvme68k, mvme88k. Should be a no-op.
2006-07-16On LX164 systems (and maybe others), isa video boards are reported byMiod Vallat
the SRM as pci boards with invalid bus and slot number, so check for this to decide which vga attachment to use. Found the hard way by robert@
2006-07-12do not include uvm_extern.h twiceMartin Reindl
2006-07-11Remove DISKLABEL_ALL, DISKLABEL_ALPHA, leave DISKLABEL_I386 inKenneth R Westerback
GENERIC. Remove now superfluous check for DISKLABEL_ALL. 'whack whack whack!' deraadt@
2006-07-09Remove DLT_* logic from Alpha as well, being careful to keep theKenneth R Westerback
checksumming of the native disklabel. No functional change.
2006-07-03Eliminate most of the #if/#endif maze in alpha, hppa, hppa64, and mips64Kenneth R Westerback
disklabel code that was intended to support cross-endian and cross-architecture use of disklabels. Never actually used except for Alpha<->Amiga moves that now can't happen anyway. Leave native and DOS MBR disklabel code. Tested on alpha and hppa. No functional change.
2006-07-01Eliminate redundant get_le() in favour of letoh32(). Add letoh32()Kenneth R Westerback
calls in alpha, hppa, hppa64 and mips63 when accessing the two DOS MBR u_int32_t fields dp_size and dp_start. No functional change.
2006-06-20fix memory reporting on alphas with 2GB or more; ok miodTheo de Raadt
2006-06-19Reset pcb_onfault around uvm_fault() calls.Miod Vallat
2006-06-15Rework the interrupt code, shaving some cycles off in the process.Brad Smith
Rather than an "iointr" routine that decomposes a vector into an IRQ, we maintain a vector table directly, hooking up each "iointr" routine at the correct vector. This also allows us to hook device interrupts up to specific vectors. From thorpej NetBSD Tested by myself and a number of end-users.
2006-06-11Amiga is no longer amoung us. Some architectures were too sentimentalKenneth R Westerback
to cut all ties when it left for the attic. Eliminate (theoretical) ability to read Amiga disklabels on those architectures. mips64 compile tested by miod@ "whack away" deraadt@ "my amiga runs 3.2" niklas@
2006-06-07One last occurence of an inline sigexit() in sendsig.Miod Vallat
2006-05-25gas will error out with a number of "Error: unassigned file number 1"Brad Smith
messages when compiling with gcc3, so to appease gas I have added ".file 1 __FILE__" at the top of locore. now a kernel will compile using gcc3. thanks to jason@ for pointing out the fix via this URL.. http://sourceware.org/ml/binutils/2001-05/msg00043.html ok deraadt@
2006-04-13Use PAGE_SIZE rather than NBPG.Brad Smith
From NetBSD ok martin@ miod@
2006-04-13Don't use NBPG.Brad Smith
From NetBSD ok martin@ miod@
2006-03-19Do not compile misaligned access recovery code if option SMALL_KERNEL;Miod Vallat
ok deraadt@
2006-03-18Switch to a rpcc-based delay() implementation. From NetBSD.Miod Vallat
2006-03-15use sysctl_int_lower() for the aperture variable. This lets root closeTheo de Raadt
the aperture without having to reboot, but does not allow re-opening; ok matthieu
2006-03-15Nuke dk_establish(), no longer used.Miod Vallat
2006-03-04Typos grab bag of the month, eyeballed by jmc@Miod Vallat
2006-02-26Provide a buffer large enough for its contents in pal_opname(). ok deraadt@Miod Vallat
2006-02-25ok, the miod thing can go back in, tree buildsTheo de Raadt
2006-02-24NO_IEEE ifndef is still needed for RAMDISKBIG at leastTheo de Raadt
2006-02-23Better dependency rules in files.alpha, also point to cpuconf.c in theMiod Vallat
source tree instead of copying it to the kernel compilation directory for no good reason.
2006-02-23Only compile badaddr() if we have support for TurboChannel, apecs, cia or lca,Miod Vallat
as they are the only users of badaddr(); shrinks RAMDISKB a little more.
2006-02-07convert pmap_phys_address() to a define, consistent with other archs;Martin Reindl
avoids losing information due to int in proto ... thanks to KUDO Takashi for tracking this down ok miod@
2006-01-26Fix character range check in local atoi() function. krw@ "looks correct"Aaron Campbell
2006-01-17Do not invoke resettodr() on shutdown if we have been sitting in ddb.Miod Vallat
2005-12-27Remove unused sw_nblks field of struct swdevt. Then, remove swapconf()Miod Vallat
which duplicates work done by uvm_swap_init().