coreboot-kgpe-d16/src/arch/i386/llshell
Stefan Reinauer 14e2277962 Since some people disapprove of white space cleanups mixed in regular commits
while others dislike them being extra commits, let's clean them up once and
for all for the existing code. If it's ugly, let it only be ugly once :-)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2010-04-27 06:56:47 +00:00
..
console.inc Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
llshell.inc Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
pci.inc Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
ramtest.inc Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
readme.coreboot - get rid of ASM_CONSOLE_LOGLEVEL except in two assembler files. 2010-04-01 09:50:32 +00:00

1) Include llshell.inc in your northbridge Config file
2) In raminit.inc (or whatever), make a jmp out to low_level_shell, setting
   a return label in %esp.
For example:
ram_set_registers:

	mov $llshell_ret1,%esp
	jmp low_level_shell
llshell_ret1:

        /* Disable and invalidate the cache */
        invd
        mov %cr0, %eax
        ....
3) Optionally, comment out two lines in ramtest.inc:
5:
        CONSOLE_INFO_TX_STRING($rt_toomany)
        // post_code(0xf1)
        // jmp  .Lhlt
otherwise, a ramtest failure will hang

4) build and flash as normal
If it worked, the speaker will beep, and you'll get a shell.
Type help or ? at the prompt for a list of commands.