search for: pptr

Displaying 13 results from an estimated 13 matches for "pptr".

Did you mean: ptr
2009 Nov 20
0
[PATCH] memdisk: Use boot_lba logic for booting an offset within the di
...boot_len = 512; /* One sector */ - uint32_t boot_lba = 0; /* LBA of bootstrap code */ /* We need to copy the rm_args into their proper place */ memcpy(&rm_args, rm_args_ptr, sizeof rm_args); @@ -1027,11 +1030,12 @@ void setup(const struct real_mode_args *rm_args_ptr) pptr->cd_pkt.type = boot_cat->initial_entry.media_type; /* Cheat */ pptr->cd_pkt.driveno = geometry->driveno; pptr->cd_pkt.start = boot_cat->initial_entry.load_block; - pptr->cd_pkt.load_seg = boot_cat->initial_entry.load_seg; + boot_seg = pptr->cd_...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
...- printf("Ramdisk at 0x%08x, length 0x%08x\n", ramdisk_image, ramdisk_size); + if (!quiet) + printf("Ramdisk at 0x%08x, length 0x%08x\n", ramdisk_image, + ramdisk_size); unzip_if_needed(&ramdisk_image, &ramdisk_size); @@ -868,7 +881,8 @@ pptr->configflags |= CONFIG_SAFEINT; } - printf("Disk is %s%d, %u%s K, C/H/S = %u/%u/%u (%s/%s), EDD %s, %s\n", + if (!quiet) { + printf("Disk is %s%d, %u%s K, C/H/S = %u/%u/%u (%s/%s), EDD %s, %s\n", (geometry->driveno & 0x80) ? "hd" : &qu...
2010 Sep 09
2
[PATCH]: add libxl python binding
...-1; + } + + memcpy(ptr, tmp, sz); + return 0; +} + +static PyObject *fixed_bytearray_get(const uint8_t *ptr, size_t len) +{ + return PyByteArray_FromStringAndSize((const char *)ptr, len); +} + +#include "_pyxl_types.h" + +int attrib__libxl_cpumap_set(PyObject *v, libxl_cpumap *pptr) +{ + return -1; +} + +int attrib__libxl_domain_build_state_ptr_set(PyObject *v, libxl_domain_build_state **pptr) +{ + return -1; +} + +int attrib__libxl_file_reference_set(PyObject *v, libxl_file_reference *pptr) +{ + return -1; +} + +int attrib__libxl_hwcap_set(PyObject *v, libxl_hwcap *...
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...((packed)); + struct patch_area { uint32_t diskbuf; uint32_t disksize; @@ -816,6 +834,7 @@ void setup(const struct real_mode_args *rm_args_ptr) unsigned int bin_size; char *memdisk_hook; struct memdisk_header *hptr; + struct safe_hook *safe_hook; struct patch_area *pptr; uint16_t driverseg; uint32_t driverptr, driveraddr; @@ -899,6 +918,7 @@ void setup(const struct real_mode_args *rm_args_ptr) /* Figure out where it needs to go */ hptr = (struct memdisk_header *)memdisk_hook; + safe_hook = (struct safe_hook *)(memdisk_hook + hptr->int13...
2006 Mar 10
2
unload memdisk+FreeDOS => local boot
Sensei H. Peter Anvin, I have successfully modified/enhanced memdisk so that one can chainload a local operating system after running diskless FreeDOS. I would like your advice regarding the appropriate interface for invoking this functionality. In addition, I would like to know what steps to take so that you feel comfortable considering including this in the standard syslinux distribution.
2006 Aug 02
10
[PATCH 0/6] htb: cleanup
The HTB scheduler code is a mess, this patch set does some basic house cleaning. The first four should cause no code change, but the last two need more testing. -- Stephen Hemminger <shemminger@osdl.org> "And in the Packet there writ down that doome" - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to
2012 May 17
8
[PATCH] libxl: do not overwrite user supplied config when running bootloader
....c --- a/tools/python/xen/lowlevel/xl/xl.c Thu May 17 16:39:51 2012 +0100 +++ b/tools/python/xen/lowlevel/xl/xl.c Thu May 17 17:51:32 2012 +0100 @@ -243,11 +243,6 @@ int attrib__libxl_cpumap_set(PyObject *v return 0; } -int attrib__libxl_file_reference_set(PyObject *v, libxl_file_reference *pptr) -{ - return genwrap__string_set(v, &pptr->path); -} - int attrib__libxl_hwcap_set(PyObject *v, libxl_hwcap *pptr) { PyErr_SetString(PyExc_NotImplementedError, "Setting hwcap"); @@ -315,11 +310,6 @@ PyObject *attrib__libxl_cpumap_get(libxl return cpulist; } -PyObj...
2011 Aug 07
2
[PATCH] kinit minor checkpatch cleanup
...fd); - } } mnt_procfs = mount_sys_fs("/proc/cmdline", "/proc", "proc") >= 0; diff --git a/usr/kinit/kinit.h b/usr/kinit/kinit.h index c2e67b7..71414b1 100644 --- a/usr/kinit/kinit.h +++ b/usr/kinit/kinit.h @@ -36,17 +36,17 @@ ssize_t freadfile(FILE *f, char **pptr); * "unnecessary" pointer comparison. * From the Linux kernel. */ -#define min(x,y) ({ \ - typeof(x) _x = (x); \ - typeof(y) _y = (y); \ - (void) (&_x == &_y); \ - _x < _y ? _x : _y; }) +#define min(x, y) ({ \ + typeof(x) _x...
2007 Apr 18
0
[Bridge] [PATCH 2.4] (1/2) bridge - backport of API checking
...9,6 +19,7 @@ #include <linux/inetdevice.h> #include <linux/rtnetlink.h> #include <linux/brlock.h> +#include <linux/etherdevice.h> #include <asm/uaccess.h> #include "br_private.h" @@ -44,7 +45,7 @@ struct net_bridge_port *p; struct net_bridge_port **pptr; - if ((p = dev->br_port) == NULL) + if ((p = dev->br_port) == NULL || p->br != br) return -EINVAL; br_stp_disable_port(p); @@ -231,6 +232,9 @@ if (dev->hard_start_xmit == br_dev_xmit) return -ELOOP; + + if (!is_valid_ether_addr(dev->dev_addr)) + return -EADDRNOTAVAI...
2012 Jul 04
53
[PATCH 00 of 10 v3] Automatic NUMA placement for xl
Hello, Third version of the NUMA placement series Xen 4.2. All the comments received during v2''s review have been addressed (more details in single changelogs). The most notable changes are the following: - the libxl_cpumap --> libxl_bitmap renaming has been rebased on top of the recent patches that allows us to allocate bitmaps of different sizes; - the heuristics for deciding
2003 Sep 27
8
Patch for boot-time USB hangs in 4.9-PRERELEASE
...============================================== RCS file: /home/iedowse/CVS/src/sys/kern/kern_fork.c,v retrieving revision 1.72.2.14 diff -u -r1.72.2.14 kern_fork.c --- kern_fork.c 26 Jun 2003 04:15:10 -0000 1.72.2.14 +++ kern_fork.c 26 Sep 2003 08:26:31 -0000 @@ -183,7 +183,7 @@ struct proc *p2, *pptr; uid_t uid; struct proc *newproc; - int ok; + int ok, s; static int curfail = 0, pidchecked = 0; static struct timeval lastfail; struct forklist *ep; @@ -544,10 +544,10 @@ */ microtime(&(p2->p_stats->p_start)); p2->p_acflag = AFORK; - (void) splhigh(); + s = splhigh();...
2012 Sep 27
18
[PATCH 09/11] add iomem support to libxl
This patch adds a new option for xen config files for directly mapping hardware io memory into a vm. Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu> diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 index 013270d..428da21 100644 --- a/docs/man/xl.cfg.pod.5 +++ b/docs/man/xl.cfg.pod.5 @@ -496,6 +496,17 @@ is given in hexadecimal and may either a span e.g.
2003 Jul 18
10
[HTB] htb_dequeue_tree assertion (kernel 2.4.21-ac4)
Hello, I think the BUG_TRAP() in the htb_dequeue_tree() is wrong. First it checks if the class pointer "cl" is NULL, which is obviously right. But I do not understand why we also check whenever the queue length of the leaf queue is zero "cl->un.leaf.q->q.qlen". I would have put that in the expression of the "if" statements that comes afterwards. A queue