Commit Graph

58474 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
jakllsch
99a7467c78 Drop duplicate and unused extern global variable. 2014-01-05 21:09:33 +00:00
jakllsch
7cf250db21 No need to return a empty string literal of the wrong const-ness when we
already have a empty string of the correct const-ness.
2014-01-05 20:52:57 +00:00
jakllsch
327f70c7e1 don't shadow local variable 2014-01-05 20:49:20 +00:00
tsutsui
e986b0d242 Detect boot device on PROM load command and set proper default boot device.
Also remove now unnecessary the old netboot check.

Note all addresses of boot device info set by monitor are checked by
memory dump on several LUNA ROM versions, and these addres might be
different on earlier monitor ROM versions.

Bump version to denote the visible change.
2014-01-05 06:56:22 +00:00
tsutsui
3d1c6ce533 Move physmem calculations before nptpage initialization.
Should fix next68k specific part of PR port-m68k/45915
(panic: pmap_enter_ptpage: can't get KPT page), and
this is the last possible m68k MD part of this PR.

Note this change is not tested on the actual machine (yet),
but as noted in comment next68k/pmap_bootstrap.c is based on
the mvme68k one which has been fixed by the similar diff.

Should be pulled up to all netbsd-6 branches.
2014-01-05 06:30:48 +00:00
msaitoh
5f07a8b14e Add Energy Performance Bias bit. 2014-01-04 21:09:39 +00:00
christos
87d348b35e undo the ld script hack now that the default scripts have been modified to
do this.
2014-01-04 20:19:33 +00:00
christos
ea7d4d717c undo the linker script hack now that the linker scripts do this. 2014-01-04 20:18:50 +00:00
msaitoh
3468c7c6bf Remove duplicated entry. Modify comments a bit. 2014-01-04 19:08:43 +00:00
nonaka
61a537b3d6 fix CS bit. 2014-01-04 13:24:35 +00:00
isaki
9050bf24ca FLOGNP1(-0.0) is -0.0, not +0.0. Found by XM6i. 2014-01-04 13:23:22 +00:00
msaitoh
3c10ad5307 Add Z68 LPC. 2014-01-04 02:59:17 +00:00
joerg
c8f443fa9a Add missing volatile for hidden side effects of asm. 2014-01-04 02:58:38 +00:00
msaitoh
4c6bef9716 Temporary disable C2000 PCU because the behavior of the wdog is little strange. 2014-01-04 02:09:12 +00:00
joerg
9c1bcb1543 Explicitly force a CPU for the assembler for the compatibility
cpu_func_* files. LLVM complains about the use of deprecated
instructions when -march=armv7 or equivalent is in use.
2014-01-04 01:33:11 +00:00
dsl
95739e63cd Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.
2014-01-04 00:10:02 +00:00
msaitoh
f8748bc5e6 Add C2000 Platform Controller Unit(PCU). 2014-01-03 23:18:48 +00:00
christos
eb3888d4e4 Add a load script that puts text.unlikely after text so that the start
address stays where we are. This is copied from m68kelfnbsd.xbn
2014-01-03 21:21:17 +00:00
dsl
7c4ad3905a Remove the borked definition of ELF64_Shalf from some more places.
Remove the _KERNEL parts of some clones of sys/elf_exec.h
One might ask why this file has got cloned so many times.
2014-01-03 16:50:54 +00:00
dsl
fb6fad97a4 Remove the _KERNEL part of these two clones of sys/exec_elf.h
Remove the incorrect (and completely unused everywhere) Elf64_Shalf.
Put a better include guard on arch/epoc32/stand/e32boot/include/elf.h
Should be ok because I can't find any references to KERNEL in these
  source trees.
2014-01-03 16:40:58 +00:00
kiyohara
cdafadd48d Change wildcard for mvgbe configuration. Don't attach, if clock was disabled. 2014-01-03 14:40:54 +00:00
rkujawa
6145659025 Fix undefined reference to amiga_bus_stride_0x1000. 2014-01-03 10:30:47 +00:00
tsutsui
d28b149862 Pull more cleanups from OpenBSD/luna88k:
- remove unused declarations
- rename struct scsi_fmt_cdb to scsi_generic_cdb
2014-01-03 07:17:19 +00:00
mlelstv
aafa26eec9 Fix allocator routines. Instead of abusing CIRCLEQ pointers, add an explicit
type field to tag memory nodes that are or are not on the free list.
2014-01-03 07:14:20 +00:00
tsutsui
795bcb0d40 Pull more fixes from OpenBSD/luna88k:
- Bring getline() - a.k.a libsa gets() with a prompt prefix - in par with libsa
  gets(), featurewise; this means support for ^u to clear the input.
- constify
2014-01-03 06:37:13 +00:00
tsutsui
86c3ed96a4 Pull more fixes from OpenBSD/luna88k:
- accept empty controller and partition numbers, as well as empty filenames,
  and use defaults (0, 0 and "netbsd") instead of complaining the boot path
  is invalid
- move a macro where actually necessary

Also bump version to denote the user visible change.
2014-01-03 06:15:10 +00:00
tsutsui
4929bf22e1 Disable unnecessary boot device check. From OpenBSD/luna88k. 2014-01-03 03:44:41 +00:00
tsutsui
7f7c7f9b34 Misc cleanup from OpenBSD/luna88k.
- remove unused code
- use proper prefix for structure members for readability
2014-01-03 03:25:25 +00:00
tsutsui
681c174ae4 Remove unused code (from OpenBSD/luna88k). Some KNF. 2014-01-03 02:03:12 +00:00
rkujawa
d8300310a1 Rework handling of Commodore Gayle chip. Avoid ugly struct casts, introduce
proper bus_space accesses and some abstraction layer. All drivers that utilised
Gayle also had to be refactored.

I tried not to break anything more, but this clearly needs more testing...
2014-01-03 00:33:06 +00:00
tsutsui
d0e171ad99 Misc cleanup. Mostly from OpenBSD/luna88k.
- fix isprint() macro
- hight -> height
- remove an unused function
- adjust tabs/spaces
- constify the bitmap font
- consistently use #define<space>
- use #if 0/#endif to disable code block
- u_long -> uint32_t, u_short -> uint16_t
- some KNF
2014-01-02 20:02:00 +00:00
tsutsui
67183ad6ce Replace broken (by SCCS) ISO-2022-JP comments with UTF-8.
Recovered and decoded by isaki@.
2014-01-02 19:50:03 +00:00
joerg
9b97293f31 Fix const use. 2014-01-02 19:00:39 +00:00
tsutsui
4efa8769d7 Add bound check of a controller number in scrun().
Noticed by miod@openbsd.
2014-01-02 18:45:24 +00:00