aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* stubdom: add stub functions to reduce qemu patchesKeir Fraser2008-07-091-0/+11
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix copy/paste typo in select()Keir Fraser2008-07-081-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: use host's gccKeir Fraser2008-07-043-2/+5
| | | | | | | | This makes stubdom use the host's gcc instead of downloading/compiling binutils+gcc. That requires a bunch of changes and even uncovered a few bugs, but saves a lot of time. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix libc-verbose non-lwip compilationKeir Fraser2008-06-301-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: permit compilation without lwipKeir Fraser2008-06-091-2/+21
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: Add console reading supportKeir Fraser2008-06-031-3/+22
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: Fix width of shifted 1Keir Fraser2008-05-241-1/+1
| | | | | | Shifting 1 more that 32 bits requires 1 to be long-typed. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: complete libxc supportKeir Fraser2008-05-231-43/+24
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: free netfront resources on error/shutdownKeir Fraser2008-05-121-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* pvfb/ioemu: transmit refresh interval advice from backend to frontendKeir Fraser2008-05-121-0/+20
| | | | | | which permits the frontend to avoid useless polls. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: sparse application's BSS by linking it separately first, putKeir Fraser2008-04-161-0/+35
| | | | | | | markers at its beginning and end, and then link with mini-os. That permits to stick a bit more to upstream qemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: Fix xfree() bug.Keir Fraser2008-04-021-7/+7
| | | | | | | | It has to check first if the memory to free is so big as to be freed directly by free_pages. mini-os domains crash without this patch if vfb is misconfigured. Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
* stubdom: fix compilationKeir Fraser2008-03-191-1/+0
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: Add support for select() call with NULL arguments.Keir Fraser2008-03-181-6/+26
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Stubdom: add support for file creation.Keir Fraser2008-03-181-2/+20
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix x86_32 compilation by __moddi3 from FreeBSDKeir Fraser2008-02-261-0/+23
| | | | | | (like has been done previously for umoddi3 etc.) Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: add PVFB supportKeir Fraser2008-02-261-0/+24
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Mini-OS: Fix alignment in maybe_split()Keir Fraser2008-02-141-7/+10
| | | | | Needed on ia64, speeds up on x86. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Add stubdomain support. See stubdom/README for usage details.Keir Fraser2008-02-122-0/+1270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move PAGE_SIZE and STACK_SIZE into __PAGE_SIZE and __STACK_SIZE in arch_limits.h so as to permit getting them from there without pulling all the internal Mini-OS defines. - Setup a xen-elf cross-compilation environment in stubdom/cross-root - Add a POSIX layer on top of Mini-OS by linking against the newlib C library and lwIP, and implementing the Unixish part in mini-os/lib/sys.c - Cross-compile zlib and libpci too. - Add an xs.h-compatible layer on top of Mini-OS' xenbus. - Cross-compile libxc with an additional xc_minios.c and a few things disabled. - Cross-compile ioemu with an additional block-vbd, but without sound, tpm and other details. A few hacks are needed: - Align ide and scsi buffers at least on sector size to permit direct transmission to the block backend. While we are at it, just page-align it to possibly save a segment. Also, limit the scsi buffer size because of limitations of the block paravirtualization protocol. - Allocate big tables dynamically rather that letting them go to bss: when Mini-OS gets installed in memory, bss is not lazily allocated, and doing so during Mini-OS is unnecessarily trick while we can simply use malloc. - Had to change the Mini-OS compilation somehow, so as to export Mini-OS compilation flags to the Makefiles of libxc and ioemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: POSIX fixesKeir Fraser2008-01-222-0/+19
| | | | | | Fixes some functions which are POSIX. Also make them ifndef HAVE_LIBC. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: Add align support to _xmalloc().Keir Fraser2008-01-221-38/+89
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: add reallocKeir Fraser2008-01-171-0/+21
| | | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> Signed-off-by: Tim Deegan <tim.deegan@eu.citrix.com>
* In C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) isKeir Fraser2007-12-281-3/+1
| | | | | | | said to be undefined if the value to be put is n can't fit. I guess we can safely consider that the same applies to printf. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* [Mini-OS] Fix strrchr() when string doesn't contain the character.Keir Fraser2007-11-281-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* [Mini-OS] Add strrchr()Keir Fraser2007-11-231-0/+9
| | | | | | | Add strrchr(), useful e.g. for grabbing the last part of a xenbus path. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* [Mini-OS] Move _ctype into a moduleKeir Fraser2007-11-231-0/+27
| | | | | | | Move the _ctype array into its own module, instead of having it defined in a header. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
* [MINIOS] More cleanups for the ia64 port.kfraser@localhost.localdomain2007-01-192-0/+11
| | | | Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
* [MINIOS]Events handling cleaned up. The interface extended to providekfraser@localhost.localdomain2006-07-051-0/+10
| | | | | | | void* pointer to handlers. Signed-off-by: Steven Smith <sos22@cam.ac.uk> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* [MINIOS] Allows the use of a C library without modifying Mini-OS source files.kaf24@firebug.cl.cam.ac.uk2006-05-262-1/+7
| | | | | | From: John Ramsdell Signed-off-by: Keir Fraser <keir@xensource.com>
* Implement console for Mini-os and also fix 2 bugs:kaf24@firebug.cl.cam.ac.uk2006-03-151-13/+0
| | | | | | | | | a) in initialising new page table frames b) in initialising idle thread. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Xenbus implementation ported from Linux to Mini-os, simple thread support ↵kaf24@firebug.cl.cam.ac.uk2005-09-092-359/+709
| | | | | | | | | | | introduced to simplify the porting. 64 bit version of Mini-os now compiles, but does not work because of the pagetables and some bits of scheduler not being written. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* The patch removes broken, and very complicated malloc inkaf24@firebug.cl.cam.ac.uk2005-08-262-5697/+219
| | | | | | | | | favour of much simpler (and working) Xen's allocator (xmalloc by Rusty). Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* bitkeeper revision 1.1185 (420cf3c8-bMMcsnH1kMVRwy5AQ-ecg)kaf24@scramble.cl.cam.ac.uk2005-02-111-1/+3
| | | | | | | Various mini-os and Xen fixes. The M2P table is now definitely accessible (read-only) from guest context. Signed-off-by: keir.fraser@cl.cam.ac.uk
* bitkeeper revision 1.1177.1.1 (420c983eSjbjDYGF-fYWrXw_L7qkLA)kaf24@scramble.cl.cam.ac.uk2005-02-111-2/+2
| | | | | | Mini-OS cleanups. Bug fixes in x86_64 assembly code. Signed-off-by: keir.fraser@cl.cam.ac.uk
* bitkeeper revision 1.1004 (40d9962b6c-Z9R9FquPba7TS8wG_1w)kaf24@scramble.cl.cam.ac.uk2004-06-231-2/+4
| | | | | Cleanups.
* bitkeeper revision 1.695 (4017ff70oJV8517inpGbN1CixN6csw)kaf24@scramble.cl.cam.ac.uk2004-01-281-7/+4
| | | | | | Many files: Clean up compile warnings. Added stricter gcc options for Xen build.
* bitkeeper revision 1.694 (40133166fMqipwBHlUP1QVHEO6EEOg)kaf24@scramble.cl.cam.ac.uk2004-01-254-18/+9
| | | | | | Many files: From Kip Macy, we now are stricter when compiling the mini os.
* bitkeeper revision 1.520 (3f8d13d8qVVqxcYD--4cXYs5egqNyg)kaf24@scramble.cl.cam.ac.uk2003-10-151-6/+6
| | | | | | | | | | | | Many files: Fix the minos license so that it is usable for XP and BSD ports. minios.lds: Rename: extras/mini-os/vmlinux.lds -> extras/mini-os/minios.lds .del-list.h~d612a8726e8d42e: Delete: extras/mini-os/h/list.h .del-COPYING~1f9753354580bd13: Delete: extras/mini-os/COPYING
* bitkeeper revision 1.483 (3f81a3e2iM-0WXaGxUS3ywM3_KZqLw)iap10@labyrinth.cl.cam.ac.uk2003-10-064-0/+6697
move mini-os to extras directory