Changeset 3743 for trunk/payloads

Show
Ignore:
Timestamp:
11/11/08 20:51:14 (2 months ago)
Author:
jcrouse
Message:

[PATCH] Add sysinfo_have_multiboot function

Add a new infrastructure for returning system information to payloads.
First up - a pointer to the multiboot table.

Signed-off-by: Jordan Crouse <jordan@…>
Acked-by: Peter Stuge <peter@…>

Location:
trunk/payloads/libpayload
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/payloads/libpayload/i386/multiboot.c

    r3673 r3743  
    8787        table = (struct multiboot_header *) phys_to_virt(loader_ebx); 
    8888 
     89        info->mbtable = phys_to_virt(loader_ebx); 
     90 
    8991        if (table->flags & MULTIBOOT_FLAGS_MMAP) 
    9092                mb_parse_mmap(table, info); 
  • trunk/payloads/libpayload/include/libpayload.h

    r3679 r3743  
    422422 
    423423/** 
     424 * @defgroup info System information functions 
     425 * This module contains functions that return information about the system 
     426 * @{ 
     427 */ 
     428 
     429int sysinfo_have_multiboot(unsigned long *addr); 
     430/** @} */ 
     431 
     432/** 
    424433 * @defgroup arch Architecture specific functions 
    425434 * This module contains global architecture specific functions. 
  • trunk/payloads/libpayload/include/sysinfo.h

    r3525 r3743  
    4949        u32 cmos_range_end; 
    5050        u32 cmos_checksum_location; 
     51 
     52        unsigned long *mbtable; /** Pointer to the multiboot table */ 
    5153}; 
    5254 
  • trunk/payloads/libpayload/libc/Makefile.inc

    r3522 r3743  
    3232TARGETS-$(CONFIG_LIBC) += libc/memory.o libc/ctype.o libc/ipchecksum.o libc/lib.o 
    3333TARGETS-$(CONFIG_LIBC) += libc/rand.o libc/time.o libc/lar.o libc/exec.o 
    34 TARGETS-$(CONFIG_LIBC) += libc/readline.o 
     34TARGETS-$(CONFIG_LIBC) += libc/readline.o libc/sysinfo.o