Actually add the files, and propagate changes..
This commit is contained in:
parent
3381d27403
commit
46e5e5cb89
10 changed files with 318 additions and 196 deletions
4
DISTLIST
4
DISTLIST
|
@ -139,6 +139,7 @@ include/grub/efi/time.h
|
|||
include/grub/i386/linux.h
|
||||
include/grub/i386/loader.h
|
||||
include/grub/i386/setjmp.h
|
||||
include/grub/i386/time.h
|
||||
include/grub/i386/types.h
|
||||
include/grub/i386/efi/kernel.h
|
||||
include/grub/i386/efi/loader.h
|
||||
|
@ -163,6 +164,7 @@ include/grub/ieee1275/ieee1275.h
|
|||
include/grub/ieee1275/ofdisk.h
|
||||
include/grub/powerpc/libgcc.h
|
||||
include/grub/powerpc/setjmp.h
|
||||
include/grub/powerpc/time.h
|
||||
include/grub/powerpc/types.h
|
||||
include/grub/powerpc/ieee1275/biosdisk.h
|
||||
include/grub/powerpc/ieee1275/console.h
|
||||
|
@ -172,11 +174,13 @@ include/grub/powerpc/ieee1275/loader.h
|
|||
include/grub/powerpc/ieee1275/time.h
|
||||
include/grub/powerpc/ieee1275/util/biosdisk.h
|
||||
include/grub/sparc64/setjmp.h
|
||||
include/grub/sparc64/time.h
|
||||
include/grub/sparc64/types.h
|
||||
include/grub/sparc64/ieee1275/console.h
|
||||
include/grub/sparc64/ieee1275/ieee1275.h
|
||||
include/grub/sparc64/ieee1275/kernel.h
|
||||
include/grub/sparc64/ieee1275/time.h
|
||||
include/grub/time.h
|
||||
include/grub/util/biosdisk.h
|
||||
include/grub/util/getroot.h
|
||||
include/grub/util/lvm.h
|
||||
|
|
|
@ -287,7 +287,7 @@ und-kernel.lst: pre-kernel.o
|
|||
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@
|
||||
|
||||
kernel_mod-kern_i386_efi_startup.o: kern/i386/efi/startup.S
|
||||
$(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(kernel_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
$(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
-include kernel_mod-kern_i386_efi_startup.d
|
||||
|
||||
CLEANFILES += cmd-kernel_mod-kern_i386_efi_startup.lst fs-kernel_mod-kern_i386_efi_startup.lst
|
||||
|
@ -648,8 +648,8 @@ fs-kernel_mod-disk_efi_efidisk.lst: disk/efi/efidisk.c genfslist.sh
|
|||
|
||||
kernel_mod_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
|
||||
env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
|
||||
partition.h pc_partition.h rescue.h symbol.h term.h types.h \
|
||||
i386/efi/time.h efi/efi.h efi/time.h efi/disk.h
|
||||
partition.h pc_partition.h rescue.h symbol.h term.h time.h types.h \
|
||||
efi/efi.h efi/time.h efi/disk.h
|
||||
kernel_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||
kernel_mod_ASFLAGS = $(COMMON_ASFLAGS)
|
||||
kernel_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
||||
|
@ -899,7 +899,7 @@ fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
|
|||
|
||||
|
||||
normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S
|
||||
$(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
$(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
-include normal_mod-normal_i386_setjmp.d
|
||||
|
||||
CLEANFILES += cmd-normal_mod-normal_i386_setjmp.lst fs-normal_mod-normal_i386_setjmp.lst
|
||||
|
|
|
@ -164,10 +164,9 @@ kernel_img-symlist.o: symlist.c
|
|||
|
||||
kernel_img_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
|
||||
env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
|
||||
partition.h pc_partition.h rescue.h symbol.h term.h types.h \
|
||||
partition.h pc_partition.h rescue.h symbol.h term.h time.h types.h \
|
||||
machine/biosdisk.h machine/boot.h machine/console.h machine/init.h \
|
||||
machine/memory.h machine/loader.h machine/time.h machine/vga.h \
|
||||
machine/vbe.h
|
||||
machine/memory.h machine/loader.h machine/vga.h machine/vbe.h
|
||||
kernel_img_CFLAGS = $(COMMON_CFLAGS)
|
||||
kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
|
||||
kernel_img_LDFLAGS = -nostdlib -Wl,-N,-Ttext,8200 $(COMMON_CFLAGS)
|
||||
|
@ -1309,7 +1308,7 @@ fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
|
|||
|
||||
|
||||
normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S
|
||||
$(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
$(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
-include normal_mod-normal_i386_setjmp.d
|
||||
|
||||
CLEANFILES += cmd-normal_mod-normal_i386_setjmp.lst fs-normal_mod-normal_i386_setjmp.lst
|
||||
|
|
|
@ -12,8 +12,8 @@ DEFSYMFILES += kernel_syms.lst
|
|||
|
||||
kernel_elf_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
|
||||
env.h err.h file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h \
|
||||
symbol.h term.h types.h powerpc/libgcc.h loader.h partition.h \
|
||||
pc_partition.h ieee1275/ieee1275.h machine/time.h machine/kernel.h
|
||||
symbol.h term.h time.h types.h powerpc/libgcc.h loader.h partition.h \
|
||||
pc_partition.h ieee1275/ieee1275.h machine/kernel.h
|
||||
|
||||
kernel_elf_symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh
|
||||
/bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
|
||||
|
@ -1000,7 +1000,7 @@ fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
|
|||
|
||||
|
||||
normal_mod-normal_powerpc_setjmp.o: normal/powerpc/setjmp.S
|
||||
$(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
$(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
-include normal_mod-normal_powerpc_setjmp.d
|
||||
|
||||
CLEANFILES += cmd-normal_mod-normal_powerpc_setjmp.lst fs-normal_mod-normal_powerpc_setjmp.lst
|
||||
|
|
|
@ -12,8 +12,8 @@ DEFSYMFILES += kernel_syms.lst
|
|||
|
||||
kernel_elf_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
|
||||
env.h err.h file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h \
|
||||
symbol.h term.h types.h sparc64/libgcc.h loader.h partition.h \
|
||||
pc_partition.h ieee1275/ieee1275.h machine/time.h machine/kernel.h
|
||||
symbol.h term.h time.h types.h sparc64/libgcc.h loader.h partition.h \
|
||||
pc_partition.h ieee1275/ieee1275.h machine/kernel.h
|
||||
|
||||
kernel_elf_symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh
|
||||
/bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
|
||||
|
@ -939,7 +939,7 @@ fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
|
|||
|
||||
|
||||
normal_mod-normal_sparc64_setjmp.o: normal/sparc64/setjmp.S
|
||||
$(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
$(TARGET_CC) -Inormal/sparc64 -I$(srcdir)/normal/sparc64 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
|
||||
-include normal_mod-normal_sparc64_setjmp.d
|
||||
|
||||
CLEANFILES += cmd-normal_mod-normal_sparc64_setjmp.lst fs-normal_mod-normal_sparc64_setjmp.lst
|
||||
|
|
28
include/grub/i386/time.h
Normal file
28
include/grub/i386/time.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GRUB is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KERNEL_CPU_TIME_HEADER
|
||||
#define KERNEL_CPU_TIME_HEADER 1
|
||||
|
||||
static __inline void
|
||||
grub_cpu_idle ()
|
||||
{
|
||||
__asm__ __volatile__ ("hlt");
|
||||
}
|
||||
|
||||
#endif /* ! KERNEL_CPU_TIME_HEADER */
|
28
include/grub/powerpc/time.h
Normal file
28
include/grub/powerpc/time.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GRUB is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KERNEL_CPU_TIME_HEADER
|
||||
#define KERNEL_CPU_TIME_HEADER 1
|
||||
|
||||
static __inline void
|
||||
grub_cpu_idle ()
|
||||
{
|
||||
/* FIXME: not implemented */
|
||||
}
|
||||
|
||||
#endif /* ! KERNEL_CPU_TIME_HEADER */
|
28
include/grub/sparc64/time.h
Normal file
28
include/grub/sparc64/time.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GRUB is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KERNEL_CPU_TIME_HEADER
|
||||
#define KERNEL_CPU_TIME_HEADER 1
|
||||
|
||||
static __inline void
|
||||
grub_cpu_idle ()
|
||||
{
|
||||
/* FIXME: not implemented */
|
||||
}
|
||||
|
||||
#endif /* ! KERNEL_CPU_TIME_HEADER */
|
35
include/grub/time.h
Normal file
35
include/grub/time.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GRUB is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KERNEL_TIME_HEADER
|
||||
#define KERNEL_TIME_HEADER 1
|
||||
|
||||
#include <grub/symbol.h>
|
||||
#include <grub/machine/time.h>
|
||||
#include <grub/cpu/time.h>
|
||||
|
||||
void EXPORT_FUNC(grub_millisleep) (grub_uint32_t ms);
|
||||
void EXPORT_FUNC(grub_millisleep_generic) (grub_uint32_t ms);
|
||||
|
||||
static __inline void
|
||||
grub_sleep (grub_uint32_t s)
|
||||
{
|
||||
grub_millisleep (1000 * s);
|
||||
}
|
||||
|
||||
#endif /* ! KERNEL_TIME_HEADER */
|
Loading…
Reference in a new issue