Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356243
b: refs/heads/master
c: 3db07e7
h: refs/heads/master
i:
  356241: 9c41767
  356239: 884fc40
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Jan 29, 2013
1 parent 1d5f17a commit 9cb23bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16a4baa642cf448742aaf150c4daa093f9dbebbb
refs/heads/master: 3db07e70f0b4742f8daeda5c4aa8fbe7aeb3799e
8 changes: 4 additions & 4 deletions trunk/arch/x86/boot/boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ struct biosregs {
void intcall(u8 int_no, const struct biosregs *ireg, struct biosregs *oreg);

/* cmdline.c */
int __cmdline_find_option(u32 cmdline_ptr, const char *option, char *buffer, int bufsize);
int __cmdline_find_option_bool(u32 cmdline_ptr, const char *option);
int __cmdline_find_option(unsigned long cmdline_ptr, const char *option, char *buffer, int bufsize);
int __cmdline_find_option_bool(unsigned long cmdline_ptr, const char *option);
static inline int cmdline_find_option(const char *option, char *buffer, int bufsize)
{
u32 cmd_line_ptr = boot_params.hdr.cmd_line_ptr;
unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr;

if (cmd_line_ptr >= 0x100000)
return -1; /* inaccessible */
Expand All @@ -299,7 +299,7 @@ static inline int cmdline_find_option(const char *option, char *buffer, int bufs

static inline int cmdline_find_option_bool(const char *option)
{
u32 cmd_line_ptr = boot_params.hdr.cmd_line_ptr;
unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr;

if (cmd_line_ptr >= 0x100000)
return -1; /* inaccessible */
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/boot/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static inline int myisspace(u8 c)
* Returns the length of the argument (regardless of if it was
* truncated to fit in the buffer), or -1 on not found.
*/
int __cmdline_find_option(u32 cmdline_ptr, const char *option, char *buffer, int bufsize)
int __cmdline_find_option(unsigned long cmdline_ptr, const char *option, char *buffer, int bufsize)
{
addr_t cptr;
char c;
Expand Down Expand Up @@ -99,7 +99,7 @@ int __cmdline_find_option(u32 cmdline_ptr, const char *option, char *buffer, int
* Returns the position of that option (starts counting with 1)
* or 0 on not found
*/
int __cmdline_find_option_bool(u32 cmdline_ptr, const char *option)
int __cmdline_find_option_bool(unsigned long cmdline_ptr, const char *option)
{
addr_t cptr;
char c;
Expand Down

0 comments on commit 9cb23bc

Please sign in to comment.