Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1249 → Rev 1250

/uspace/trunk/init/init.c
36,6 → 36,7
#include <task.h>
#include <psthread.h>
#include <futex.h>
#include <as.h>
 
int a;
atomic_t ftx;
/uspace/trunk/libc/include/as.h
0,0 → 1,40
/*
* Copyright (C) 2005 Martin Decky
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* - The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
#ifndef __AS_H__
#define __AS_H__
 
#include <types.h>
#include <task.h>
 
extern void *as_area_create(void *address, size_t size, int flags);
extern void *as_area_resize(void *address, size_t size, int flags);
extern int as_area_accept(task_id_t id, void *base, size_t size, int flags);
extern int as_area_send(task_id_t id, void *base);
 
#endif
/uspace/trunk/libc/include/unistd.h
31,7 → 31,6
 
#include <types.h>
#include <arch/mm/page.h>
#include <task.h>
 
#define NULL 0
#define getpagesize() (PAGE_SIZE)
38,10 → 37,6
 
extern ssize_t write(int fd, const void * buf, size_t count);
extern void _exit(int status);
extern void *as_area_create(void *address, size_t size, int flags);
extern void *as_area_resize(void *address, size_t size, int flags);
extern int as_area_accept(task_id_t id, void *base, size_t size, int flags);
extern int as_area_send(task_id_t id, void *base);
void *sbrk(ssize_t incr);
 
#endif
/uspace/trunk/libc/generic/as.c
26,6 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
#include <as.h>
#include <libc.h>
#include <unistd.h>
#include <kernel/mm/as_arg.h>
/uspace/trunk/Makefile
38,9 → 38,15
libipc \
libadt \
init \
pci \
ns
 
ifeq ($(ARCH), amd64)
DIRS += pci
endif
ifeq ($(ARCH), ia32)
DIRS += pci
endif
 
BUILDS := $(addsuffix .build,$(DIRS))
CLEANS := $(addsuffix .clean,$(DIRS))