summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
AgeCommit message (Collapse)Author
2006-11-16Ratibibugle struct frame and <machine/frame.h>Miod Vallat
2006-10-29Remove redundant if (msg) {} block around invocations ofKenneth R Westerback
iso_disklabelspoof() and udf_disklabelspoof(). Use (msg && iso_disklabelspoof()) instead. Makes more arch's textually consistant. No functional change.
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-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-03Don't load bad144 bad sector information into disklabels for archs thatKenneth R Westerback
don't have wd* in GENERIC, since wd* is the only place such info is being used. First step of eliminating bad144 bad sector info from all disklabels. 'go go go' deraadt@
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-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-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-27Compile all kernels with -Wstack-usage-larger-than-2047, now that allMiod Vallat
offending code has been taken out and shot. ok deraadt@
2006-07-17Cope with clock_subr.c changes.Miod Vallat
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-26Clean up some inconsistancies in definitions around DOS MBR code. NoKenneth R Westerback
functional change. ok deraadt@
2006-06-19Since a part of the nvram may be write-protected on some machines, checkMiod Vallat
the nvram writes and return EROFS if one or more bytes were found to be immutable.
2006-05-21Fix AV_IEN() computation for cpu #2 and #3.Miod Vallat
2006-05-21Move common definitions shared by the various 88100-based designs to theirMiod Vallat
own header file, and slowly make most of the code board-independent. No functional change.
2006-05-20Let the bootloader pass esym to the kernel, and let the kernel make good useMiod Vallat
of this if it finds out it has not been directly loaded by the PROM; not tested yet.
2006-05-20Lower load address 128KB, to cope with the PROM data area on 8MB machines.Miod Vallat
2006-05-20Hints and commented out lines about future work.Miod Vallat
2006-05-20This file was not supposed to be imported initially, but it might as wellMiod Vallat
be a GENERIC-without-other-models support template (hence, for now, identical).
2006-05-20Introduce a ``struct board'' platform abstraction, to be able to supportMiod Vallat
more AViiON designs in the future. Heuristics to tell designs apart in aviion_identify() are likely too weak, but this is a start and AV400 still gets identified as AV400 (-:
2006-05-20Try and use the CPUCONFIG PROM call even if we did not detect 88204 CMMUs,Miod Vallat
recent PROM might have it implemented, and for 6:1 processor boards on 530 models, this is the only way we'll get to know the split scheme in use, for now.
2006-05-20Save the PROM VBR on startup, rather than assuming the PROM (and thus itsMiod Vallat
VBR) will always reside at the same address. Also, when querying the PROM for the memory size, ask it for the ``user'' size - i.e. with the PROM data area taken out.
2006-05-16Recognize braindead 6:1 CMMU to CPU ratio configurations (which we do notMiod Vallat
support yet), as found e.g. on some 530 models.
2006-05-16Print a final line before asking the PROM to halt or reboot, for theMiod Vallat
abruptness of its prompt almost looks like the kernel died horribly.
2006-05-16Network bootloader for AV400 series, will load a native kernel. Still someMiod Vallat
rough edges to sort out, but enough to successfully boot a kernel. Will not work on series 530 yet.
2006-05-14Deal with arbitrary load addresses. Necessary for upcoming netboot code.Miod Vallat
2006-05-11Fix stupid bugs in mapping and unmapping of VME regions.Miod Vallat
2006-05-09can enter stand SUBDIRTheo de Raadt
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-09Oops, correct import this time.Miod Vallat
2006-05-08Oops, correct import this time.Miod Vallat
2006-05-08Oops, correct import this time.Miod Vallat
2006-05-08Oops, correct import this time.Miod Vallat