coreboot-kgpe-d16/src/include
Ronald G. Minnich 5965cba3dc RISCV: Clean up the common architectural code
This version of coreboot successfully starts a Harvey (Plan 9) kernel as a payload,
entering main() with no supporting assembly code for startup. The Harvey port
is not complete so it just panics but ... it gets started.

We provide a standard payload function that takes a pointer argument
and makes the jump from machine to supervisor mode;
the days of kernels running in machine mode are over.

We do some small tweaks to the virtual memory code. We temporarily
disable two functions that won't work on some targets as register
numbers changed between 1.7 and 1.9. Once lowrisc catches up
we'll reenable them.

We add the PAGETABLES to the memlayout.ld and use _pagetables in the virtual
memory setup code.

We now use the _stack and _estack from memlayout so we know where things are.
As time goes on maybe we can kill all the magic numbers.

Change-Id: I6caadfa9627fa35e31580492be01d4af908d31d9
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: https://review.coreboot.org/17058
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
2016-10-24 20:25:04 +02:00
..
boot lib: add common write_tables() implementation 2016-04-21 20:49:05 +02:00
console arch/x86,lib: make cbmem console work in postcar stage 2016-09-19 17:02:17 +02:00
cpu cpu/amd/model_fxx: transition away from device_t 2016-10-01 17:39:05 +02:00
device device/pci.h: change #ifdef argument to __SIMPLE_DEVICE__ 2016-09-04 05:49:15 +02:00
pc80 src/include: Add space around operators 2016-09-20 17:38:56 +02:00
smp src/include: Improve code formatting 2016-09-05 12:28:32 +02:00
superio tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sys commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
tpm_lite tpm2: implement locking firmware rollback counter 2016-07-14 00:00:14 +02:00
antirollback.h vboot: Stop creating backup space in TPM 2016-10-13 18:22:03 +02:00
assert.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
b64_decode.h lib: add base64 decoder 2015-04-22 08:50:54 +02:00
base3.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bcd.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boardid.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boot_device.h lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
bootblock_common.h bootblock: Declare common bootblock_pre_c_entry routine 2016-06-12 14:52:17 +02:00
bootmem.h lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.h bootmode: Get rid of CONFIG_BOOTMODE_STRAPS 2016-07-28 00:36:22 +02:00
bootstate.h lib: Add Kconfig to toggle boot state debugging 2016-02-18 00:01:14 +01:00
cbfs.h cbfs: Add "struct" file type and associated helpers 2016-08-27 01:16:22 +02:00
cbmem.h arch/x86,lib: make cbmem console work in postcar stage 2016-09-19 17:02:17 +02:00
delay.h timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
edid.h edid: Fix a function signature 2016-09-08 23:19:06 +02:00
elog.h drivers/elog: provide return status for all operations 2016-08-09 19:53:21 +02:00
endian.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
fallback.h cbfs: new API and better program loading 2015-06-02 14:09:31 +02:00
fmap.h lib/fmap: provide RW region device support 2016-08-19 18:17:04 +02:00
gic.h src/include: Capitalize CPU, RAM and ROM 2016-07-31 18:30:16 +02:00
gpio.h lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 20:44:36 +02:00
halt.h lib: add poweroff() declaration 2016-07-15 08:35:15 +02:00
imd.h cbmem: add coreboot table records for each cbmem entry 2015-11-03 00:19:46 +01:00
inttypes.h
ip_checksum.h
kconfig.h
lib.h lib: remove ulzma() 2016-07-01 23:55:16 +02:00
main_decl.h arches: lib: add main_decl.h for main() declaration 2016-02-11 23:29:08 +01:00
memlayout.h memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-23 21:33:29 +02:00
memory_info.h
memrange.h lib/memrange: add function to initialize range_entry 2016-03-09 16:46:16 +01:00
nhlt.h lib/nhlt: drop nhlt_soc_add_endpoint() 2016-06-29 23:15:37 +02:00
option.h
program_loading.h arm64: Use 'payload' format for ATF instead of 'stage' 2016-10-06 21:49:52 +02:00
reg_script.h lib/reg_script: Add display support 2016-05-04 19:21:40 +02:00
reset.h src/include: Improve code formatting 2016-09-05 12:28:32 +02:00
rmodule.h src/include: Capitalize CPU, RAM and ROM 2016-07-31 18:30:16 +02:00
romstage_handoff.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
rtc.h lib: Add real-time-clock functions 2016-06-24 20:22:05 +02:00
rules.h arch/arm: Add armv7-r configuration 2016-09-12 19:58:43 +02:00
sdram_mode.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smbios.h src/include: Add space around operators 2016-09-20 17:38:56 +02:00
spd.h SPD: Add CAS latency 2 2016-07-12 15:17:31 +02:00
spd_cache.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spd_ddr2.h src/include: Add space around operators 2016-09-20 17:38:56 +02:00
spi-generic.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spi_flash.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
stage_cache.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
stddef.h stddef.h: fix zeroptr's definition 2016-04-15 16:18:57 +02:00
stdlib.h coreboot: introduce commonlib 2015-09-22 21:21:34 +00:00
string.h src/include: Improve code formatting 2016-09-05 12:28:32 +02:00
swab.h
symbols.h RISCV: Clean up the common architectural code 2016-10-24 20:25:04 +02:00
thread.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timer.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timestamp.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tpm.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
trace.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
types.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vbe.h src/include: Add space around operators 2016-09-20 17:38:56 +02:00
version.h
watchdog.h src/include: Improve code formatting 2016-09-05 12:28:32 +02:00
wrdd.h Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00