summaryrefslogtreecommitdiff
path: root/sys/arch/prep
AgeCommit message (Collapse)Author
2004-01-06Make these compile again after the latest adjustments.he
2004-01-05Use memset() for "Clear all of BSS".nonaka
If (edata-address & 3) != (end-address & 3), my own code cause infinity loop. Fixed it.
2004-01-05reduce program size.nonaka
2004-01-05Use 32bit daddr_t.nonaka
2004-01-03More wdc_channel structure member namespace cleanup:thorpej
- channel -> ch_channel - wdc -> ch_wdc
2004-01-03Rename "struct channel_softc" to "struct wdc_channel".thorpej
2004-01-01Rename:thorpej
- wdc_xfer to ata_xfer - channel_queue to ata_queue and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA controllers. Clean up the member names of these structures while at it.
2003-12-31Simplify allocation of the channel queue.thorpej
2003-12-30Fix PowerPC ports build with KGDB.manu
2003-12-12Add a .WAIT after common so libs get built before they're neededjmc
2003-12-10Change reference at bottom from sys/dev/majors to sys/conf/majors to matchjmc
reality
2003-12-04netbsd.org -> NetBSD.orgkeihan
All "netbsd.org" is now gone from src/sys/arch.
2003-12-04Catch up with the recent changes in wdcvar.h, patterned after wdc_isa.c.he
2003-11-27sync with news68k:tsutsui
> Make sure machine and ${MACHINE_ARCH} symlinks created before make depend.
2003-11-24Remove obsolete MD mcclock files.tsutsui
2003-11-24Set mcclock to BCD mode as before. Tested on 7248-133 43P.tsutsui
2003-11-13eliminate uvm_useracc() in favor of checking the return value ofchs
copyin() or copyout(). uvm_useracc() tells us whether the mapping permissions allow access to the desired part of an address space, and many callers assume that this is the same as knowing whether an attempt to access that part of the address space will succeed. however, access to user space can fail for reasons other than insufficient permission, most notably that paging in any non-resident data can fail due to i/o errors. most of the callers of uvm_useracc() make the above incorrect assumption. the rest are all misguided optimizations, which optimize for the case where an operation will fail. we'd rather optimize for operations succeeding, in which case we should just attempt the access and handle failures due to insufficient permissions the same way we handle i/o errors. since there appear to be no good uses of uvm_useracc(), we'll just remove it.
2003-11-01- Adapt mkclock_isa.c to MI mk48txx(4) changes.tsutsui
- Switch mcclock_isa.c to use MI mc146818 driver. - Use todr(9) interface with both todclock drivers.
2003-10-27Overhaul how `build.sh tools' are used:lukem
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h * Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more. These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
2003-10-26Use ${HOST_SH} instead of `sh'.lukem
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH; Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-24add major for 'ses' for archs which have the other scsi devicesjdolecek
2003-10-24Add back spkr.hmatt
2003-10-20Reorganize the way powerpc port install machine specific headers.matt
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and <powerpc/bat.h>. Remove unneeded <machine/cpufunc.h>. To insure 1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include "../../powerpc/include/Makefile" in "arch/FOO/include/Makefile". Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-19Add COMPAT_16.kleink
2003-10-19Make this compile as a tool; we need to pick up the target'she
sys/bootblock.h header in that case.
2003-10-18Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'lukem
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-10reassing majors for crypto and pf to use the newly defined MI majorjdolecek
range
2003-10-10update the comment - the space for machine-dependant majorsjdolecek
is reduced to 0-143 follows discussion on tech-kern
2003-10-08Add atabus.bouyer
2003-10-08Overhaul MBR handling (part 1):lukem
<sys/bootblock.h>: * Added definitions for the Master Boot Record (MBR) used by a variety of systems (primarily i386), including the format of the BIOS Parameter Block (BPB). This information was cribbed from a variety of sources including <sys/disklabel_mbr.h> which this is a superset of. As part of this, some data structure elements and #defines were renamed to be more "namespace friendly" and consistent with other bootblocks and MBR documentation. Update all uses of the old names to the new names. <sys/disklabel_mbr.h>: * Deprecated in favor of <sys/bootblock.h> (the latter is more "host tool" friendly). amd64 & i386: * Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to be consistent with the naming convention of the msdosfs tools. * Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1 and it's confusing to have two functionally equivalent bootblocks, especially given that "ufs" has multiple meanings (it could be a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems). * Rework pbr.S (the first sector of bootxx_*): + Ensure that BPB (bytes 11..89) and the partition table (bytes 446..509) do not contain code. + Add support for booting from FAT partitions if BOOT_FROM_FAT is defined. (Only set for bootxx_msdos). + Remove "dummy" partition 3; if people want to installboot(8) these to the start of the disk they can use fdisk(8) to create a real MBR partition table... + Compile with TERSE_ERROR so it fits because of the above. Whilst this is less user friendly, I feel it's important to have a valid partition table and BPB in the MBR/PBR. * Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent with other platforms. * Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that we can boot off FAT partitions. * Crank version of /usr/mdec/boot to 3.1, and fix some of the other entries in the version file. installboot(8) (i386): * Read the existing MBR of the filesystem and retain the BIOS Parameter Block (BPB) in bytes 11..89 and the MBR partition table in bytes 446..509. (Previously installboot(8) would trash those two sections of the MBR.) mbrlabel(8): * Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code to map the MBR partition type to the NetBSD disklabel type. Test built "make release" for i386, and new bootblocks verified to work (even off FAT!).
2003-10-08Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to linksimonb
against them.
2003-10-06Include <string.h> for memset and memcmp prototypes.he
2003-10-06Include libkern.h to get definitions for strcpy, strlen, and memset.he
2003-10-06Remove argument list from #undef of divrnd macro; fall-out from gcc3?he
2003-10-05Add some framework for MI assignment of device majors - add sys/dev/majorsjdolecek
which is automatically included during kernel config, and add comments to individual machine-dependant majors.* files to assign new MI majors in MI file. Range 0-191 is reserved for machine-specific assignments, range 192+ are MI assignments. Follows recent discussion on tech-kern@
2003-09-30Add -ffreestandingmatt
2003-09-25Hide the use of config_interrupts() in one place.mycroft
2003-09-191) Use config_interrupts() to attach IDE and ATAPI drives. This eliminatesmycroft
most polling. 2) Clean up some goofiness in pciide -- get rid of the whole "candisable" path (it's gratuitous) and simplify the code by calling pciide_map_compat_intr(), *_set_modes() and wdc_print_modes() from central locations. 3) Add a register writability and register ghost test to eliminate phantom drives more quickly.
2003-09-03Move CLKF_BASEPRI to machine specific <intr.h> file since it depends onmatt
the encoding of the spl for the port.
2003-08-22add udav*itojun
2003-08-22create /dev/cryptoitojun
2003-08-12Remove SPILLSTK leftovers.matt
2003-08-10Call prep_bus_space_init() and consinit() after oea_batinit() and oea_init()tsutsui
because powerpc/bus_space.c:bus_space_init() checks BAT maps. (from mvmeppc)
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-06Add esiop at pci to GENERIC which already have siop at pci.bouyer
esiop has been tested enouth now. esiop not added to INSTALL kernels because of possible space constraint. siop should be able to drive all adapters supported by esiop.
2003-07-31Add #define _NOREGNAMES (to suppress asm.h from #define r1 1 ...)matt
2003-07-28Make these build with recent tweaks to powerpc's bus_space(9) by movingscw
the inclusion of <powerpc/bus.h> to *after* the definitions of PHYS_TO_BUS_MEM() and BUS_MEM_TO_PHYS().
2003-07-27reserve cdev major # for PF. ok'ed by technical-execitojun
2003-07-27Since everyone uses clock_subr.c (or should, if they don't currently),thorpej
list it in conf/files instead of in every port's files.*.
2003-07-15__KERNEL_RCSID()lukem