Commit Graph

208 Commits

Author SHA1 Message Date
matt
50192497ae Add CPPFLAGS+= -mno-thumb -mno-thumb-interwork 2013-08-15 21:41:08 +00:00
matt
6dfcb7e808 Add -fno-unwind-tables 2013-08-12 22:50:51 +00:00
he
626b3edbd1 Bump the INSTALL ramdisk by 100k so that the contents fits again.
Approved by nonaka@
2013-06-28 19:24:28 +00:00
matt
c16586211c Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
2013-05-07 20:42:45 +00:00
matt
5695f408d6 use KLINK_MACHINE 2013-05-02 04:22:44 +00:00
matt
5f058922b3 This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
2013-05-02 03:56:38 +00:00
matt
b9022c47e4 Force abi/float-abi/cpu
Only allow to build on little-endian.
Force MACHINE to be zaurus.
2013-05-01 22:16:15 +00:00
christos
1cc8b68d4b the bogus number police 2013-04-27 21:43:10 +00:00
nonaka
8a6a7696a3 Apply patch from steleto, arranged by me.
- Avoid chattering for SL-C7x0/860
- Add more stuck keys.
2013-03-30 08:35:06 +00:00
matt
92b7334f0f Don't install fp.h anymore 2013-01-11 14:09:54 +00:00
matt
bcca54655d Remove FPA specific header. 2013-01-11 14:03:03 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
apb
4ebc1e1ca3 Add "no options COMPAT_60" to all kernel configuration files
that already had "no options COMPAT_50".
2012-10-17 14:48:41 +00:00
apb
f3929b106b Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
2012-10-17 14:48:07 +00:00
matt
ee6cde04ff Don't use an asm in pmap_activate to update the TTBR, use cpu_setttb instead
but add a second argument to it to indicate whether the TLB/caches need to be
flushed.  Default cortex to pmap_needs_fixup = 1.  But check the MMFR3 field
to see if the fixed can be skipped.
Use a cf_flag bit 0 to indicate whether the A9 L2 cache should disable (bit 0 = 1)
or enabeld (bit = 0).

With these changes, the A9 MMU can use traverse caches to do MMU tablewalks
Also, make sure all memory has the shareable bit for the A9.
2012-09-22 00:33:36 +00:00
abs
3267a6b9fe Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
  and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

Some of the INSTALL configs for larger memory machines are probably suitable
for adding WSDISPLAY_COMPAT_USL.

Now wsconscfg(8) should be able to switch VTs when expected.

Implemented after no objection from tech-kern to the following:

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
2012-08-17 20:11:37 +00:00
abs
715998cc28 Ensure all WSDISPLAY_COMPAT_USL entries have same comment 2012-08-17 19:43:24 +00:00
matt
83d36728df Move the standard definitions of the {UND,IRQ,FIQ,ABT}_STACK_SIZE to
<arm32/machdep.h>
Move the extern for cpu_reset_address to the same file.
Add cpu_reset_address_paddr.
Kill cpu_reset_v4_MMU_disable.
if cpu_reset_address is NULL, then the MMU will be disabled.
2012-08-16 18:22:37 +00:00
nonaka
8bc226e0ad To reset the watchdog timer in SL-C7x0/SL-C860. 2012-08-12 17:25:32 +00:00
nonaka
f1810fa28a fix RCSID. 2012-08-12 08:59:58 +00:00
mlelstv
8ce4433821 Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.
2012-07-29 18:05:39 +00:00
matt
a039bd91a6 Fix more -fno-common fallout.
Move more variables to common locations.
2012-07-29 00:07:06 +00:00
mlelstv
6e129cea4e Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for zaurus.
2012-06-13 20:04:30 +00:00
skrll
6062ea05a5 Remove unused __NEWINTR defines 2012-06-10 13:15:24 +00:00
abs
8f45a59205 Adjust the WSDISPLAY_COMPAT_USL comment to mention wsconscfg, to at least
give a hint that its not just for third party compat. No functional change.
2012-06-05 08:44:07 +00:00
tsutsui
e197458932 Fix wrong raw keycode in xt_keymap_c860[] so that right shift properly works
on Xserver on C7x0/860.  From steleto.

Should be pulled up to netbsd-6.
2012-05-07 18:36:16 +00:00
nonaka
8be304c413 bump up ramdisk size. 2012-04-07 09:10:47 +00:00
nonaka
691792f1b4 bump up SYMTAB_SPACE. 2012-04-07 09:09:43 +00:00
joerg
99c3eea80c P1003_1B_SEMAPHORE is no longer optional. 2012-03-10 21:51:48 +00:00
christos
21afea55c1 expose more for kmemuser 2012-02-18 16:23:13 +00:00
tsutsui
ddafd3b8c8 More SL-C7x0/860 support for Xorg server usage:
- pull touchpanel adjustment ioctls to w100lcd.c for SL-C7x0/860
  from zlcd.c for SL-C1000/3x00
- add sample xorg.conf for C7x0/860 (which have hardware screen rotation)
- rename old xorg.conf.sample for C1000/C3x00 to xorg.conf.C3x00
- adjust md set list

Ok releng@ nonaka@
2012-02-10 11:25:42 +00:00
tsutsui
18b9ea2097 Add INSTALL kernel config for SL-C700. 2012-02-02 15:57:39 +00:00
tsutsui
8fb06de510 Try to shrink INSTALL kernel a bit.
Loading INSTALL kernel on SL-C1000 running Zaurus Linux still sometimes
fails (due to its size), but at least it works on maintenance kernel.
2012-02-02 15:55:55 +00:00
tsutsui
533071c4dd Add PXA25x based Zaurus SL-C700/750/760/860 support.
All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
2012-01-29 10:12:41 +00:00
tsutsui
b41763f442 Update comments for recent lcdctl changes. 2012-01-27 15:07:41 +00:00
tsutsui
63752ed247 Allow calling scoop_set_backlight() even before scoop is attached and
schedule initial values in that case as ioexp does. Suggested by nonaka@.
Now lcdctl no longer has to defer lcdctl_set_brightness() by
config_finalize_register(9), which is a bit too late.
(i.e. no backlight during USB/SD probe by config_interrupt(9) in previous)
2012-01-27 14:48:22 +00:00
tsutsui
5ecce0f8ee - TAB/space cleanup
- add a comment
2012-01-25 17:18:47 +00:00
tsutsui
6145ba81f6 Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
 - split LCD backlight controls from zlcd(4) into new lcdctl device
   to share it among forthcoming SL-C7x0 variants
2012-01-25 16:51:17 +00:00
tsutsui
fd148500e6 Defer device initializations which implicitly depend on scoop or ioexp
via config_finalize_register(9).
2012-01-25 15:58:10 +00:00
nonaka
2388feef61 fix my license notice. 2012-01-21 19:44:28 +00:00
nonaka
7e1e52be21 fix my license notice. 2012-01-21 18:56:51 +00:00
nonaka
9587ee6530 Kernel load address can be changed now. 2012-01-20 15:00:27 +00:00
nonaka
bf2f9846a3 Support to read the kernel from local file system.
ex. boot path:/mnt/card/netbsd
2012-01-18 23:12:21 +00:00
nonaka
2396084197 fix struct kloader_bootinfo address. 2012-01-17 15:48:33 +00:00
tsutsui
c2e8ce644b Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

 - add 'ls' op to struct fs_ops to support ls command on each fs,
   enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
   in libsa
 - split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
   that opens the target fs and calls fs-depedent XXX_ls() functions
 - add a ls op for ext2fs
   (all other fs than ufs and ext2fs don't have actual ls ops yet)
 - replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
      replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
2011-12-25 06:09:08 +00:00
dholland
7bbf82b772 WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
2011-12-18 05:49:22 +00:00
nonaka
7172feb3ab more clean D-cache. 2011-12-16 14:17:41 +00:00
nonaka
0af6eab9df - WARNS=4
- object size is more smaller.
2011-12-11 14:05:39 +00:00
jmcneill
8a962f23f2 Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
tls
8a012bd83f The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself.  Move it to std.  This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports.  Thanks to Havard Eidnes for
pointing them out.
2011-11-22 21:25:05 +00:00