Commit Graph

1585 Commits

Author SHA1 Message Date
joerg
8bdfce0a67 machine/stdarg.h and machine/varargs.h are gone 2011-07-21 11:02:48 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
joerg
c2ae6ee303 Sort 2011-07-11 18:33:48 +00:00
mrg
88ff257770 don't assign sc->sc_partinfo.size to itself. 2011-07-09 15:04:35 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
rmind
e225b7bd09 Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
2011-06-12 03:35:36 +00:00
tsutsui
f893ffa835 Set WARNS in common Makefile.inc. 2011-05-19 21:40:11 +00:00
tsutsui
a0e931c0ee WARNSfy.
XXX: rtcalarm/rtcalarm.c refers obsolete /dev/pow0
2011-05-19 21:26:38 +00:00
christos
a216f4df59 fix header includes 2011-05-19 03:22:27 +00:00
tsutsui
34637b8687 - merge and move pasted m68k MD setreg() functions into m68k/m68k_machdep.c
- move m68881_save() and m68881_restore() declarations into <m68k/m68k.h>

Briefly tested and no obvious breakage on atari, sun3, and x68k.
2011-05-16 13:22:51 +00:00
tsutsui
06131af6d1 Misc KNF and cosmetics. 2011-05-15 17:27:49 +00:00
tsutsui
5ecb087061 Use pmap_kenter_pa(9) for msgbuf memory which is not managed by VM. 2011-05-14 10:57:50 +00:00
tsutsui
015835c167 It's a bit horrible to call uvm_page_physload() from consinit().
Instead, prepare x68k_init() function for pre-main MD initialization as other
m68k ports and move uvm_page_physload() call and msgbuf initialization there.

Tested on X68030, but options EXTENDED_MEMORY is untested.
2011-05-14 10:49:06 +00:00
tsutsui
4b539d371e IODEVbase is the same address as intiobase, so make it an alias macro
and remove now almost empty x68k_init.c.
2011-05-14 10:19:58 +00:00
tsutsui
2ec6f05a03 Make intiobase and intiolimit unsigned for consistency. 2011-05-12 15:07:42 +00:00
tsutsui
2e447a4be0 Defer fpu_probe() call until curlwp and related variables are initialized.
Fixes pre-consinit KASSERT() in trap() caused by fnop instruction in
fpu_probe() on machines without FPU, including XM6i.
2011-05-11 14:17:29 +00:00
tsutsui
a595e9f720 Add a comment for the previous change. 2011-05-05 13:44:35 +00:00
tsutsui
d797bedab3 Fix buffer overrun in readdisklabel(9) (and writedisklabel(9))
that causes unexpected panic during installation and
DIAGNOSTIC pool assertions.
Also fix bp->b_flags in writedisklabel(9) error path.

The problem was reported from Y.Sugahara during XM6i development,
and this fix is confirmed on both X68030 (by me) and XM6i (by Sugahara).

XXX: broken dkbad support (which makes struct cpu_disklabel larger
XXX: than 512 bytes) should be removed...
2011-05-05 04:38:20 +00:00
tsutsui
08bc844a54 Don't call mfp_init() in mfp_attach().
It's already called from early mfp_config_console() via config_console()
and reinitializing MFP could sometimes cause silent hang.
2011-05-04 12:27:03 +00:00
tsutsui
17739fce78 WARNSfy to avoid further botch. 2011-05-04 11:44:25 +00:00
tsutsui
cc81f439dd Reset ZS chip properly in zscninit() so that zscngetc() works
even before zsc is attached during configure.
(i.e. make userconf(4) work on serial console)
2011-05-01 16:19:13 +00:00
isaki
4dafb5924e Add a missing printf argument.. 2011-04-29 06:00:33 +00:00
isaki
db48d12970 - use getprogname() instead of argv[0]
- remove an extra decl. of optind
2011-04-29 05:59:53 +00:00
isaki
e958dce7e5 Fix indent and style. 2011-04-29 05:43:51 +00:00
rmind
2626d57668 Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.
2011-04-24 16:26:51 +00:00
he
d5ffa53ef0 Convert to using -nostdinc, and set include paths and create symlinks
so that we include the source tree's sys/, machine/ and m68k/ headers,
and only as a last resort use DESTDIR's /usr/include.  For some reason
the host's bootinfo.h got included ahead of the x68k variant, causing
a build failure in my case.
2011-04-13 11:10:49 +00:00
tsutsui
f84f67c9f4 Make x68k bootloader to use MI libsa, libkern, and libz Makefiles in
src/sys/lib dirs for maintainability.  Tested on X68030, ok from isaki@.
2011-04-12 14:07:35 +00:00
tsutsui
7c1e72a72b Use bsd.klinks.mk to create machine and ${MACHINE_ARCH} symlinks. 2011-04-11 15:20:30 +00:00
tsutsui
aedf074cc2 Some KNF. No binary change. 2011-04-11 14:00:02 +00:00
tsutsui
972813450e Bump version to denote serial console fix. 2011-04-11 13:49:41 +00:00
tsutsui
b9b2defb4b Add missing breaks. No need to output to SERIAL on ITE console. 2011-04-11 13:48:32 +00:00
tsutsui
bbc0dfc7e6 Fix pasto. Now serial console output on bootloader works properly
after ~decade.  ok from minoura@
2011-04-11 13:47:16 +00:00
tsutsui
ef54da0a01 Fix hangup on the first floppy access since 2008.
Problem was reported by isaki@.

On X680x0 (and most other machines other than ISA FDC),
the ready line from FDD is connected to FDC and fdc driver can
be notified of the ready state after fd_set_motor() by interrupts.
In this case no need to use callout(9) to wait the FDD motor stabilized,
and the callout(9) method used in ISA fdc(4) driver rather caused
infinite unhandled interrupts since callout(9) was no longer invoked
during interrupt storm after vmlocking2 merge, I guess.

Should be pulled up to netbsd-5.
2011-04-10 15:23:06 +00:00
isaki
6291bfee46 Poll the next medium on both drive of #0 and #1. 2011-04-07 13:38:21 +00:00
tsutsui
122f3545c1 Fix typo in comment. 2011-03-24 15:05:55 +00:00
tsutsui
8d0ce703c9 - make X68K_BUS_PERFORMANCE_HACK part default
- use volatile rather than dummy __asm() statements to avoid optimization

Tested on X68030.
2011-03-24 14:58:33 +00:00
tsutsui
31a177fdc6 umass doesn't take channel. 2011-03-17 13:26:51 +00:00
tsutsui
3e2ac64ecd Include files.ata for atapibus at umass. 2011-03-17 13:25:54 +00:00
bouyer
063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
joerg
48717cfc00 Refactor ps_strings access. Based on PK_32, write either the normal
version or the 32bit compat layout in execve1. Introduce a new function
copyin_psstrings for reading it back from userland and converting it to
the native layout. Refactor procfs to share most of the code with the
kern.proc_args sysctl handler.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
2011-03-04 22:25:24 +00:00
itohy
ed461fc193 Cleanup my copyright notice. 2011-02-21 02:31:57 +00:00
rmind
9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
joerg
3c550524b5 Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
2011-01-22 19:19:14 +00:00
joerg
19b23810a0 Switch remaining platforms to modern CPP for assembler. 2011-01-21 15:59:04 +00:00
tsutsui
247eefa18e Explicitly include <machine/pcb.h> for struct pcb. 2011-01-17 14:53:42 +00:00
rmind
7146b2f61d Retire struct user, remove sys/user.h inclusions. Note sys/user.h header
as obsolete.  Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.
2011-01-14 02:06:22 +00:00
tsutsui
ee16ecf67d Add (commented out) options MODULAR. Confirmed working on XM6i. 2011-01-03 06:15:16 +00:00
tsutsui
7790fd94ea Enable options DDB. Ok from isaki@ 2011-01-03 03:43:22 +00:00
tsutsui
6542895ee1 Tidy up common comments. (Yes, too many dup code...) 2011-01-02 18:48:04 +00:00
tsutsui
600906f486 Misc cosmetics to reduce diffs among these ports. 2011-01-02 07:03:46 +00:00