search for: patch_area

Displaying 6 results from an estimated 6 matches for "patch_area".

2016 Mar 07
1
[PATCH 4/5] installers: fix a possible buffer overflow when looking for LDLINUX_MAGIC
On 2016.03.07 03:27, Shao Miller via Syslinux wrote: > - Casting to a uintptr_t is ugly (and not C89, not that Syslinux cares > about that) Yeah, I'd have liked to avoid that too, but some compilers will complain about pointer arithmetic logic, unless you specifically use uintptr_t. But, considering your other very valid point, let me see if I can work something better here, that
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...{ struct hd_dpt { @@ -102,6 +115,11 @@ struct edd_dpt { uint8_t chksum; /* DPI checksum */ } __attribute__((packed)); +struct mBFT { + struct acpi_description_header acpi; + uint32_t safe_hook; /* "Safe hook" physical address */ +} __attribute__((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;...
2009 Jul 31
1
[PATCH] [memdisk] Additional EDD Device Parameter Table fields
...d */ + uint8_t bustype[4]; /* Host bus type */ + uint8_t inttype[8]; /* Interface type */ + uint64_t intpath; /* Interface path */ + uint64_t devpath[2]; /* Device path (double QuadWord!) */ + uint8_t res3; /* Reserved */ + uint8_t chksum; /* DPI checksum */ }; =20 struct patch_area { --=20 1.5.6.3 ------_=_NextPart_001_01CA11A5.1B50C173 Content-Type: application/octet-stream; name="0001--memdisk-Additional-EDD-Device-Parameter-Table-fiel.patch" Content-Transfer-Encoding: base64 Content-Description: 0001--memdisk-Additional-EDD-Device-Parameter-Table-fiel.patch Co...
2012 Aug 02
0
[PATCH 1/3] ALPHA: make sector size dynamic in extlinux
...8,13 +99,14 @@ static inline void *ptr(void *img, uint16_t *offset_p) */ int syslinux_patch(const sector_t *sectp, int nsectors, int stupid, int raid_mode, - const char *subdir, const char *subvol) + const char *subdir, const char *subvol, + unsigned sector_size) { struct patch_area *patcharea; struct ext_patch_area *epa; struct syslinux_extent *ex; uint32_t *wp; - int nsect = ((boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT) + 2; + int nsect = ((boot_image_len + sector_size - 1) / sector_size) + 2; uint32_t csum; int i, dw, nptrs;...
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512. Currently it fixes extlinux, MBR for GPT and ext partitions. Other code is unaffected. This set of patches has been tested on a read Dell machine running a beta firmware.
2006 Mar 10
2
unload memdisk+FreeDOS => local boot
.... The memdisk 'TSR' can then restore those vectors later, along with fields from the BIOS Data Area. This effectively restores the machine to its previous state and allows one to boot from local media. additions to memdisk/setup.c ---------------------------- I added 4 data fields to the patch_area struct that is set up for the memdisk TSR. 1. the BIOS_EQUIP word from the BIOS Data Area 2. the BIOS_HD_COUNT byte from the BIOS Data Area 3. a copy of the first 128 interrupt vectors (0-7Fh) 4. a checksum on the upper 128 interrupt vectors (80h-FFh) to validate that they are unchanged when we...