Displaying 3 results from an estimated 3 matches for "ebios_setup".
2013 Sep 17
1
[PATCH 2/4 v3] com32/disk: Code cleanup at disk_write_sectors and disk_read_sectors.
Pulled common code out of these functions into new ones.
The functions chs_setup and ebios_setup were created for this purpose.
Signed-off-by: Raphael S.Carvalho <raphael.scarv at gmail.com>
---
com32/include/syslinux/disk.h | 7 ++
com32/lib/syslinux/disk.c | 173 +++++++++++++++++++++--------------------
2 files changed, 97 insertions(+), 83 deletions(-)
diff --git a/com32/i...
2013 Oct 17
1
[PATCH] chain: Fix chainloading on 6.02
...syslinux/disk.c | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/com32/lib/syslinux/disk.c b/com32/lib/syslinux/disk.c
index 0b0c737..47ecb52 100644
--- a/com32/lib/syslinux/disk.c
+++ b/com32/lib/syslinux/disk.c
@@ -171,22 +171,28 @@ out:
static void *ebios_setup(const struct disk_info *const diskinfo, com32sys_t *inreg,
uint64_t lba, uint8_t count, uint8_t op_code)
{
- static __lowmem struct disk_ebios_dapa dapa;
+ static struct disk_ebios_dapa *dapa = NULL;
void *buf;
+ if (!dapa) {
+ dapa = lmalloc(sizeof *dapa);
+ if (!dapa)
+ r...
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
...ve to read from
- * @v inreg Register data structure to be filled.
- * @v lba The logical block address to begin reading at
- * @v count The number of sectors to read
- * @v op_code Code to write/read operation
- * @ret lmalloc'd buf upon success, NULL upon failure
- */
-static void *ebios_setup(const struct disk_info *const diskinfo, com32sys_t *inreg,
- uint64_t lba, uint8_t count, uint8_t op_code)
-{
- static struct disk_ebios_dapa *dapa = NULL;
- void *buf;
-
- if (!dapa) {
- dapa = lmalloc(sizeof *dapa);
- if (!dapa)
- return NULL;
- }
-
- buf = lmalloc(count * d...