[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using memdisk with grub2 and a gzip-compressed ISO
From: |
Andrei Borzenkov |
Subject: |
Re: Using memdisk with grub2 and a gzip-compressed ISO |
Date: |
Thu, 30 Apr 2015 06:36:03 +0300 |
В Wed, 29 Apr 2015 20:35:10 +0200
"Vladimir 'phcoder' Serbinenko" <address@hidden> пишет:
> > @@ -253,6 +256,9 @@ grub_initrd_load (struct grub_linux_initrd_context
> *initrd_ctx,
> > {
> > grub_ssize_t cursize;
> >
> > + grub_memset (ptr, 0, ALIGN_UP_OVERHEAD ((grub_addr_t)ptr, 4));
> > + ptr += ALIGN_UP_OVERHEAD ((grub_addr_t)ptr, 4);
> > +
> Please don't abuse the pointer this way.
Is it better?
grub_memset (ptr, 0, ALIGN_UP_OVERHEAD (ptr - (grub_uint8_t *)target, 4));
ptr += ALIGN_UP_OVERHEAD (ptr - (grub_uint8_t *)target, 4);
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, (continued)
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, Andrei Borzenkov, 2015/04/23
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, H. Peter Anvin, 2015/04/23
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, Andrei Borzenkov, 2015/04/23
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, H. Peter Anvin, 2015/04/24
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, Andrei Borzenkov, 2015/04/24
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, H. Peter Anvin, 2015/04/27
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, Vladimir 'φ-coder/phcoder' Serbinenko, 2015/04/29
- Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO, Andrei Borzenkov, 2015/04/29
Re: Using memdisk with grub2 and a gzip-compressed ISO, Andrei Borzenkov, 2015/04/29