summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2006-09-26Zap D_REMOVABLE flag from disklabel. If you didn't already know thatKenneth R Westerback
floppies and cd's were removable, displaying that fact in disklabel output was unlikely to help. And the display in disklabel was the only use of D_REMOVABLE in the tree. ok marco@
2006-09-24Eliminate D_CHAIN, D_ECC and D_RAMDISK flags from disklabel. They wereKenneth R Westerback
not being used in the tree for anything obviously useful. Get it done early so we can find if there are non-obvious uses out there. ok deraadt@ beck@
2006-09-17No need to check for both cd_devs != NULL && cd_ndevs != 0, since the latterMiod Vallat
implies the former; no functional change.
2006-09-17Time to leave the bus.Miod Vallat
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-17(128 << fd->sc_type->secsize) instead of (128 * (1 << fd->sc_type->secsize)).Kenneth R Westerback
Makes all FD_BSIZE() defines the same. No object code change.
2006-08-14Fix 640x480 mode operation (needs a font change, and stride is larger thanMiod Vallat
width in this mode).
2006-08-14Now that DEV_BSIZE is universally defined as 1 << DEV_BSHIFT, use it toKenneth R Westerback
set d_secsize instead of 1 << DEV_BSHIFT. Just for textual consistency in setting d_secsize. No functional change.
2006-08-12Make all DEV_BSIZE definitions consistant by using (1 << DEV_BSHIFT)Kenneth R Westerback
in the six cases using "512". As DEV_BSHIFT is always 9, this should be a no-op. "no objections" miod@ "I can't see any problem doing this." pedro@
2006-08-12Setting d_secsize to DEV_BSIZE (or 1 << DEV_BSHIFT, or 512) and thenKenneth R Westerback
setting RAW_PART's p_size to d_secperunit * (d_secsize / DEV_BSIZE) is a waste of a few ops. And p_size should be in sectors anyway. Just set RAW_PART's p_size to d_secperunit to make usage consistant across the tree. Should be a no-op.
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-08-11An old dvorak typo was lurking here.Miod Vallat
2006-08-01make this more like a real cylon mode (no pauses at the end!)Theo de Raadt
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-25Do not bother reading the existing colormap on attach, since we willMiod Vallat
override it with the rasops one.
2006-07-24move large local array out of a "called once, only at boot" functionTheo de Raadt
into being a global, to reduce stack size; ok miod
2006-07-20fix various ways of spelling 'access' wrong in commentsMartin Reindl
2006-07-01Provide our own alloc_attr() routine for sun frame buffer, since the computationMiod Vallat
of highlighted color indexes is slightly different due to different black and white color code (and the fact that the default white is the highlighted white).
2006-06-30For 32bit sun frame buffers, tweak ri_devcmap to get the BoW palette insteadMiod Vallat
of needing different WSCOL_{BLACK,WHITE} values than 8bit frame buffers. This allows us to not special case the alloc_attr() invocations depending on the color depth, and to make WSCOL_{BLACK,WHITE} constants again in the wsemul_sun land.
2006-06-29No need to keep specific variables for the kernel messages colors on sunMiod Vallat
emulation, we can reuse the existing WSCOL_xxx codes, and WSCOL_BLACK and WSCOL_WHITE will point to variables anyway.
2006-06-29If invoking mapdev() with a non-aligned pa, make sure we allocate enough pagesMiod Vallat
if we cross a page boundary; really only necessary for some sun4 tricky attachments, no functional change.
2006-06-29Map the correct size for the colormap registers (not that it really mattersMiod Vallat
since this is rounded up one page).
2006-06-26atop(PAGE_SIZE) -> 1, 'tis true but it gets computed faster when PAGE_SIZEMiod Vallat
is not a constant.
2006-06-26Enable wide targets on FAS366 esp; note that this changes the way espMiod Vallat
user-controllable device flags are parsed, be sure to rerun config(8) on your next kernel compile.
2006-06-26Use MI clock conversion code for "old" clock.Mark Kettenis
ok miod@
2006-06-25fix a typo in a comment and add the comment to the sparc hme driver.Brad Smith
2006-06-23Use MI clock conversion code for "new" clock.Mark Kettenis
ok deraadt@, miod@
2006-06-19move clock_subr.c to a better place, and now it is always in the kernelTheo de Raadt
so that things can use it; tested on all architectures; ok kettenis
2006-06-09{x,}ldcontrolb() codepath is SUN4-only, so don't bother checking for LfsbailMiod Vallat
in mem_access_fault4m.
2006-06-02sbus_establish() and the associated linked list in the sbus softc is now onlyMiod Vallat
used to store a per-device reset callback, for use in sbusreset(). Except sbusreset() has never, ever, been used since Torek's sbus code went in. Time to recycle those wasted bits.
2006-06-02When trying to find leaf lebuffer devices, to work around broken old PROMs,Miod Vallat
walk the lebuffer_cd device list, instead of the sbus children list.
2006-06-01Right at the end of a debug kernel build, the current Makefile copies bsdChristopher Pascoe
(with symbols) to bsd.gdb, then strips bsd. This diff makes it rename the file with symbols, and then asks strip to output the stripped version as bsd. Avoids a potentially lengthy wait when we would otherwise copy the large (50MB+) kernel with debug symbols. ok reyk@ ketennis@
2006-05-29Convert NetBSD new-style %b strings to old-style.Miod Vallat
2006-05-27unknown ioctl is ENOTTY not EINVALJason Wright
2006-05-14Make the array of fpu exception types/codes big enough.Mark Kettenis
Fix a typo too, such that we actually read beyond element 0 in all cases. ok miod@
2006-05-07Long due update from a.out to ELF (slightly different) relocation defines,Miod Vallat
from sparc64 with love. Spotted by drahn@
2006-04-29fix build after timestamping addition; sparc pointed out by pvalchev@Christian Weisgerber
2006-04-272 lines of code in most drivers, to do the timestamping; ok miod kettenisTheo de Raadt
2006-04-16Remove can't happen DIAGNOSTIC check.Miod Vallat
2006-04-16Convert the last remaining net-driver users of ether_input to ether_input_mbuf.Christopher Pascoe
sgec ok martin@ if_ie ok miod@ if_de, if_hp not in GENERIC ok brad@
2006-04-09#ifdef lint wraps for va_startTheo de Raadt
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-23Extra parentheses in comments.Ray Lai
From Alexey Dobriyan. OK miod@ and otto@
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
2006-03-15Nuke dk_establish(), no longer used.Miod Vallat
2006-03-15Switch sparc to device_register() to find out its boot device (when it's aMiod Vallat
disk).
2006-03-15Entries in cd_devs[] may be NULL, so be sure to check for them in yourMiod Vallat
device open() function.
2006-03-12Previous fix was half-done, move the wsscreen_list array into the softcMiod Vallat
as well.
2006-03-12When attaching a wsdisplay, the wsscreen_list structure can not be on theMiod Vallat
stack; found the hard way by Stefano <stefano@merlinobbs.net>.
2006-03-12remove splimp.Brad Smith