summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
AgeCommit message (Collapse)Author
2015-09-30Use consistant whitespace/comments for #define'ing LABELSECTOR,Kenneth R Westerback
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
2015-09-28Mechanical changes from manual buf set up to readdisksector().Kenneth R Westerback
ok deraadt@
2015-07-17remove obsolete INET kernel optionTed Unangst
2015-06-25Reimplement the audio driver in a simpler way, removing unused/unusableAlexandre Ratchov
functionality. Same API and ABI except for the removed bits and no behaviour change for programs using libsndio. With help from armani@ and mpi@, thanks.
2015-05-18Move the logic deciding whether to grab the kernel lock or not, deeper in theMiod Vallat
interrupt logic, making sure the lock is not taken for clock interrupts. Tested on aviion and luna88k.
2015-05-11Remove all audio format conversion code from the kernel (btw holdingAlexandre Ratchov
the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
2015-03-13Correct debug messages.Kenji Aoyama
2015-03-13Set bus_space 'stride' for 2 and 4 bytes read/write.Kenji Aoyama
This makes wi(4) on PCMCIA work on luna88k. ok miod@
2015-03-04Add commented-out PCMCIA support configuration to GENERIC.Kenji Aoyama
2015-03-03Add pcic(4) support on luna88k.Kenji Aoyama
This is basically glue codes attaching pcic(4) at cbus(4/luna88k), based on src/sys/dev/isa/i82365_isa{,subr}.c. Tested on some ne(4) network interface cards, wdc(4) with a CF memory card, and com(4) with an old XJACK modem card. Currently wi(4) does not work yet. suggestions and ok miod@
2015-02-25Rework secondary processor initialization, in order to allocate their idleMiod Vallat
stack from the main processor, instead of from the secondary processors themselves. This used to work until recent churn in uvm require the kernel lock to be taken, and cpu_configure() runs with the kernel lock held by the boot processor. Allocating the idle stack on the secondary processors themselves was choosen early on, because there is no easy way, from the boot processor, to know the assocation between physical cpu number (ci_cpuid) and logical cpu number (the order they are initialized and reported in), especially on luna88k where there is no way to get secondary processors parked by the prom. Regression noticed by aoyama@. Verified to work on 2 and 4 cpu luna88k systems and 2 cpu aviion systems.
2015-02-18Some modifications on cbus(4):Kenji Aoyama
- Handle interrupt priority level (IPL_XXX) in cbus_isrdispatch(). - Add a function that returns the status of registered cbus(4) interrupt levels. suggestions and ok miod@
2015-02-14Add simple bus_space_{map,unmap,subregion} implementation on luna88k.Kenji Aoyama
These are preliminaries for upcoming pcic(4) support on cbus(4/luna88k). suggestions and ok miod@
2015-02-10Convert to uiomove().Miod Vallat
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2015-01-18Add commented-out necsb(4) and audio(4) configuration to GENERIC.Kenji Aoyama
2015-01-17Delete an extra tab.Kenji Aoyama
2015-01-16disklabel_sun_to_bsd() will nicely set the disk size if it is zero, but it isMiod Vallat
usually invoked after initdisklabel() which proactively changes a zero disk size to MAXDISKSIZE, causing this test to fail. Allow for MAXDISKSIZE too in that test. This makes spoofed disklabels of SMD disks have a proper `c' slice size. luna88k disklabel_om_to_bsd() is modified accordingly, to keep diffability, even though luna88k can't - to the best of my knowledge - sport SMD disk controllers. ok deraadt@ krw@
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