Commit Graph

121079 Commits

Author SHA1 Message Date
tsutsui
544accc1f7 Remove tab nits. 2014-01-11 16:34:05 +00:00
christos
b4a250d75c Reorder code to avoid use-after-free on error. From Maxime Villard 2014-01-11 16:31:20 +00:00
tsutsui
0dfe4134ab Misc KNF and cosmetics. 2014-01-11 15:51:02 +00:00
tsutsui
b7bcae5276 ctually remove all references to obsolete stinger.h. 2014-01-11 14:35:15 +00:00
tsutsui
9cef42a9d3 Remove unused KernInter stuff. 2014-01-11 14:09:13 +00:00
nakayama
a420884c46 Uncomment ifdef/endif and tabify. 2014-01-11 12:20:07 +00:00
tsutsui
dba3cf8531 Bump version to denote support to pass boothowto and bootdev to kernel. 2014-01-11 08:20:51 +00:00
tsutsui
1b293e5d49 Add support to pass boothowto and bootdev info from bootloader to kernel.
Bootloader side changes:
- make boot command parse boothowto flags (-ads etc.)
- pass boothowto and bootdev info to the kernel via %d7 and %d6
  as the old 4.4BSD/luna68k kernel expected
- remove unused and now unnecessary "howto" (how_to_boot) command
- export and tweak make_device() in devopen.c to prepare bootdev info
- remove unused and commented out get_boot_device()
2014-01-11 08:08:23 +00:00
tsutsui
1a578d633f Add support to pass boothowto and bootdev info from bootloader to kernel.
Kernel side changes:
- use %d7 (boothowto) and %d6 (bootdev) to pass info and also use
  old macro in <sys/reboot.h> as ancient 4.4BSD did for simplicity
- add <machine/bootinfo.h> to define values as API to pass these info
- save boothowto and bootdev in registers right after zero'ing bss
- add MD device_register(9) to check booted_device per passed bootdev info
- merge old bootarg checks in rootconf() and luna68k_init() with
  tweaks for backward compatibility
  (direct boot a.out kernel from ROM monitor without bootloader still works)
2014-01-11 08:07:16 +00:00
tsutsui
f080c57575 Use the same address as LUNA to probe LANCE on LUNA-II.
It looks the device is mapped at both regions.
4.4BSD/luna68k probes it at 0xf1000000, but UniOS-Mach for LUNA-II
attaches the lance at 0xf0000000.  It is probably because
the UniOS needs to map DS1220 NVRAM (mapped at 0xf1000004 and
used to store the MAC address) to the different kernel page,
but there is no reason for us to use different addresses.
(Note our bootloader already use the same address for both machines.)

This change will make (forthcoming) booted device check easier.
2014-01-11 01:43:22 +00:00
matt
964e3f260f byte swap the insn on BE8 it's LE in memory but needs to be BE to decode. 2014-01-10 23:52:53 +00:00
njoly
5298a5a891 Regen. 2014-01-10 20:10:43 +00:00
njoly
cc84e6774d Add NetBSD futimes/lutimes syscalls which does not exists on Linux. 2014-01-10 20:10:23 +00:00
njoly
c21d61a30f Regen. 2014-01-10 19:45:43 +00:00
njoly
a022633d69 Do not redefine linux syscalls arguments, just use compat ones
instead.
Include linux_socketcall.h to bring missing socket syscall
arguments/prototypes on arches that have socketcall(2).
Finally, cleanup rump linux syscall wrapper, to remove linux syscall
argument/prototype local copy.
2014-01-10 19:44:47 +00:00
matt
dd17f39af9 Make sure to start BE-8 programs with the PSR[E] set. 2014-01-10 18:03:26 +00:00
matt
5f4d36326b Flush out the PSR definitions. 2014-01-10 17:48:11 +00:00
jakllsch
f5ce59053c fix style and whitespace nits 2014-01-10 17:40:51 +00:00
pedro
3089b1af6a Fix a comment describing the check performed by copyin(); the value
checked against VM_MAXUSER_ADDRESS is derived from the source address,
not the destination address. OK rmind@.
2014-01-10 16:47:07 +00:00
pedro
65d0f0003c Prevent a diagnostic assertion in tmpfs_rmdir() from being triggered
through an rmdir on ".." by moving it so it happens after the check for
empty directories; OK rmind@.
2014-01-10 16:42:38 +00:00
christos
21d590390b make it clean after itself, use standard rules files 2014-01-10 16:41:16 +00:00
christos
c664e0f599 include bsd.own.mk 2014-01-10 16:36:29 +00:00
christos
760092e27b don't include bsd.sys.mk 2014-01-10 16:35:11 +00:00
christos
2296f9ab5c we never include bsd.sys.mk directly. 2014-01-10 15:54:59 +00:00
martin
6f65a8d103 ACTIVE_CC can only be used after include of bsd.own.mk 2014-01-10 15:00:16 +00:00
tsutsui
25e766da30 Reorgenize boot device configuration. The idea is taken from OpenBSD/luna88k.
- remove kernel-like autoconfiguration to probe bootable devices
- initialize SCSI and Ethernet controllers statically instead
- reorganize device softc structures per autoconf removal
- probe and print all SCSI disks (but don't assign unit numbers)
- make sdopen() to recheck the device and allocate softc dynamically
- use controller number and SCSI target ID (ctlr * 10 + id) to specify
  the boot disk on the "boot" command arg
- bump version to denote changes

Now bootloader works as the following:
---
>> NetBSD/luna68k boot, Revision 1.8 (Wed Jan  8 22:13:12 JST 2014)
>> (based on Stinger ver 0.0 [Phase-31])

Machine model   = LUNA-II
Physical Memory = 0x4000000  (64 MB)

sc0 at 0xe1000000: async, parity, ID 7
 ID 3: TEAC FC-1     HGF  10 rev , 512 bytes/sect x 2879 sectors
 ID 6: IBM DPES-31080 rev S31Q, 512 bytes/sect x 2118143 sectors
sc1 at 0xe1000040: async, parity, ID 7
 ID 6: MELCO DSC-G rev 1.00, 512 bytes/sect x 62533295 sectors
le0: Am7990 LANCE Ethernet, mem at 0x71010000
le0: Ethernet address = 00:00:0a:03:42:77

Press return to boot now, any other key for boot menu
booting sd(16,0)netbsd - starting in 0 seconds.
auto-boot sd(16,0)netbsd
1911696+96040 [280480+159179]=0x255a30
 :
2014-01-10 11:12:03 +00:00
msaitoh
5010e7e4fc Sync with pcidev's change. Rename PCI_PRODUCT_MARVELL2_88SE9128 to
PCI_PRODUCT_MARVELL2_88SE912Z. No functional change.
2014-01-10 01:43:52 +00:00
msaitoh
9fecef6533 regen. 2014-01-10 01:42:20 +00:00
msaitoh
4165b90127 Rework for Marvell 88SE9128. Change the description of 0x9123 to
88SE912[38]. For 0x91a3, add '(unclear)' into the description.
FreeBSD, Linux and http://pci-ids.ucw.cz have no such device.
2014-01-10 01:39:48 +00:00
christos
9682229fe5 regen 2014-01-09 22:37:44 +00:00
christos
07a9cab707 revert unintended changes 2014-01-09 22:37:18 +00:00
htodd
886ddaff87 Fix build. Only compile tested. 2014-01-09 21:14:53 +00:00
palle
f08e82f640 sun4v: Update description of the ci_mmfsa field in the cpu_info structure 2014-01-09 20:28:23 +00:00
palle
5317e12d65 Coding style fixes (whitespace) - no functional changes 2014-01-09 20:13:54 +00:00
msaitoh
9a75aee207 regen. 2014-01-09 17:28:30 +00:00
msaitoh
b22423017d Remove 88SE9128(0x913a) entry. At least one of 88SE9128 chip's
product ID is 0x9123. I have this one. Add new 88SE912X entry
with 0x9123. OK'ed by jakllsch.
2014-01-09 17:28:05 +00:00
mlelstv
8aa54a5db6 add three temperature sensors from ST. 2014-01-09 16:51:05 +00:00
hannken
9cd2f4b930 Operation sysvbfs_remove() destructs inodes attached to active vnodes.
Defer the destruction to sysvbfs_reclaim().

Disable test t_renamerace:sysvbfs_renamerace as it will exhaust the
inode table (sysvbfs has space for 8 inodes only).

Ok: Izumi Tsutsui <tsutsui@netbsd.org>
2014-01-09 13:23:57 +00:00
macallan
96f3c05159 allow non-SUN4V kernels to build 2014-01-09 12:51:27 +00:00
dholland
586505dce8 Make the amd64 post-halt-press-a-key code match i386, and introduce
into both a message for the case where cngetc() doesn't work. If
there's no console attached, this won't accomplish anything; but if
there's a screen but no keyboard, or the keyboard's wedged, or
whatever, it might provide useful information.

Suggested back in 2009 by some stuff in PR 37924 and has been hanging
about in one of my trees ever since.
2014-01-09 00:57:25 +00:00
jakllsch
7f23e64fd1 Fix whitespace issues. 2014-01-08 16:49:48 +00:00
jakllsch
8b3ffd0418 Add unused tps65217pmic_reg_write() function. 2014-01-08 16:45:14 +00:00
pedro
0cc071bd88 Allocate direntp on the stack in tmpfs_dir_getdents(), thus saving
calls to kmem_zalloc() and kmem_free(); OK rmind@. From OpenBSD.
2014-01-08 16:11:04 +00:00
pooka
b50bd486cc OpenBSD has kqueue 2014-01-08 11:06:33 +00:00
palle
6c190f50bb sun4v: trap table setup - currently populated with dummy entries which will be properly implemented later - parts from OpenBSD - OK martin@ 2014-01-07 20:11:35 +00:00
msaitoh
4737180880 Insert completion barrier between register write and delay().
One exception is chip reset (to avoid hangup).
2014-01-07 13:14:39 +00:00
dsl
ff2955473b Re-instate the zero length sections in elf core dumps (they probably help
describe the process memory layout).
Fudge the a.out core code to not dump the entire contents.
I'm not sue that anything can read a.out core files - more progress might
  be made on such dumps by converting the a.out file to elf!
2014-01-07 07:59:03 +00:00
jakllsch
d2ad8298ea Make libsa fsmod string pointer const. 2014-01-05 21:38:25 +00:00
jakllsch
3f412a1c4c Make name argument to module_add_common const; use this to allow the libsa
fsmod string to soon become const.
2014-01-05 21:36:50 +00:00
jakllsch
b21d55811d sprinkle const 2014-01-05 21:10:50 +00:00