Vladimir Serbinenko
a6649f5b8e
FDT lib improvements
2016-02-20 12:30:06 +01:00
Vladimir Serbinenko
c3c14cffef
refresh before abort
2016-02-20 09:12:15 +01:00
Vladimir Serbinenko
84939af253
generic timer safeguard
2016-02-20 09:12:02 +01:00
Vladimir Serbinenko
ba6d40e8bb
WIP2
2016-02-19 16:47:36 +01:00
Vladimir Serbinenko
2c3a054f4f
WIP
2016-02-19 12:41:50 +01:00
Vladimir Serbinenko
b8eda96422
rename
2016-02-19 12:17:56 +01:00
Vladimir Serbinenko
ca3962ca7b
fix relocate
2016-02-19 12:17:20 +01:00
Vladimir Serbinenko
a4f7d77f7d
fs
2016-02-19 04:48:50 +01:00
Vladimir Serbinenko
5099975ace
fd
2016-02-19 04:48:17 +01:00
Vladimir Serbinenko
2f98d7648e
Move cbfb
2016-02-19 04:47:02 +01:00
Vladimir Serbinenko
018e382144
decouple
2016-02-19 04:31:59 +01:00
Vladimir Serbinenko
f5cba79512
Declare arm-coreboot
2016-02-19 03:24:49 +01:00
Vladimir Serbinenko
46569db585
arm-uboot: Make self-relocatable to allow loading at any address
2016-02-19 03:22:10 +01:00
Vladimir Serbinenko
575c7a6e3c
Allow _start == 0 with relocatable images
2016-02-19 02:03:28 +01:00
Vladimir Serbinenko
fc489a889d
Provide __bss_start and _end symbols in grub-mkimage.
...
For this ensure that all bss sections are merged.
2016-02-19 02:02:50 +01:00
Vladimir Serbinenko
bfb517bc3b
encapsulate
2016-02-19 01:58:11 +01:00
Vladimir Serbinenko
437dba573f
Remove useless ifdef
2016-02-19 01:28:16 +01:00
Vladimir Serbinenko
974ba94330
mkimagexx: Split PE and generic part.
2016-02-19 01:14:12 +01:00
Vladimir Serbinenko
963d21b76c
file split
2016-02-19 01:14:12 +01:00
Vladimir Serbinenko
e3745f9087
default_payload.elf: Always rebuild and remove before build.
...
It's difficult to know all dependencies. Since it's manual and cheap
target anyway, simply always rebuild it.
2016-02-17 18:19:18 +01:00
Vladimir Serbinenko
01d50c2539
default_payload.elf: Include password_pbkdf2.
...
Withoout this module we may end up in a system where no password is
accepted.
2016-02-17 18:11:51 +01:00
Vladimir Serbinenko
8d69065f52
default_payload.elf: Add modules from $(EXTRA_PAYLOAD_MODULES).
...
This allows coreboot building system to add extra modules depending
on user config.
2016-02-17 18:10:31 +01:00
Vladimir Serbinenko
59ec05bcf8
mm: Avoid integer overflow.
2016-02-17 18:09:44 +01:00
Vladimir Serbinenko
fabde8324d
Remove -Wno-maybe-uninitialized as it may not be present.
2016-02-17 17:58:05 +01:00
Vladimir Serbinenko
5cae910665
Fix warnings when compiling with -O3
2016-02-17 17:56:41 +01:00
Vladimir Serbinenko
25492a0f04
Add wbinvd around bios call.
...
Via C3 has problems with cache coherency when transitioning between the modes,
so flush it around bios calls.
2016-02-14 08:34:10 +01:00
Eric Snowberg
080a20861c
OBP available region contains grub. Start at grub_phys_end.
...
This prevents a problem where grub was being overwritten since
grub_phys_start does not start at a zero offset within the memory
map.
2016-02-12 23:16:03 +01:00
Andreas Freimuth
f96b34224e
Add Thinkpad T410s button cmos address.
2016-02-12 19:19:11 +01:00
Vladimir Serbinenko
a2ab8c2172
TODO: Remove obsolete link
2016-02-12 17:51:52 +01:00
Toomas Soome
ce01054ec3
lz4: Fix pointer overflow
2016-02-12 17:26:32 +01:00
Vladimir Serbinenko
feef882f98
grub-shell: Update 32-bit OVMF binary name.
2016-02-12 16:08:04 +01:00
Daniel Kiper
eba6db6323
relocator: Fix integer underflow.
2016-02-12 16:07:57 +01:00
Vladimir Serbinenko
6e1ace590a
Change -v to -V for version of shell utils.
2016-02-12 15:46:05 +01:00
Vladimir Serbinenko
7c35f65aac
xnu: Add new kernel path to autoconfig.
2016-02-12 15:42:26 +01:00
Vladimir Serbinenko
4598cafa7d
arm64: Use cpu timer for timekeeping.
2016-02-12 12:43:02 +01:00
Vladimir Serbinenko
6f4189ffc1
powerpc: Trim header in tests.
2016-02-12 12:42:04 +01:00
Vladimir Serbinenko
127cfea8be
default_payload: Include syslinuxcfg, all filesystems and xnu.
2016-02-12 12:41:28 +01:00
Vladimir Serbinenko
22aa31bcc3
xnu: Supply random seed.
...
Now we're able to load kernels up to El Capitan.
2016-02-12 12:40:10 +01:00
Vladimir Serbinenko
e72de13b9e
Add RNG module.
2016-02-12 12:39:38 +01:00
Vladimir Serbinenko
342d6edb97
yylex: use grub_fatal for exit.
...
lexer calls yylex_fatal on fatal internal errors. yylex_fatal itself is
declared as noreturn and calls exit. Returning from noreturn function has
unpredictable consequences.
2016-02-12 12:34:54 +01:00
Vladimir Serbinenko
e5c9300191
printf: Fix and test %% behaviour in presence of subsequenbt args.
2016-02-12 12:33:41 +01:00
Vladimir Serbinenko
d9a3bfead8
Split pmtimer wait and tsc measurement from pmtimer tsc calibration.
2016-02-12 11:40:51 +01:00
Vladimir Serbinenko
1933d37371
Make grub_cpu_is_tsc_supported generally available.
2016-02-12 11:38:51 +01:00
Vladimir Serbinenko
b29638222e
Make grub_acpi_find_fadt accessible generically
2016-02-12 11:35:48 +01:00
Vladimir Serbinenko
8ad190cac2
Make unaligned types public.
...
This simplifies code which has to handle those types.
2016-02-12 09:11:06 +01:00
Vladimir Serbinenko
281baeecd3
Fix emu compilation error on arm.
2016-02-12 09:10:08 +01:00
Vladimir Serbinenko
df4df4d887
xnu: Include relocated EFI in heap size.
2016-02-11 12:30:45 +01:00
Vladimir Serbinenko
2d425ffdd5
xnu: supply ramsize to the kernel.
...
Without this info recent kernels crash as they allocate no heap.
2016-02-11 11:58:28 +01:00
Andrei Borzenkov
67dba97e45
support modules without symbol table
...
all_video module does not have any code or data and exists solely for
.moddeps section to pull in dependencies. This makes all symbols unneeded.
While in current binutils (last released version as of this commit is 2.26)
``strip --strip-unneeded'' unintentionally adds section symbols for each
existing section, this behavior was considered a bug and changed in commit
14f2c699ddca1e2f706342dffc59a6c7e23e844c to completely strip symbol table
in this case.
Older binutils (verified with 2.17) and some other toolchains (at least
elftoolchain r3223M), both used in FreeBSD, remove symbol table in all_video
as well.
Relax run-time check and do not return error for modules without symbol table.
Add additional checks to module verifier to make sure such modules
a) have non-empty .moddeps section. Without either externally visible symbols
or .moddeps modules are completely useless and should not be built.
b) do not have any relocations.
Closes: 46986
v2: add run-time check for empty symbol table if relocations are present as
suggested by Vladimir.
2016-02-03 20:34:55 +03:00
Andrei Borzenkov
7290bb5623
10_linux: avoid multi-device root= kernel argument
...
If root filesystem is multidev btrfs, do not attempt to pass all devices as
kernel root= argument. This results in splitting command line in GRUB due to
embedded newline and even if we managed to quote it, kernel does not know how
to interpret it anyway. Multidev btrfs requires user space device scanning,
so passing single device would not work too.
This still respects user settings GRUB_DISABLE_LINUX_UUID. Not sure what we
should do in this case.
Closes: 45709
2016-02-01 20:13:48 +03:00