summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
AgeCommit message (Collapse)Author
2015-01-13for the install: target, use cmp as a rough attempt for avoiding repeatedTheo de Raadt
make install from Simon Nicolussi ok jsing tedu
2015-01-11switch prototype warnings to implicit-declaration warnings.Ted Unangst
This should catch all the same bad cases, but be a little less aggravating in circumstances where a prototype isn't necessary ok deraadt
2014-12-31Correct evcount_attach argument on cbus(4).Kenji Aoyama
The third argument of evcount_attach() should point some permanent variable, not an automatic variable. Now "vmstat -i" correctly prints C-bus interrupt level number as irq, on C-bus devices. ok miod@
2014-12-28Add an audio driver, necsb(4), for NEC PC-9801-86 sound board onKenji Aoyama
cbus(4). This work is based on the source code of NetBSD/pc98, an unofficial NetBSD port for NEC PC-9801 series, written about 16 years ago. Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO Tadaaki and N. Honda who wrote the original driver. ok miod@
2014-12-23We do not need to grab the kernel lock for clock interrupts on luna88k,Kenji Aoyama
as same as aviion. suggested and ok miod@
2014-12-22unifdef INETTed Unangst
2014-12-19Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gatherKenji Aoyama
'C-bus' device drivers in it. More devices on cbus(4) will be added, hopefully :-) ok miod@
2014-12-10retire shutdown hooks; ok deraadt, krwMike Belopuhov
2014-12-08Add an intermediate layer driver, cbus(4), to manage its ownKenji Aoyama
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on LUNA-88K2. Existing pcex(4) is now attached at cbus(4), i.e. cbus0 at mainbus0 pcex0 at cbus0 With this driver, some other PC-9801 boards might be supported on luna88k in the (near?) future:-) ok miod@
2014-11-21We can map 'fuse ROM' area with read only.Kenji Aoyama
2014-11-20Fix comment.Kenji Aoyama
2014-11-18(except for the arm architectures...) unify the way the ld.script isTheo de Raadt
used and depended, mimicking new changes by guenther to amd64.
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-11-08Delete commented out 'romtty' device configuration.Kenji Aoyama
This had been used in the early years of poring OpenBSD to LUNA-88K, but no longer used.
2014-10-10Significant unification of RAMDISK* config files, making them diffable.Theo de Raadt
This makes it easier to remove components not required to do an install, and subsequently add other desireable components ... In snapshots (in various forks) for about a week. Do some upgrades and installs, please.
2014-10-09mechanical translation of dev_lkm_dummy() to dev_notdef()Ted Unangst
2014-10-09remove LKM devicesTed Unangst
2014-10-05Skip unnecessary processing in interrupt handler.Kenji Aoyama
2 spc(4/luna88k)'s share the same level 3 interrupt on LUNA-88K2. So returns earlier when the device is not the source of interrupt. NetBSD has the same code. http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/mb89352.c#rev1.34 "it is the right thing to do" miod@
2014-10-05Use CPU_IS_PRIMARY macro. No functional change.Kenji Aoyama
2014-10-04Switch the kernel configs over to using -Wframe-larger-than= instead ofBrad Smith
-Wstack-larger-than-. This is what modern GCC supports as well as LLVM. ok miod@
2014-10-04Skip 'hardware lied' interrupts, as same as CMU Mach do.Kenji Aoyama
Also add more comments on *int_mask_reg[CPU], delete possibly unnecessary flush_pipeline(). Additional suggestion and ok miod@
2014-10-03Delete long-time unused #if 0 part.Kenji Aoyama
2014-10-01More optimization on LUNA frame buffer.Kenji Aoyama
This is straightforward port of Izumi Tsutsui's work on NetBSD/luna68k: http://mail-index.netbsd.org/source-changes/2014/09/28/msg058972.html >> Put dumb optimizations to avoid conditionals in putchar drawing loops. This makes 4bpp wscons putchar ~8% faster on luna88k. ok miod@
2014-09-29Use raster(logic) operation, or ROP, function on LUNA frame buffer.Kenji Aoyama
It makes 4bpp wscons putchar ~20% faster. ok @miod
2014-09-27Move clock_reg[] definition.Kenji Aoyama
clock_reg[] is only used in clock.c, so move its definition from machdep.c to clock.c. ok miod@
2014-09-27Change spaces to tab. No binary change.Kenji Aoyama
2014-09-20Use config_suspend_all(9).Mark Kettenis
ok mpi@, uebayasi@, dlg@
2014-08-21Kill the remaining <netinet/in_systm.h> inclusion!Martin Pieuchot
2014-07-22Use MI rasops_cmap, instead of MD-defined ANSI colormap.Kenji Aoyama
Note about workaround for 8bpp frame buffer: Current LUNA wscons touches only first 4 planes (plane #0-#3), but other program (e.g. mlterm-fb) can use all 8 planes on an 8bpp frame buffer. When such program exits, it may not clear all planes, so there may be some visible garbage data on the other 4 planes (plane #4-#7) when we use default 256 rasops_cmap directly. We should manage all 8 planes on LUNA, but that will be too much overhead for 16 colors wscons. So, by repeating 16 colors in 256 colormap, we can ignore the values on the other 4 planes. ok miod@
2014-07-21boot(9): Reduce annoying style diffsMasao Uebayashi
- Always use either: ((x & RB_XXX) != 0) or ((x & RB_XXX) == 0) in boolean context (mostly if (x), or x ? y : z) - prom_halt() in alpha is confirmed to take int as boolean Converted by coccinelle. No functional change intended.
2014-07-13boot(9): Cosmetic changes to improve diff'ability.Masao Uebayashi
2014-07-13Cosmetic changes to reduce diffs.Masao Uebayashi
2014-07-13Stop using old n_long and n_short types.Martin Pieuchot
2014-07-12revert a few stragglers hiding outTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-10Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-07-10boot(9): More comment removal about cold/savectx() missed in previousMasao Uebayashi
2014-07-10boot(9): Remove comments about RB_*, "cold", and savectx()Masao Uebayashi
Again remove slightly different comments to reduce diffs. These will be re-added once boot() become MI and its specification is clearly re-defined. OK miod@
2014-07-10boot(): Remove comments about RB_TIMEBAD to reduce diffsMasao Uebayashi
RB_TIMEBAD is documented well enough that the comment is not needed. sparc64 does slightly different and its comment is left with XXX. OK deraadt@ miod@
2014-07-10boot(): Unify declarationsMasao Uebayashi
OK deraadt@
2014-07-01Replace the assembly 88100 FPU imprecise exception code (mostly triggered byMiod Vallat
denormal results) with C code using softfloat to correctly round the inexact results in the best possible way according to the current rounding mode. No functional change intended, and this assembly code was surprisingly almost non-buggy, as opposed to the precise exception code replaced a few weeks ago; still an improvement as this replaces 900 lines of arcane assembly with 90 lines of understandable C code.
2014-06-18Update comment; there seems to be no PC-9801 extension board slot onKenji Aoyama
'original' LUNA-88K.
2014-06-09Replace the unmaintainable assembler code responsible for 88100 precise FPUMiod Vallat
fault handling with a C wrapper around the softfloat code, as already done for 88110 kernels. As a bonus, attempting to read or write FPU control registers but fcr62 and fcr63 in userland will now correctly signal an illegal instruction, instead of leaving the destination register unchanged and pretending nothing bad happened. Be sure to rm m88100_fp.d in your kernel compile directory after updating your tree.
2014-06-07Modify to ANSI-style function declarations. No binary change.Kenji Aoyama
2014-06-03Fix sentinel style.Kenji Aoyama
ok miod@
2014-06-03Better comment for `faulty address'.Kenji Aoyama
2014-05-31Revert previous diff setting cold to 1 on shutdown because it breaks machineMartin Pieuchot
with softraid(4) disks. softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter does not allow to sleep.
2014-05-30Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-05-17Change the return value of interrupt handler to 0 when nothing isKenji Aoyama
processed on this driver. "This is correct" miod@
2014-05-08Format string fixes for m88k; remove -Wno-format from the m88k kernels.Miod Vallat