Skip to content

Commit

Permalink
x86: Better comments for get_bios_ebda()
Browse files Browse the repository at this point in the history
Make the comments a bit clearer for get_bios_ebda so that it actually
tells us what it is returning.

Signed-off-by: Mike Waychison <mikew@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mike Waychison authored and Greg Kroah-Hartman committed Apr 29, 2011
1 parent 57d5f9f commit f548ccd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/x86/include/asm/bios_ebda.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
#include <asm/io.h>

/*
* there is a real-mode segmented pointer pointing to the
* 4K EBDA area at 0x40E.
* Returns physical address of EBDA. Returns 0 if there is no EBDA.
*/
static inline unsigned int get_bios_ebda(void)
{
/*
* There is a real-mode segmented pointer pointing to the
* 4K EBDA area at 0x40E.
*/
unsigned int address = *(unsigned short *)phys_to_virt(0x40E);
address <<= 4;
return address; /* 0 means none */
Expand Down

0 comments on commit f548ccd

Please sign in to comment.