-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/li…
…nux/kernel/git/tip/linux-2.6-tip * 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, setup: move isdigit.h to ctype.h, header files on top. x86, setup: enable early console output from the decompressor x86, setup: reorganize the early console setup x86, setup: Allow global variables and functions in the decompressor x86, setup: Only set early_serial_base after port is initialized x86, setup: Make the setup code also accept console=uart8250 x86, setup: Early-boot serial I/O support
- Loading branch information
Showing
18 changed files
with
422 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "misc.h" | ||
|
||
static unsigned long fs; | ||
static inline void set_fs(unsigned long seg) | ||
{ | ||
fs = seg << 4; /* shift it back */ | ||
} | ||
typedef unsigned long addr_t; | ||
static inline char rdfs8(addr_t addr) | ||
{ | ||
return *((char *)(fs + addr)); | ||
} | ||
#include "../cmdline.c" | ||
int cmdline_find_option(const char *option, char *buffer, int bufsize) | ||
{ | ||
return __cmdline_find_option(real_mode->hdr.cmd_line_ptr, option, buffer, bufsize); | ||
} | ||
int cmdline_find_option_bool(const char *option) | ||
{ | ||
return __cmdline_find_option_bool(real_mode->hdr.cmd_line_ptr, option); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "misc.h" | ||
|
||
int early_serial_base; | ||
|
||
#include "../early_serial_console.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef BOOT_COMPRESSED_MISC_H | ||
#define BOOT_COMPRESSED_MISC_H | ||
|
||
/* | ||
* we have to be careful, because no indirections are allowed here, and | ||
* paravirt_ops is a kind of one. As it will only run in baremetal anyway, | ||
* we just keep it from happening | ||
*/ | ||
#undef CONFIG_PARAVIRT | ||
#ifdef CONFIG_X86_32 | ||
#define _ASM_X86_DESC_H 1 | ||
#endif | ||
|
||
#include <linux/linkage.h> | ||
#include <linux/screen_info.h> | ||
#include <linux/elf.h> | ||
#include <linux/io.h> | ||
#include <asm/page.h> | ||
#include <asm/boot.h> | ||
#include <asm/bootparam.h> | ||
|
||
#define BOOT_BOOT_H | ||
#include "../ctype.h" | ||
|
||
/* misc.c */ | ||
extern struct boot_params *real_mode; /* Pointer to real-mode data */ | ||
void __putstr(int error, const char *s); | ||
#define putstr(__x) __putstr(0, __x) | ||
#define puts(__x) __putstr(0, __x) | ||
|
||
/* cmdline.c */ | ||
int cmdline_find_option(const char *option, char *buffer, int bufsize); | ||
int cmdline_find_option_bool(const char *option); | ||
|
||
/* early_serial_console.c */ | ||
extern int early_serial_base; | ||
void console_init(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include "misc.h" | ||
#include "../string.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef BOOT_ISDIGIT_H | ||
|
||
#define BOOT_ISDIGIT_H | ||
|
||
static inline int isdigit(int ch) | ||
{ | ||
return (ch >= '0') && (ch <= '9'); | ||
} | ||
|
||
static inline int isxdigit(int ch) | ||
{ | ||
if (isdigit(ch)) | ||
return true; | ||
|
||
if ((ch >= 'a') && (ch <= 'f')) | ||
return true; | ||
|
||
return (ch >= 'A') && (ch <= 'F'); | ||
} | ||
|
||
#endif |
Oops, something went wrong.