]> Zhao Yanbai Git Server - minix.git/log
minix.git
12 years agoretire _CONST, _VOLATILE, _SIZET, _ARGS, _VOID
Ben Gras [Sun, 25 Mar 2012 18:38:37 +0000 (20:38 +0200)]
retire _CONST, _VOLATILE, _SIZET, _ARGS, _VOID

12 years agoretire PUBLIC, PRIVATE and FORWARD
Ben Gras [Sun, 25 Mar 2012 18:25:53 +0000 (20:25 +0200)]
retire PUBLIC, PRIVATE and FORWARD

12 years agoretire _PROTOTYPE
Ben Gras [Sat, 24 Mar 2012 15:16:34 +0000 (16:16 +0100)]
retire _PROTOTYPE

. only good for obsolete K&R support
. also remove a stray ansi.h and the proto cmd

12 years agoTest set for sys_vumap()
David van Moolenbroek [Sun, 18 Mar 2012 01:07:18 +0000 (02:07 +0100)]
Test set for sys_vumap()

Located in test/kernel. Invoke "run" to run tests.

12 years agovm: if mmap address is given, try that first
David van Moolenbroek [Sun, 22 Jan 2012 17:20:45 +0000 (18:20 +0100)]
vm: if mmap address is given, try that first

Previously, the mmap address (if given) was merely used as a lower
bound, and then possibly overriden with a hint. Now, the mapping is
first tried at the exact given address. If that fails, the start of
the mmap range is used as lower bound (which is then still overridden
by the hint for efficiency).

This allows two pages to be mapped in at predefined addresses, where
the second address is lower than the first. That was not possible.

12 years agoblocktest: updates for sys_vumap()
David van Moolenbroek [Wed, 11 Jan 2012 22:56:10 +0000 (23:56 +0100)]
blocktest: updates for sys_vumap()

12 years agoahci: use sys_vumap() instead of sys_umap()
David van Moolenbroek [Wed, 11 Jan 2012 22:54:53 +0000 (23:54 +0100)]
ahci: use sys_vumap() instead of sys_umap()

This is only an optimization for CPU performance. Callers are
currently still required to supply contiguous memory.

12 years agoAdd sys_vumap() kernel call
David van Moolenbroek [Wed, 21 Mar 2012 22:51:18 +0000 (23:51 +0100)]
Add sys_vumap() kernel call

This new call is a vectored version of sys_umap(). It supports batch
lookups, non-contiguous memory, faulting in memory, and basic access
checks.

12 years agoKernel: introduce vm_check_range
David van Moolenbroek [Sun, 8 Jan 2012 23:38:29 +0000 (00:38 +0100)]
Kernel: introduce vm_check_range

12 years agoKernel: replace vm_contiguous with vm_lookup_range
David van Moolenbroek [Wed, 21 Mar 2012 22:46:51 +0000 (23:46 +0100)]
Kernel: replace vm_contiguous with vm_lookup_range

12 years agoimport NetBSD /usr/share/misc/
Ben Gras [Fri, 16 Mar 2012 16:33:49 +0000 (17:33 +0100)]
import NetBSD /usr/share/misc/

. for /usr/share/misc/style, NetBSD coding style
. and for indent.pro (style-compatible indent(1) indenting profile)

12 years agoClean up a stale a.out-related declaration
David van Moolenbroek [Sat, 17 Mar 2012 14:31:10 +0000 (15:31 +0100)]
Clean up a stale a.out-related declaration

12 years agoRemove unsupported legacy TIOC[GS]ET[PC] ioctls
David van Moolenbroek [Sat, 17 Mar 2012 13:14:59 +0000 (14:14 +0100)]
Remove unsupported legacy TIOC[GS]ET[PC] ioctls

12 years agolibcompat_minix-centric cleanup
Ben Gras [Fri, 16 Mar 2012 15:03:49 +0000 (16:03 +0100)]
libcompat_minix-centric cleanup

remove some old minix-userland-specific stuff

. /etc/ttytab as a file, and minix-compat function (fftyslot()),
  replaced by /etc/ttys and new libc functions
. also remove minix-specific nlist(), cuserid(), fttyslot(), v8 regex
  functions and <compat/regex.h>
. and remaining minix-only utilities that use them
. also unused <compat/pwd.h> and <compat/syslog.h> and
  redundant <sys/sigcontext.h>

12 years agoBootloader reinstall mode for setup.
Evgeniy Ivanov [Tue, 14 Feb 2012 19:17:58 +0000 (23:17 +0400)]
Bootloader reinstall mode for setup.

12 years agoupdate_bootcfg improvements.
Evgeniy Ivanov [Thu, 16 Feb 2012 13:38:38 +0000 (17:38 +0400)]
update_bootcfg improvements.

- Fix a glitch (don't glob '*' in for).
- update_bootcfg should be a /bin command.
- update_bootcfg should not add menu entries for missing kernels.

12 years agoImport NetBSD cat(1)
Andy Kosela [Tue, 13 Mar 2012 00:01:42 +0000 (00:01 +0000)]
Import NetBSD cat(1)

12 years agoImport NetBSD ed(1)
Andy Kosela [Fri, 9 Mar 2012 23:17:50 +0000 (23:17 +0000)]
Import NetBSD ed(1)

12 years agoimported code harmonisation
Ben Gras [Tue, 13 Mar 2012 01:37:22 +0000 (02:37 +0100)]
imported code harmonisation

. common/include/arch/i386 is not actually an imported
  sys/arch/i386/include but leftover Minix files;
  remove and move to include/
. move include/ufs to sys/ufs, where it came from, now that
  we have a sys/ hierarchy
. move mdocml/ to external/bsd/, now we have that
. single sys/arch/i386/stand/ import for boot stuff

12 years agotools: some nbsd_ports fixes
Ben Gras [Tue, 13 Mar 2012 01:07:22 +0000 (02:07 +0100)]
tools: some nbsd_ports fixes

. figure out which dates were used for various nbsd imports
  and specify them for each one in the nbsd_ports file
. other minor fixes and improvements

12 years agosprofalyze forgets a.out and learns that ELF binaries have larger addresses
Erik van der Kouwe [Tue, 13 Mar 2012 10:22:19 +0000 (11:22 +0100)]
sprofalyze forgets a.out and learns that ELF binaries have larger addresses

12 years agolibminc-related updates
David van Moolenbroek [Thu, 8 Mar 2012 23:49:46 +0000 (00:49 +0100)]
libminc-related updates
- add files needed for acpi, ahci, fbd, vfs to libminc
- remove "-lc" from their respective makefiles
- remove setenv from libminc (requires initialization)

12 years agoTest48: resolve existing hostname with static IP address
Thomas Veerman [Fri, 9 Mar 2012 11:44:03 +0000 (11:44 +0000)]
Test48: resolve existing hostname with static IP address

12 years agotest48: disable failing resolver test
David van Moolenbroek [Fri, 9 Mar 2012 01:01:03 +0000 (02:01 +0100)]
test48: disable failing resolver test

Temporary, until a better solution comes along.
Also, .xxx is now a valid TLD!

12 years agolibddekit: resolve compiler warnings
David van Moolenbroek [Thu, 8 Mar 2012 21:15:00 +0000 (22:15 +0100)]
libddekit: resolve compiler warnings

Introduced by commit ca95f69.

12 years agopci: apply ACLs to device reservations
David van Moolenbroek [Wed, 7 Mar 2012 22:45:55 +0000 (23:45 +0100)]
pci: apply ACLs to device reservations

12 years agopci: USER_SPACE cleanup
David van Moolenbroek [Tue, 6 Mar 2012 23:55:22 +0000 (00:55 +0100)]
pci: USER_SPACE cleanup

12 years agodrivers: slightly better use of PCI constants
David van Moolenbroek [Wed, 7 Mar 2012 23:01:25 +0000 (00:01 +0100)]
drivers: slightly better use of PCI constants
- introduce PCI_BAR_{IO|MEM}_MASK
- remove redundant PCI definitions from lance
- fix vbox BAR retrieval

12 years agodrivers: remove redundant PCI ID tables
David van Moolenbroek [Tue, 6 Mar 2012 23:49:16 +0000 (00:49 +0100)]
drivers: remove redundant PCI ID tables
- remove PCI tables where system.conf suffices
- remove drivers' ability to mess up NIC order
- fix dp8390 PCI enumeration
- convert ti1225 to instance model
- add system.conf entry for ti1225

12 years agodp8390,ti1225: reenable register memory mapping
David van Moolenbroek [Wed, 7 Mar 2012 22:57:34 +0000 (23:57 +0100)]
dp8390,ti1225: reenable register memory mapping

12 years agopci: remove pci_init1 API call
David van Moolenbroek [Wed, 7 Mar 2012 00:10:04 +0000 (01:10 +0100)]
pci: remove pci_init1 API call

12 years agoswifi: modernize a bit
David van Moolenbroek [Sun, 4 Mar 2012 19:13:55 +0000 (20:13 +0100)]
swifi: modernize a bit
- ELF support
- update of one example script
- warning fixes

12 years agoKernel: do not retry message delivery upon failure
David van Moolenbroek [Sun, 4 Mar 2012 20:08:59 +0000 (21:08 +0100)]
Kernel: do not retry message delivery upon failure

12 years agodrivers: resolve compiler warnings
David van Moolenbroek [Sun, 4 Mar 2012 23:11:41 +0000 (00:11 +0100)]
drivers: resolve compiler warnings

12 years agoImport NetBSD du(1)
David van Moolenbroek [Sat, 3 Mar 2012 23:53:03 +0000 (00:53 +0100)]
Import NetBSD du(1)

12 years agomfs: more accurate stat.st_blocks estimation
David van Moolenbroek [Sun, 4 Mar 2012 11:14:06 +0000 (12:14 +0100)]
mfs: more accurate stat.st_blocks estimation

On MFS file systems, the stat(2) call now counts indirect blocks as
part of the st_blocks calculation, in addition to proper initial
rounding of the file size. The returned value is now a true upper
bound on the actual number of 512-byte blocks allocated to the file.
As before, it is not accurate for sparse files.

12 years agomfs: remove legacy stat code
David van Moolenbroek [Sat, 3 Mar 2012 19:59:58 +0000 (20:59 +0100)]
mfs: remove legacy stat code

12 years agoKernel: only reset/reload FPU state when necessary
David van Moolenbroek [Sat, 3 Mar 2012 19:33:02 +0000 (20:33 +0100)]
Kernel: only reset/reload FPU state when necessary

12 years agoKernel: retain FPU state upon save
David van Moolenbroek [Sat, 3 Mar 2012 16:48:14 +0000 (17:48 +0100)]
Kernel: retain FPU state upon save

On the x86, saving FPU state has the side effect of resetting this
state. In some cases (fork, getcontext), this would cause the state
to be lost. This patch restores the FPU state right after saving it,
except when different state is loaded immediately after.

12 years agoKernel: pass FPU restore exception to user process
David van Moolenbroek [Sat, 3 Mar 2012 18:25:57 +0000 (19:25 +0100)]
Kernel: pass FPU restore exception to user process

Previously, user processes could cause a kernel panic upon FPU state
restore, by passing bogus FPU state to the kernel (through e.g.
sigreturn). With this patch, the process is now sent a SIGFPE signal
instead.

12 years agoKernel: adjust FPU state upon process slot swap
David van Moolenbroek [Sat, 3 Mar 2012 00:05:27 +0000 (01:05 +0100)]
Kernel: adjust FPU state upon process slot swap

This fixes seemingly random FPU exceptions and kernel panics occurring
after a system server restart.

12 years agoe1000: add support for 82545EM
David van Moolenbroek [Mon, 5 Mar 2012 11:58:33 +0000 (12:58 +0100)]
e1000: add support for 82545EM

Tested on VirtualBox and VMware.

12 years agoLWIP,NETSOCK - lwip uses asynchronous protocol
Tomas Hruby [Fri, 24 Feb 2012 18:02:32 +0000 (18:02 +0000)]
LWIP,NETSOCK - lwip uses asynchronous protocol

- libnetsock - internal implementation of a socket on the lwip
  server side. it encapsulates the asynchronous protocol

- lwip server - uses libnetsock to work with the asynchronous
  protocol

12 years agoLWIP fixed Makefile
Tomas Hruby [Fri, 24 Feb 2012 16:26:04 +0000 (16:26 +0000)]
LWIP fixed Makefile

12 years agoVFS - no CANCEL for async non-blocking operations
Tomas Hruby [Mon, 20 Feb 2012 13:19:29 +0000 (13:19 +0000)]
VFS - no CANCEL for async non-blocking operations

- if an operation (R, W, IOCTL) is non blocking, a flag is set
  and sent to the device.

- nothing changes for sync devices

- asyn devices should reply asap if an operation is non-blocking.
  We must trust the devices, but we had to trust them anyway to
  reply to CANCEL correctly

- we safe sending CANCEL commands to asyn devices. This greatly
  simplifies the protocol. Asynchronous devices can always reply
  when a reply is ready and do not need to deal with other
  situations

- currently, none of our drivers use the flags since they drive
  virtual devices which do not block

12 years agoVFS : simplification of handling asyn selects
Tomas Hruby [Mon, 20 Feb 2012 13:16:58 +0000 (13:16 +0000)]
VFS : simplification of handling asyn selects

- select_request_async() returns no ops by default

- wantops in do_select() always set correctly, do_select() does
  not need a special case for SUSPEND (and ugly code)

12 years agoVFS - dev_style_asyn()
Tomas Hruby [Tue, 7 Feb 2012 15:41:25 +0000 (15:41 +0000)]
VFS - dev_style_asyn()

 - dev_style_asyn() tests whether a device is asynchronous

 - simplifies code and helps readability

12 years agoVFS - cancel_nblock()
Tomas Hruby [Tue, 7 Feb 2012 15:33:32 +0000 (15:33 +0000)]
VFS - cancel_nblock()

- duplicate code in dev_io() which sends CANCEL in case of a
  non-blocking operation moved to cancel_nblock()

12 years agoinclude netdrv_tg3 on cd
Ben Gras [Sun, 26 Feb 2012 22:34:59 +0000 (23:34 +0100)]
include netdrv_tg3 on cd

12 years agoCosmetic boot fix.
Antoine Leca [Fri, 24 Feb 2012 12:29:10 +0000 (13:29 +0100)]
Cosmetic boot fix.

The NetBSD boot loader loads automatically the kernel module appropriate
for the detected root file system; it is preset at "ffs".  The MINIX3fs
support does not reset the underlying global variable, since there are
no use for this on MINIX.  As a result, the boot loader searches for
/ffs.kmod, and issues two warnings about "module failure to open/load."

12 years agofix for -lsys assert(): call panic()
Ben Gras [Fri, 24 Feb 2012 12:09:39 +0000 (13:09 +0100)]
fix for -lsys assert(): call panic()

. call panic() instead of abort() so that stacktraces are printed
. also call printf(..) instead of fprintf(stderr, ..)

12 years agostart modules at 16MB
Ben Gras [Fri, 24 Feb 2012 10:50:28 +0000 (11:50 +0100)]
start modules at 16MB

. keep more memory free below 16MB for e.g. lance

12 years agoRevert "SMP - no_apic=0 and acpi=1 set when CONFIG_SMP=y"
Tomas Hruby [Fri, 24 Feb 2012 09:16:55 +0000 (10:16 +0100)]
Revert "SMP - no_apic=0 and acpi=1 set when CONFIG_SMP=y"

This reverts commit c468f4efa5a9414c23949372158e711bd7b82a29.

Since we use the new boot loader, this hack is no longer necessary.

12 years agokernel: Update copyright date
Arun Thomas [Wed, 22 Feb 2012 15:34:39 +0000 (16:34 +0100)]
kernel: Update copyright date

12 years agoiso9660: link with libc
Thomas Veerman [Wed, 22 Feb 2012 15:17:14 +0000 (15:17 +0000)]
iso9660: link with libc

Prevents assert("inited") in _env.c (libc) from triggering.

12 years agoVFS: improve crashed FS resource cleanup
Thomas Veerman [Wed, 22 Feb 2012 13:54:35 +0000 (13:54 +0000)]
VFS: improve crashed FS resource cleanup

When VFS detects that an FS has crashed and tries to clean up
resources, it marks fairly late in the process that a vmnt is not
to be used again (to send requests to). This allows a thread to
become blocked on a vmnt after all blocked threads were stopped, but
before it finds out it shouldn't try to send to that vmnt.

12 years agoallow elvis to be invoked as ex
Ben Gras [Wed, 22 Feb 2012 00:51:19 +0000 (01:51 +0100)]
allow elvis to be invoked as ex

12 years agomkimage: use a lower start address
Arun Thomas [Tue, 21 Feb 2012 14:52:18 +0000 (15:52 +0100)]
mkimage: use a lower start address

12 years agoVFS: remove unused variables
Thomas Veerman [Tue, 21 Feb 2012 10:20:50 +0000 (10:20 +0000)]
VFS: remove unused variables

12 years agoVFS: fix last_dir not returning last directory
Thomas Veerman [Tue, 21 Feb 2012 10:16:42 +0000 (10:16 +0000)]
VFS: fix last_dir not returning last directory

If the provided path was only a single component (i.e., without
slashes), then last_dir would return early and skip the symlink
detection (i.e., check whether the path ends in a symlink and resolve
that first before returning). This bug triggered an assert in open
which expects that an advance after an last_dir (with VMNT_WRITE lock)
does not yield another vmnt lock.

12 years agofix for git commit id from branch
Ben Gras [Tue, 21 Feb 2012 00:20:00 +0000 (01:20 +0100)]
fix for git commit id from branch

. git would take remote repo HEAD otherwise

12 years agopkgin needn't be on cd
Ben Gras [Mon, 20 Feb 2012 22:55:44 +0000 (23:55 +0100)]
pkgin needn't be on cd

12 years agotry multiple reset methods
Ben Gras [Mon, 20 Feb 2012 17:58:17 +0000 (18:58 +0100)]
try multiple reset methods

. fixes reboot-hang under vbox
. makes experience nicer under vmware
. taken from netbsd reset code

12 years agorelease: can specify branch
Ben Gras [Mon, 20 Feb 2012 22:46:01 +0000 (23:46 +0100)]
release: can specify branch

12 years agoVFS: remove erroneous assert
Thomas Veerman [Mon, 20 Feb 2012 09:10:58 +0000 (09:10 +0000)]
VFS: remove erroneous assert

The assert was meant as an additional check to the assert in link.c:198.
The reasoning behind the assert in link.c:198 is that once you've
obtained a write lock on a vmnt, you can't get an additional read lock
on the same vmnt. However, that does not always hold for the assert in
path.c:281 where the situation could be that you've obtained a read lock
and managed to get another read lock (this is possible). In other words,
the assert in path.c:281 is not the right place to check for that
situation.

12 years agoportugese keymap
Ben Gras [Sat, 18 Feb 2012 01:05:04 +0000 (02:05 +0100)]
portugese keymap

contributed by ralxc

12 years agopkgin_cd clarification in motd
Ben Gras [Fri, 17 Feb 2012 23:39:08 +0000 (00:39 +0100)]
pkgin_cd clarification in motd

12 years agobetter cpp
Ben Gras [Fri, 17 Feb 2012 22:53:25 +0000 (23:53 +0100)]
better cpp

12 years agox11 on cd needs perl, drop groff for space
Ben Gras [Fri, 17 Feb 2012 15:55:46 +0000 (15:55 +0000)]
x11 on cd needs perl, drop groff for space

12 years agoVFS: various select fixes
Thomas Veerman [Fri, 17 Feb 2012 13:36:57 +0000 (13:36 +0000)]
VFS: various select fixes

- Fix locking bug when unable to send DEV_SELECT request. Upon failure
  VFS tried to cancel the select operation, but this failed due to trying
  to lock a filp that was already locked to send the request in the first
  place. Do_select_request now handles locking of filps itself instead of
  relying on the caller to do it.  This fixes a crash when killing INET.
- Fix failure to revive a process after a non-blocking select operation
  yielded no ready select operations when replying DEV_SEL_REPL1.
- Improve readability by using OK, SUSPEND, and standard error values as
  results instead of having separate macros in select.
- Don't print not having a driver for a major device; after killing a driver
  select will trigger this printf.

12 years agotest set: remove GCC specificity
Thomas Veerman [Fri, 17 Feb 2012 16:12:44 +0000 (16:12 +0000)]
test set: remove GCC specificity

12 years agoservers: fix clang warnings in iso9660fs and vm
Arun Thomas [Fri, 17 Feb 2012 14:35:27 +0000 (15:35 +0100)]
servers: fix clang warnings in iso9660fs and vm

12 years ago/usr/lib/cpp script to invoke clang -E
Ben Gras [Fri, 17 Feb 2012 14:43:50 +0000 (14:43 +0000)]
/usr/lib/cpp script to invoke clang -E

. mainly to keep X working

12 years agokernel/utility.c: fix implicit decl warnings
Arun Thomas [Fri, 17 Feb 2012 14:24:24 +0000 (15:24 +0100)]
kernel/utility.c: fix implicit decl warnings

12 years agoFixes to allow versionless packages on cd
Ben Gras [Fri, 17 Feb 2012 14:26:46 +0000 (14:26 +0000)]
Fixes to allow versionless packages on cd

12 years agoUse objcopy to build ramdisk object
Antoine Leca [Tue, 17 Jan 2012 15:04:58 +0000 (16:04 +0100)]
Use objcopy to build ramdisk object

. during build, uses much less memory,
  disk space, and time
. lets us throw out bintoc

12 years agogzip boot modules.
Ben Gras [Thu, 16 Feb 2012 23:06:42 +0000 (23:06 +0000)]
gzip boot modules.

. import gzip

12 years agoRemove obsolete INSTALLFLAGS from makefiles
Arun Thomas [Thu, 16 Feb 2012 22:26:38 +0000 (23:26 +0100)]
Remove obsolete INSTALLFLAGS from makefiles

12 years agomkboot: ensure image target dir is cleaned up
Arun Thomas [Thu, 16 Feb 2012 22:08:22 +0000 (23:08 +0100)]
mkboot: ensure image target dir is cleaned up

12 years agoStrip only the image binaries
Arun Thomas [Thu, 16 Feb 2012 18:14:33 +0000 (19:14 +0100)]
Strip only the image binaries

12 years agofix shell tests - no cc or aal
Ben Gras [Thu, 16 Feb 2012 12:10:39 +0000 (12:10 +0000)]
fix shell tests - no cc or aal

12 years agoinstall library manpages
Ben Gras [Thu, 16 Feb 2012 01:48:46 +0000 (01:48 +0000)]
install library manpages

. harmonize bsd.lib.mk and bsd.man.mk with netbsd files
. throw out minix section 3 (library calls) manpages,
  replaced by netbsd ones that are now installed

12 years agono symlink for dropped manpage
Ben Gras [Thu, 16 Feb 2012 00:52:19 +0000 (00:52 +0000)]
no symlink for dropped manpage

12 years agoMore cleaning up
Antoine Leca [Tue, 14 Feb 2012 18:58:27 +0000 (19:58 +0100)]
More cleaning up

12 years agolibblockdriver: attribute usage bugfix
David van Moolenbroek [Wed, 15 Feb 2012 13:22:45 +0000 (14:22 +0100)]
libblockdriver: attribute usage bugfix

12 years agoupdateboot script for netbsd bootloader
Evgeniy Ivanov [Wed, 15 Feb 2012 02:51:27 +0000 (03:51 +0100)]
updateboot script for netbsd bootloader

12 years agore-enable update-superblock check
Ben Gras [Wed, 15 Feb 2012 02:46:01 +0000 (03:46 +0100)]
re-enable update-superblock check

This reverts commit cdbc4bfb13b9446a00da95efa1e13ebaa4f35741.

12 years agosimplify chrootmake.sh
Ben Gras [Wed, 15 Feb 2012 00:19:12 +0000 (01:19 +0100)]
simplify chrootmake.sh

. just use make world

12 years agoRemove elle(1) editor, due to an incompatible license
David van Moolenbroek [Tue, 14 Feb 2012 14:47:02 +0000 (15:47 +0100)]
Remove elle(1) editor, due to an incompatible license

12 years agoDon't update mtab upon mounting procfs
Thomas Veerman [Tue, 14 Feb 2012 15:44:21 +0000 (15:44 +0000)]
Don't update mtab upon mounting procfs

It causes an ugly error message when booting from cd and it gets
overwritten by `printroot >/etc/mtab` in /etc/rc anyway.

12 years agoAdded UPDATING note about newer clang required.
Ben Gras [Tue, 14 Feb 2012 15:42:33 +0000 (16:42 +0100)]
Added UPDATING note about newer clang required.

12 years agouser(8): remove output file from source
David van Moolenbroek [Tue, 14 Feb 2012 14:47:51 +0000 (15:47 +0100)]
user(8): remove output file from source

12 years agoMake ELF kernel boot faster
Antoine Leca [Sat, 11 Feb 2012 23:19:00 +0000 (00:19 +0100)]
Make ELF kernel boot faster

12 years agoupdate_bootcfg script
Evgeniy Ivanov [Mon, 13 Feb 2012 08:08:25 +0000 (12:08 +0400)]
update_bootcfg script

. script to make neat menu entries for all /boot/minix/* dirs
  in /boot.cfg, read by new bootloader
. invoked when new images are created

12 years agoFull switch to clang/ELF. Drop ack. Simplify.
Ben Gras [Sat, 11 Feb 2012 18:31:25 +0000 (19:31 +0100)]
Full switch to clang/ELF. Drop ack. Simplify.

There is important information about booting non-ack images in
docs/UPDATING. ack/aout-format images can't be built any more, and
booting clang/ELF-format ones is a little different. Updating to the
new boot monitor is recommended.

Changes in this commit:

. drop boot monitor -> allowing dropping ack support
. facility to copy ELF boot files to /boot so that old boot monitor
  can still boot fairly easily, see UPDATING
. no more ack-format libraries -> single-case libraries
. some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases
. drop several ack toolchain commands, but not all support
  commands (e.g. aal is gone but acksize is not yet).
. a few libc files moved to netbsd libc dir
. new /bin/date as minix date used code in libc/
. test compile fix
. harmonize includes
. /usr/lib is no longer special: without ack, /usr/lib plays no
  kind of special bootstrapping role any more and bootstrapping
  is done exclusively through packages, so releases depend even
  less on the state of the machine making them now.
. rename nbsd_lib* to lib*
. reduce mtree

12 years agomake panic() work for multiboot/elf case
Evgeniy Ivanov [Sun, 12 Feb 2012 15:11:47 +0000 (19:11 +0400)]
make panic() work for multiboot/elf case

. we cannot use the boot monitor to print the system diag buffer
. for serial, we do nothing, just reset, everything is already printed
. for not-serial, we print the current diag buffer using direct video
  memory access from the kernel

12 years agoclang compile fixes
Ben Gras [Sat, 11 Feb 2012 17:46:09 +0000 (18:46 +0100)]
clang compile fixes

12 years agorelease: fix for rm -rf
Ben Gras [Sat, 11 Feb 2012 14:48:12 +0000 (15:48 +0100)]
release: fix for rm -rf

. new rm can return failure exit code

12 years agoELF hardlinks in /boot for compatibility with old boot.
Evgeniy Ivanov [Tue, 14 Feb 2012 08:10:15 +0000 (12:10 +0400)]
ELF hardlinks in /boot for compatibility with old boot.

12 years agoVFS: replace VFS with AVFS
Thomas Veerman [Mon, 13 Feb 2012 15:28:04 +0000 (15:28 +0000)]
VFS: replace VFS with AVFS