diff options
author | Helge Deller <deller@gmx.de> | 2021-02-10 19:16:59 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2021-09-24 11:10:17 +0200 |
commit | e31c92f2267f6cff5e7f0334da38441026a87416 (patch) | |
tree | b504958c8bdd83bb83d2c3257510653e838a9f71 | |
parent | 51106fce17164374d8180dd507426306269f4c25 (diff) | |
download | seabios-hppa-e31c92f2267f6cff5e7f0334da38441026a87416.zip seabios-hppa-e31c92f2267f6cff5e7f0334da38441026a87416.tar.gz seabios-hppa-e31c92f2267f6cff5e7f0334da38441026a87416.tar.bz2 |
Drivers: Use get_bda_ptr() BDA accessor
Use the get_bda_ptr() accessor function instead of hardcoding with
MAKE_FLATPTR().
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/block.c | 2 | ||||
-rw-r--r-- | src/fw/csm.c | 2 | ||||
-rw-r--r-- | src/post.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/block.c b/src/block.c index 1f600b8..ec02d76 100644 --- a/src/block.c +++ b/src/block.c @@ -257,7 +257,7 @@ void map_hd_drive(struct drive_s *drive) { ASSERT32FLAT(); - struct bios_data_area_s *bda = MAKE_FLATPTR(SEG_BDA, 0); + struct bios_data_area_s *bda = get_bda_ptr(); int hdid = bda->hdcount; dprintf(3, "Mapping hd drive %p to %d\n", drive, hdid); add_drive(IDMap[EXTTYPE_HD], &bda->hdcount, drive); diff --git a/src/fw/csm.c b/src/fw/csm.c index 8359bcb..c0be9eb 100644 --- a/src/fw/csm.c +++ b/src/fw/csm.c @@ -181,7 +181,7 @@ handle_csm_0002(struct bregs *regs) enable_vga_console(); // EFI fills this in for us. Zero it for now... - struct bios_data_area_s *bda = MAKE_FLATPTR(SEG_BDA, 0); + struct bios_data_area_s *bda = get_bda_ptr(); bda->hdcount = 0; thread_setup(); @@ -75,7 +75,7 @@ bda_init(void) { dprintf(3, "init bda\n"); - struct bios_data_area_s *bda = MAKE_FLATPTR(SEG_BDA, 0); + struct bios_data_area_s *bda = get_bda_ptr(); memset(bda, 0, sizeof(*bda)); int esize = EBDA_SIZE_START; |