Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
bea9baec
Commit
bea9baec
authored
May 16, 2014
by
Anton Burtsev
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Early attempt to add LCD_GUEST arch
parent
07f42b10
Changes
7
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
bea9baec
...
...
@@ -99,6 +99,10 @@ ID
*.orig
*~
\#*#
*.vpw
*.vpj
*.vtg
*.vpwhistu
#
# Leavings from module signing
...
...
arch/x86/Kbuild
View file @
bea9baec
...
...
@@ -13,6 +13,10 @@ obj-$(CONFIG_LGUEST_GUEST) += lguest/
# LCD support
obj-$(CONFIG_LCD) += lcd/
# LCD paravirtualization support
obj-$(CONFIG_LCD_GUEST) += lcdguest/
obj-y += realmode/
obj-y += kernel/
obj-y += mm/
...
...
arch/x86/kernel/head_64.S
View file @
bea9baec
...
...
@@ -490,6 +490,8 @@ ENTRY(phys_base)
.
quad
0x0000000000000000
#include "../../x86/xen/xen-head.S"
#include "../../x86/lcd/lcd-head.S"
__PAGE_ALIGNED_BSS
NEXT_PAGE
(
empty_zero_page
)
...
...
arch/x86/lcdguest/Kconfig
0 → 100644
View file @
bea9baec
config LCD_GUEST
bool "LCD guest (paravirtual Linux on LCD) support"
depends on X86_64
help
Selecting this will allow your kernel to boot under lcd.
arch/x86/lcdguest/Makefile
0 → 100644
View file @
bea9baec
# Make sure early boot has no stackprotector
nostackp
:=
$(
call
cc-option,
-fno-stack-protector
)
CFLAGS_enlighten.o
:=
$(nostackp)
obj-y
:=
enlighten.o
arch/x86/lcdguest/enlighten.c
0 → 100644
View file @
bea9baec
/*
* Core of LCD paravirt_ops implementation.
*
* Anton Burtsev <aburtsev@flux.utah.edu>, University of Utah 2014
*/
/* First C function to be called on Xen boot */
asmlinkage
void
__init
lcd_start_kernel
(
void
)
{
return
;
}
arch/x86/lcdguest/lcd-head.S
0 → 100644
View file @
bea9baec
/*
LCD
-
specific
pieces
of
head
.
S
,
intended
to
be
included
in
the
right
place
in
head
.
S
*/
#ifdef CONFIG_LCD_GUEST
#include <linux/elfnote.h>
#include <linux/init.h>
#include <asm/boot.h>
#include <asm/asm.h>
#include <asm/page_types.h>
#include <xen/interface/elfnote.h>
#include <asm/xen/interface.h>
__INIT
ENTRY
(
startup_lcd
)
cld
/*
#ifdef CONFIG_X86_32
mov
%
esi
,
xen_start_info
mov
$init_thread_union
+
THREAD_SIZE
,%
esp
#else
mov
%
rsi
,
xen_start_info
mov
$init_thread_union
+
THREAD_SIZE
,%
rsp
#
endif
*/
jmp
lcd_start_kernel
__FINIT
ELFNOTE
(
LCD
,
LCD_ELFNOTE_ENTRY
,
_ASM_PTR
startup_lcd
)
#endif /*CONFIG_LCD_GUEST */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment