aboutsummaryrefslogtreecommitdiffstats
path: root/include/site
Commit message (Expand)AuthorAgeFilesLines
* include/site: add powerpc64 configFlorian Larysch2017-10-241-0/+26
* build: add a darwin sitefile to deal with macOS 10.12 + Xcode 9 build errorsFelix Fietkau2017-10-051-0/+2
* toolchain: add support of ARC architectureFelix Fietkau2015-11-101-0/+30
* build: add missing sitefile for i386Felix Fietkau2015-03-281-0/+3
* build: clean up sitefiles, make them per-archFelix Fietkau2015-03-2863-260/+29
* build: remove obsolete references to cris and avr32Felix Fietkau2015-03-246-76/+0
* aarch64: add initial supportFlorian Fainelli2014-11-244-0/+66
* add preliminary support for muslFlorian Fainelli2012-11-2310-0/+50
* add sparc specific site filesFlorian Fainelli2012-09-144-0/+43
* site: add configure cache scripts for mips-linux-gnu and mipsel-linux-gnu, us...Jo-Philipp Wich2012-01-192-0/+10
* include/site: add powerpc-openwrt-linux-*spe sitefiles for mpc85xxFelix Fietkau2011-08-122-0/+10
* site: set ac_cv_sizeof_off_t=8 to fix autoconf applications using it for dete...Felix Fietkau2011-04-049-9/+9
* Revert "[include] provide mipsel-openwrt-linux-uclibcgnueabi site script, fix...Felix Fietkau2011-03-091-5/+0
* provide mipsel-openwrt-linux-uclibcgnueabi site script, fixes the majority of...Jo-Philipp Wich2011-03-091-0/+5
* site: cache ac_cv_func_malloc_0_nonnull and ac_cv_func_realloc_0_nonnullJo-Philipp Wich2011-03-081-0/+2
* add sitefile entries for ac_cv_func_creal,cimag - the functions are there, bu...Felix Fietkau2011-02-011-0/+2
* Added autoconf flags for gettimeofday and psignal - uClibc has themDaniel Dickinson2010-12-121-0/+2
* use a common site/linux config, since site/linux-gnu & site/linux-uclibc conf...Nicolas Thill2009-12-183-144/+74
* adjust pointer size from 4 to 8 bytes in x86_64 site configNicolas Thill2009-10-041-1/+1
* add sitefile definitions for ac_cv_func_setgrent_voidFelix Fietkau2009-07-232-0/+2
* add preliminary coldfire v4e supportImre Kaloz2009-06-213-0/+36
* add a modified version of the mips64 patch from #4603Felix Fietkau2009-04-186-0/+76
* adjust site config files for uClibc ARM EABINicolas Thill2009-01-212-0/+0
* add missing 'ac_cv_sizeof_unsigned_long_long' variableNicolas Thill2009-01-111-0/+1
* add support for alternative C libraries (currently only glibc/eglibc) other (...Nicolas Thill2009-01-0827-2/+142
* Add sizeof of unsigned long longFlorian Fainelli2008-12-1410-0/+10
* fix inotify detection for linux 2.4 (fixes glib2 and packages that depend on ...Felix Fietkau2008-10-081-0/+5
* cris is little endian, not big endian (patch from #4048)Felix Fietkau2008-09-281-2/+2
* move arch-specific definitions to arch site filesNicolas Thill2008-08-0620-280/+280
* add ac_cv_file__dev_zero to sitefilesFelix Fietkau2008-08-061-0/+1
* add ssize_t definition to site files, fix up size for x86_64Felix Fietkau2008-08-0610-2/+37
* add missing configure variable to sitefile (required by gstreamer)Felix Fietkau2008-08-051-0/+1
* Define the size_t size for cris (#3722)Florian Fainelli2008-07-061-0/+1
* add 'getgrgid' to uClibc site config, needed after glib2 update in [11088]Nicolas Thill2008-05-091-0/+1
* uClibc should actually support va_copyNicolas Thill2008-04-211-1/+1
* fix ntpd compileFelix Fietkau2007-12-301-0/+1
* We also need bzero and bcmp to be put in thereFlorian Fainelli2007-12-301-0/+2
* fix net-snmp compileFelix Fietkau2007-12-301-0/+3
* prevent ldconfig use in autoconf based packagesNicolas Thill2007-08-261-0/+1
* added i686 support and profile for t-vision s100John Crispin2007-07-081-0/+31
* fix the value of ac_cv_sizeof_off_t in the sitefiles (reported by crazy_imp)Felix Fietkau2007-06-307-7/+7
* autoconf preset for cris, so libpcap compilesJohn Crispin2007-06-121-0/+5
* add support for the AVR32 platform, namely the ATNGW100 board - joint work wi...Imre Kaloz2007-06-081-0/+31
* add x86_64 sitefileFelix Fietkau2007-02-261-0/+31
* A little endian arm site defaults, in case anyone wants it. ixp4xx kernel and...Rod Whitby2006-12-171-0/+31
* fix typos in CONFIG_SITE filesNicolas Thill2006-11-071-2/+0
* fix squid and rp-pppoe (closes: #869)Nicolas Thill2006-10-206-21/+82
* fix gnupg compileFelix Fietkau2006-10-191-1/+1
* small fix for the sitefilesFelix Fietkau2006-10-191-1/+2
* fix bmon compileFelix Fietkau2006-10-191-0/+1
class="n">copy_to_user(u_dom0_op, op, sizeof(*op)); } break; case DOM0_GETPAGEFRAMEINFO2: { #define GPF2_BATCH 128 int n,j; int num = op->u.getpageframeinfo2.num; domid_t dom = op->u.getpageframeinfo2.domain; unsigned long *s_ptr = (unsigned long*) op->u.getpageframeinfo2.array; struct domain *d; unsigned long *l_arr; ret = -ESRCH; if ( unlikely((d = find_domain_by_id(dom)) == NULL) ) break; if ( unlikely(num > 1024) ) { ret = -E2BIG; break; } l_arr = (unsigned long *)alloc_xenheap_page(); ret = 0; for( n = 0; n < num; ) { int k = ((num-n)>GPF2_BATCH)?GPF2_BATCH:(num-n); if ( copy_from_user(l_arr, &s_ptr[n], k*sizeof(unsigned long)) ) { ret = -EINVAL; break; } for( j = 0; j < k; j++ ) { struct pfn_info *page; unsigned long mfn = l_arr[j]; if ( unlikely(mfn >= max_page) ) goto e2_err; page = &frame_table[mfn]; if ( likely(get_page(page, d)) ) { unsigned long type = 0; switch( page->u.inuse.type_info & PGT_type_mask ) { default: panic("No such page type\n"); break; } if ( page->u.inuse.type_info & PGT_pinned ) type |= LPINTAB; l_arr[j] |= type; put_page(page); } else { e2_err: l_arr[j] |= XTAB; } } if ( copy_to_user(&s_ptr[n], l_arr, k*sizeof(unsigned long)) ) { ret = -EINVAL; break; } n += j; } free_xenheap_page((unsigned long)l_arr); put_domain(d); } break; #ifndef CONFIG_VTI /* * NOTE: DOM0_GETMEMLIST has somewhat different semantics on IA64 - * it actually allocates and maps pages. */ case DOM0_GETMEMLIST: { unsigned long i; struct domain *d = find_domain_by_id(op->u.getmemlist.domain); unsigned long start_page = op->u.getmemlist.max_pfns >> 32; unsigned long nr_pages = op->u.getmemlist.max_pfns & 0xffffffff; unsigned long pfn; unsigned long *buffer = op->u.getmemlist.buffer; struct page *page; ret = -EINVAL; if ( d != NULL ) { ret = 0; for ( i = start_page; i < (start_page + nr_pages); i++ ) { page = map_new_domain_page(d, i << PAGE_SHIFT); if ( page == NULL ) { ret = -ENOMEM; break; } pfn = page_to_pfn(page); if ( put_user(pfn, buffer) ) { ret = -EFAULT; break; } buffer++; } op->u.getmemlist.num_pfns = i - start_page; copy_to_user(u_dom0_op, op, sizeof(*op)); put_domain(d); } } break; #else case DOM0_GETMEMLIST: { int i; struct domain *d = find_domain_by_id(op->u.getmemlist.domain); unsigned long max_pfns = op->u.getmemlist.max_pfns; unsigned long pfn; unsigned long *buffer = op->u.getmemlist.buffer; struct list_head *list_ent; ret = -EINVAL; if (!d) { ret = 0; spin_lock(&d->page_alloc_lock); list_ent = d->page_list.next; for (i = 0; (i < max_pfns) && (list_ent != &d->page_list); i++) { pfn = list_entry(list_ent, struct pfn_info, list) - frame_table; if (put_user(pfn, buffer)) { ret = -EFAULT; break; } buffer++; list_ent = frame_table[pfn].list.next; } spin_unlock(&d->page_alloc_lock); op->u.getmemlist.num_pfns = i; copy_to_user(u_dom0_op, op, sizeof(*op)); put_domain(d); } } break; #endif // CONFIG_VTI default: ret = -ENOSYS; } return ret; }