]>
Zhao Yanbai Git Server - minix.git/log
Ben Gras [Mon, 13 Sep 2010 16:37:02 +0000 (16:37 +0000)]
make, lib changes to make gcc/clang format libraries in /usr/lib instead of /usr/gnu/lib.
Ben Gras [Mon, 13 Sep 2010 15:50:54 +0000 (15:50 +0000)]
lib: fixes to make clang not error
Ben Gras [Mon, 13 Sep 2010 13:36:29 +0000 (13:36 +0000)]
Makefiles: remove -D__minix for assembly invocations.
They seem to be redundant (for gcc+ack+clang) and produce
very messy warnings (for clang, due to it already being defined).
Arun Thomas [Sun, 12 Sep 2010 17:56:53 +0000 (17:56 +0000)]
Update PATHs for llvm and X11
Arun Thomas [Sun, 12 Sep 2010 16:53:45 +0000 (16:53 +0000)]
Remove packit/packman from Makefile
Arun Thomas [Sun, 12 Sep 2010 13:55:00 +0000 (13:55 +0000)]
Remove packman and packit manpages
Arun Thomas [Fri, 10 Sep 2010 17:00:30 +0000 (17:00 +0000)]
Update release script for pkgsrc
David van Moolenbroek [Fri, 10 Sep 2010 09:22:22 +0000 (09:22 +0000)]
remove hardcoding of system.conf path in various service calls
David van Moolenbroek [Thu, 9 Sep 2010 16:13:02 +0000 (16:13 +0000)]
memory driver: propagate data copy error to caller
David van Moolenbroek [Thu, 9 Sep 2010 08:48:47 +0000 (08:48 +0000)]
shutdown(8): buffer accessed beyond end during option parsing
David van Moolenbroek [Thu, 9 Sep 2010 08:47:39 +0000 (08:47 +0000)]
IS: delete obsolete is.h
Tomas Hruby [Tue, 7 Sep 2010 07:18:11 +0000 (07:18 +0000)]
APIC mode uses IO APICs
- kernel turns on IO APICs if no_apic is _not_ set or is equal 0
- pci driver must use the acpi driver to setup IRQ routing otherwise
the system cannot work correctly except systems like KVM that use
only legacy (E)ISA IRQs 0-15
Erik van der Kouwe [Mon, 6 Sep 2010 07:45:32 +0000 (07:45 +0000)]
Make realpath deal with double slashes
Tomas Hruby [Fri, 3 Sep 2010 17:01:18 +0000 (17:01 +0000)]
asm.h not installed
Erik van der Kouwe [Fri, 3 Sep 2010 07:37:31 +0000 (07:37 +0000)]
Make hexdump ACK-compilable and add it to the base system
Arun Thomas [Fri, 3 Sep 2010 07:27:39 +0000 (07:27 +0000)]
No more packman, easypack, packit
-Create a dummy packman script that tells users about pkgin
Tomas Hruby [Thu, 2 Sep 2010 15:44:38 +0000 (15:44 +0000)]
PCI driver uses ACPI if APIC is used.
- PCI must query ACPI, if (IO)APIC is in use, for the routing
information and change the ILR (interrupt line register) of each
device accordingly so drivers use the right IRQ.
Tomas Hruby [Thu, 2 Sep 2010 15:44:36 +0000 (15:44 +0000)]
ACPI driver loaded at boot time
- the acpi driver is part of the ramdisk and if present the rc script
starts it before pci is started as pci needs if APIC mode is turned
on.
Tomas Hruby [Thu, 2 Sep 2010 15:44:04 +0000 (15:44 +0000)]
ACPI driver
- 99% of the code is Intel's ACPICA. The license is compliant with BSD
and GNU and virtually all systems that use ACPI use this code, For
instance it is part of the Linux kernel.
- The only minix specific files are
acpi.c
osminixxf.c
platform/acminix.h
and
include/minix/acpi.h
- At the moment the driver does not register interrupt hooks which I
believe is mainly for handling PnP, events like "battery level is
low" and power management. Should not be difficult to add it if need
be.
- The interface to the outside world is virtually non-existent except
a trivial message based service for PCI driver to query which device
is connected to what IRQ line. This will evolve as more components
start using this driver. VM, Scheduler and IOMMU are the possible
users right now.
- because of dependency on a native 64bit (long long, part of c99) it
is compiled only with a gnu-like compilers which in case of Minix
includes gcc llvm-gcc and clang
Tomas Hruby [Thu, 2 Sep 2010 15:43:59 +0000 (15:43 +0000)]
pci_*.h headers moved from drivers/pci to include/machine
Tomas Hruby [Thu, 2 Sep 2010 15:43:56 +0000 (15:43 +0000)]
Kernel exports DSDP and apic_enabled in machine structure
- kernel exports DSDP (the root pointer where ACPI parsing starts) and
apic_enabled in the machine structure.
- ACPI driver uses DSDP to locate ACPI in memory. acpi_enabled tell
PCI driver to query ACPI for IRQ routing information.
Tomas Hruby [Thu, 2 Sep 2010 15:43:54 +0000 (15:43 +0000)]
Kernel supports up to 64 IRQs
- enough for 2 io apics (usually with 24 pins)
Tomas Hruby [Thu, 2 Sep 2010 15:43:51 +0000 (15:43 +0000)]
ACPI in kernel
- the ability for kernel to use ACPI tables to detect IO APICs. It is
the bare minimum the kernel needs to know about ACPI tables.
- it will be used to find out about processors as the MPS tables are
deprecated by ACPI and not all vendorsprovide them.
Thomas Veerman [Thu, 2 Sep 2010 09:33:37 +0000 (09:33 +0000)]
Clean up the created temp file after running the test.
Ben Gras [Wed, 1 Sep 2010 18:48:47 +0000 (18:48 +0000)]
removed redundant includes dependency from gnu-libraries.
Ben Gras [Wed, 1 Sep 2010 18:28:55 +0000 (18:28 +0000)]
also make gcc includes before compiling gcc libraries.
Thomas Veerman [Wed, 1 Sep 2010 09:07:18 +0000 (09:07 +0000)]
- Return ENOENT when trying to add files to removed (but open) directories.
- Add test58 to test this behavior.
Tomas Hruby [Wed, 1 Sep 2010 07:46:51 +0000 (07:46 +0000)]
tools/Makefile uses padtext only when building with ack
Ben Gras [Tue, 31 Aug 2010 16:42:44 +0000 (16:42 +0000)]
gcc compiles - add -fno-builtin so that gcc optimisations don't break things.
- kernel compile was broken with gcc as putchar() was added by gcc in
stacktrace.c
- add -fno-builtin everywhere to avoid such problems in the future
- -fno-builtin in kernel now redundant
Ben Gras [Tue, 31 Aug 2010 14:33:31 +0000 (14:33 +0000)]
make service look in /etc/system.conf.d/<progname> first for config file.
This makes it easier to
- have non-base system drivers (get clobbered by global system.conf)
- have drivers as packages (can't touch global system.conf)
- make configs part of the drivers/servers instead of in global file
(makes system parts more self-contained)
Erik van der Kouwe [Mon, 30 Aug 2010 19:01:58 +0000 (19:01 +0000)]
Shutdown changes for multiboot: CTRL-ALT-DEL resets, panic halts
David van Moolenbroek [Mon, 30 Aug 2010 17:08:19 +0000 (17:08 +0000)]
ramdisk: more inodes
Arun Thomas [Mon, 30 Aug 2010 14:34:58 +0000 (14:34 +0000)]
cdefs.h: Allow __CONCAT() macro to be nested
Thomas Veerman [Mon, 30 Aug 2010 13:49:49 +0000 (13:49 +0000)]
Improve UDS testing. Fix a few bugs. Add testing of passing file descriptors.
Contributed by Thomas Cort.
Thomas Veerman [Mon, 30 Aug 2010 13:46:44 +0000 (13:46 +0000)]
- Add support for file descriptor passing to PFS.
- For security reasons move some libc code to PFS.
- Fix a few bugs in PFS.
Contributed by Thomas Cort.
Thomas Veerman [Mon, 30 Aug 2010 13:44:07 +0000 (13:44 +0000)]
Prepare VFS to support back calls from PFS. For security reasons and to support
file descriptor passing, PFS does some back calls to VFS. For example, to
verify the validity of a path provided by a process and to tell VFS it must
copy file descriptors from one process to another.
Thomas Veerman [Mon, 30 Aug 2010 13:41:22 +0000 (13:41 +0000)]
Prepare headers to support file descriptor passing over UNIX Domain Sockets.
Contributed by Thomas Cort.
Erik van der Kouwe [Sun, 29 Aug 2010 19:22:42 +0000 (19:22 +0000)]
Release script improvements, moving towards having the ramdisk working again
Erik van der Kouwe [Sun, 29 Aug 2010 17:50:51 +0000 (17:50 +0000)]
Touch generated files to avoid dependency generation warnings and missing dependencies
Erik van der Kouwe [Fri, 27 Aug 2010 10:09:06 +0000 (10:09 +0000)]
update /etc on make world
David van Moolenbroek [Fri, 27 Aug 2010 09:31:26 +0000 (09:31 +0000)]
mdb: disassembly fix for short 8-bit values
Arun Thomas [Thu, 26 Aug 2010 19:54:49 +0000 (19:54 +0000)]
Fix dependency problems in the build
Ben Gras [Wed, 25 Aug 2010 13:23:32 +0000 (13:23 +0000)]
added missing sef_gcov.c
Ben Gras [Wed, 25 Aug 2010 13:06:43 +0000 (13:06 +0000)]
gcov support, based on work contributed by Anton Kuijsten.
Ben Gras [Wed, 25 Aug 2010 11:18:38 +0000 (11:18 +0000)]
libaudiodriver <minix/audio_fw.h> fixes
Ben Gras [Wed, 25 Aug 2010 11:07:36 +0000 (11:07 +0000)]
connect libaudiodriver.
Ben Gras [Wed, 25 Aug 2010 11:03:53 +0000 (11:03 +0000)]
new base libaudiodriver out of -lcommon in drivers/audio.
- this lets the drivers that used that library be compiled easily with
different compilers.
Ben Gras [Wed, 25 Aug 2010 09:57:10 +0000 (09:57 +0000)]
sb16: flatten mixer, common, dsp hierarchy into 2-PROGS dir
Ben Gras [Wed, 25 Aug 2010 07:26:00 +0000 (07:26 +0000)]
further ramdisk size increase for gcc+gcov binaries.
Ben Gras [Wed, 25 Aug 2010 07:25:32 +0000 (07:25 +0000)]
<stddef.h> - alternative definition of offsetof for gcc using builtin
Erik van der Kouwe [Tue, 24 Aug 2010 12:51:11 +0000 (12:51 +0000)]
Zero out to three stack dwords to fix boot errors
Ben Gras [Tue, 24 Aug 2010 12:45:37 +0000 (12:45 +0000)]
at_wini: fix warning, bogus PRIVATE in struct type declaration
David van Moolenbroek [Tue, 24 Aug 2010 07:20:41 +0000 (07:20 +0000)]
RS: use PM's API instead of its internals
Erik van der Kouwe [Mon, 23 Aug 2010 17:00:04 +0000 (17:00 +0000)]
Avoid duplicate type definitions, especially wchar_t which was inconsstent and caused trouble in libarchive
Erik van der Kouwe [Mon, 23 Aug 2010 16:32:05 +0000 (16:32 +0000)]
Fix buffer overflow in libarchive if a UTF-8 encoded string has codepoints that require two UTF-16 words
Erik van der Kouwe [Mon, 23 Aug 2010 16:30:58 +0000 (16:30 +0000)]
Solve buffer overflow on tab completion in ash
Arun Thomas [Sat, 21 Aug 2010 13:24:09 +0000 (13:24 +0000)]
Import hexdump(1) from NetBSD
Arun Thomas [Sat, 21 Aug 2010 13:10:41 +0000 (13:10 +0000)]
Move MIN() and MAX() macros to sys/params.h
Arun Thomas [Sat, 21 Aug 2010 13:07:25 +0000 (13:07 +0000)]
easprintf() and evasprintf()
Erik van der Kouwe [Fri, 20 Aug 2010 19:50:36 +0000 (19:50 +0000)]
Minor malloc-debug fixes
Erik van der Kouwe [Fri, 20 Aug 2010 19:16:31 +0000 (19:16 +0000)]
Add MALLOC_DEBUG env var to debug applications using malloc
Erik van der Kouwe [Fri, 20 Aug 2010 18:43:56 +0000 (18:43 +0000)]
move rrrrrrread_tsc from libsys to libc so anyone can use it
Ben Gras [Fri, 20 Aug 2010 12:59:55 +0000 (12:59 +0000)]
boot ramdisk slightly bigger for gcc-compiled binaries.
Erik van der Kouwe [Fri, 20 Aug 2010 11:07:16 +0000 (11:07 +0000)]
Provide boot image process main functions with a full parameter list, so that bad things don't heppen when using getenv
Ben Gras [Thu, 19 Aug 2010 16:35:01 +0000 (16:35 +0000)]
update MANPATH for gcc, X
Ben Gras [Wed, 18 Aug 2010 16:08:10 +0000 (16:08 +0000)]
mk: use ar instead of gar for gcc/clang ar.
Ben Gras [Wed, 18 Aug 2010 16:07:54 +0000 (16:07 +0000)]
rc: add /sbin to $PATH for fsck.mfs
Arun Thomas [Tue, 17 Aug 2010 16:44:07 +0000 (16:44 +0000)]
Macros for symbols used in both ASM and C
-The macros take care of prepending the leading underscore when
necessary.
Thomas Veerman [Tue, 17 Aug 2010 10:02:50 +0000 (10:02 +0000)]
- Make sure there's space left in the vmnt table for another mount point.
- Increase mount point limit.
Erik van der Kouwe [Mon, 16 Aug 2010 17:07:40 +0000 (17:07 +0000)]
Add ftello function
Erik van der Kouwe [Mon, 16 Aug 2010 17:06:08 +0000 (17:06 +0000)]
Add fseeko function
Ben Gras [Sat, 14 Aug 2010 20:28:32 +0000 (20:28 +0000)]
AR=ar still needed for pkgsrc.
Ben Gras [Fri, 13 Aug 2010 13:33:51 +0000 (13:33 +0000)]
pkgsrc: no more g* prefix for binutils.
David van Moolenbroek [Thu, 12 Aug 2010 14:21:55 +0000 (14:21 +0000)]
diskctl(8) into commands makefile
David van Moolenbroek [Thu, 12 Aug 2010 14:11:28 +0000 (14:11 +0000)]
diskctl(8) tool
David van Moolenbroek [Thu, 12 Aug 2010 14:09:34 +0000 (14:09 +0000)]
at_wini/ahci: write cache ioctls
David van Moolenbroek [Thu, 12 Aug 2010 14:08:23 +0000 (14:08 +0000)]
AHCI driver: miscellaneous changes
- check the DF status flag after each command
- increase I/O timeout from 15 to 30 seconds
- share some code between ATA and ATAPI after all
- produce more accurate errors on DIOCEJECT
- rename AHCI_ID_SIZE to the more appropriate ATA_ID_SIZE
- rearrange ahci.h in a now more sensible way
Erik van der Kouwe [Thu, 12 Aug 2010 13:44:47 +0000 (13:44 +0000)]
Boot monitor shouldn't report memory after 4GB; the addresses are wrong and VM can't deal with it anyways
David van Moolenbroek [Wed, 11 Aug 2010 11:30:08 +0000 (11:30 +0000)]
ramdisk: actually add ahci to the image, too
David van Moolenbroek [Wed, 11 Aug 2010 11:16:44 +0000 (11:16 +0000)]
ramdisk: add preliminary support for ahci
David van Moolenbroek [Wed, 11 Aug 2010 10:01:34 +0000 (10:01 +0000)]
small fix in hgfs.8 manpage
David van Moolenbroek [Wed, 11 Aug 2010 08:57:48 +0000 (08:57 +0000)]
fix ptrace.2 man page
David van Moolenbroek [Tue, 10 Aug 2010 20:05:51 +0000 (20:05 +0000)]
VTreeFS library
Erik van der Kouwe [Mon, 9 Aug 2010 05:51:01 +0000 (05:51 +0000)]
Make it possible again to compile the tests without installing GCC first
David van Moolenbroek [Sat, 7 Aug 2010 11:50:15 +0000 (11:50 +0000)]
hgfs comment fix: inode status, not statistics
Tomas Hruby [Fri, 6 Aug 2010 12:48:26 +0000 (12:48 +0000)]
Fixed warning noreturn function returns in arch_system.c
Tomas Hruby [Fri, 6 Aug 2010 12:46:44 +0000 (12:46 +0000)]
both ack and gcc can compile klib16.S
Tomas Hruby [Fri, 6 Aug 2010 12:46:01 +0000 (12:46 +0000)]
gas2ack filters out .code16
- .code16 tells gnu as to generate 16bit assembly ack requires -mi86 switch
Erik van der Kouwe [Fri, 6 Aug 2010 12:33:32 +0000 (12:33 +0000)]
Fix tests when run as root; use bin account but current directory
Tomas Hruby [Fri, 6 Aug 2010 12:26:26 +0000 (12:26 +0000)]
Missing prototype in pre_init.c
- gcc does not like it
Tomas Hruby [Fri, 6 Aug 2010 10:28:40 +0000 (10:28 +0000)]
Reverted __packed for ACK
- ack does not produce packed structures
Tomas Hruby [Fri, 6 Aug 2010 09:53:53 +0000 (09:53 +0000)]
__packed defined for ACK
Erik van der Kouwe [Fri, 6 Aug 2010 09:28:26 +0000 (09:28 +0000)]
Fix ar error in testsh1.sh (ar was previously renamed to aal)
Erik van der Kouwe [Fri, 6 Aug 2010 09:27:49 +0000 (09:27 +0000)]
Fix cdiff error in testsh1.sh
David van Moolenbroek [Thu, 5 Aug 2010 16:37:58 +0000 (16:37 +0000)]
AHCI driver
Thomas Veerman [Thu, 5 Aug 2010 15:11:10 +0000 (15:11 +0000)]
fsck and mkfs have been moved to /sbin
Ben Gras [Thu, 5 Aug 2010 14:51:46 +0000 (14:51 +0000)]
pkg_install: DESTDIR support.
Ben Gras [Thu, 5 Aug 2010 14:09:06 +0000 (14:09 +0000)]
merge datasizes and unstack
Ben Gras [Thu, 5 Aug 2010 13:56:51 +0000 (13:56 +0000)]
release.sh - let some packages come pre-installed (right now just pkgin)
Erik van der Kouwe [Thu, 5 Aug 2010 13:35:41 +0000 (13:35 +0000)]
Remove spurious space