Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 676
b: refs/heads/master
c: f9ba705
h: refs/heads/master
v: v3
  • Loading branch information
Venkatesh Pallipadi authored and Linus Torvalds committed May 1, 2005
1 parent a084806 commit c8f2d12
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 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: be9e68703c53fece406bc2e40976a5cfe2a8e77f
refs/heads/master: f9ba70535dc12d9eb57d466a2ecd749e16eca866
6 changes: 3 additions & 3 deletions trunk/Documentation/i386/zero-page.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ Offset Type Description
0x22c unsigned long ramdisk_max
0x230 16 bytes trampoline
0x290 - 0x2cf EDD_MBR_SIG_BUFFER (edd.S)
0x2d0 - 0x600 E820MAP
0x600 - 0x7ff EDDBUF (edd.S) for disk signature read sector
0x600 - 0x7eb EDDBUF (edd.S) for edd data
0x2d0 - 0xd00 E820MAP
0xd00 - 0xeff EDDBUF (edd.S) for disk signature read sector
0xd00 - 0xeeb EDDBUF (edd.S) for edd data
6 changes: 3 additions & 3 deletions trunk/arch/i386/boot/setup.S
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ ramdisk_max: .long (-__PAGE_OFFSET-(512 << 20)-1) & 0x7fffffff
trampoline: call start_of_setup
.align 16
# The offset at this point is 0x240
.space (0x7ff-0x240+1) # E820 & EDD space (ending at 0x7ff)
.space (0xeff-0x240+1) # E820 & EDD space (ending at 0xeff)
# End of setup header #####################################################

start_of_setup:
Expand Down Expand Up @@ -333,9 +333,9 @@ jmpe820:
# sizeof(e820rec).
#
good820:
movb (E820NR), %al # up to 32 entries
movb (E820NR), %al # up to 128 entries
cmpb $E820MAX, %al
jnl bail820
jae bail820

incb (E820NR)
movw %di, %ax
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/x86_64/boot/setup.S
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ ramdisk_max: .long 0xffffffff
trampoline: call start_of_setup
.align 16
# The offset at this point is 0x240
.space (0x7ff-0x240+1) # E820 & EDD space (ending at 0x7ff)
.space (0xeff-0x240+1) # E820 & EDD space (ending at 0xeff)
# End of setup header #####################################################

start_of_setup:
Expand Down Expand Up @@ -412,9 +412,9 @@ jmpe820:
# sizeof(e820rec).
#
good820:
movb (E820NR), %al # up to 32 entries
movb (E820NR), %al # up to 128 entries
cmpb $E820MAX, %al
jnl bail820
jae bail820

incb (E820NR)
movw %di, %ax
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/x86_64/kernel/head64.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ static void __init clear_bss(void)
(unsigned long) __bss_end - (unsigned long) __bss_start);
}

extern char x86_boot_params[2048];

#define NEW_CL_POINTER 0x228 /* Relative to real mode data */
#define OLD_CL_MAGIC_ADDR 0x90020
#define OLD_CL_MAGIC 0xA33F
Expand All @@ -44,7 +42,7 @@ static void __init copy_bootdata(char *real_mode_data)
int new_data;
char * command_line;

memcpy(x86_boot_params, real_mode_data, 2048);
memcpy(x86_boot_params, real_mode_data, BOOT_PARAM_SIZE);
new_data = *(int *) (x86_boot_params + NEW_CL_POINTER);
if (!new_data) {
if (OLD_CL_MAGIC != * (u16 *) OLD_CL_MAGIC_ADDR) {
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86_64/kernel/setup64.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/string.h>
#include <linux/bootmem.h>
#include <linux/bitops.h>
#include <asm/bootsetup.h>
#include <asm/pda.h>
#include <asm/pgtable.h>
#include <asm/processor.h>
Expand All @@ -26,7 +27,7 @@
#include <asm/mman.h>
#include <asm/numa.h>

char x86_boot_params[2048] __initdata = {0,};
char x86_boot_params[BOOT_PARAM_SIZE] __initdata = {0,};

cpumask_t cpu_initialized __initdata = CPU_MASK_NONE;

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/e820.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define __E820_HEADER

#define E820MAP 0x2d0 /* our map */
#define E820MAX 32 /* number of entries in E820MAP */
#define E820MAX 128 /* number of entries in E820MAP */
#define E820NR 0x1e8 /* # entries in E820MAP */

#define E820_RAM 1
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define MAXMEM_PFN PFN_DOWN(MAXMEM)
#define MAX_NONPAE_PFN (1 << 20)

#define PARAM_SIZE 2048
#define PARAM_SIZE 4096
#define COMMAND_LINE_SIZE 256

#define OLD_CL_MAGIC_ADDR 0x90020
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/asm-x86_64/bootsetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#ifndef _X86_64_BOOTSETUP_H
#define _X86_64_BOOTSETUP_H 1

extern char x86_boot_params[2048];
#define BOOT_PARAM_SIZE 4096
extern char x86_boot_params[BOOT_PARAM_SIZE];

/*
* This is set up by the setup-routine at boot-time
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/e820.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/mmzone.h>

#define E820MAP 0x2d0 /* our map */
#define E820MAX 32 /* number of entries in E820MAP */
#define E820MAX 128 /* number of entries in E820MAP */
#define E820NR 0x1e8 /* # entries in E820MAP */

#define E820_RAM 1
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/edd.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#define EDDNR 0x1e9 /* addr of number of edd_info structs at EDDBUF
in boot_params - treat this as 1 byte */
#define EDDBUF 0x600 /* addr of edd_info structs in boot_params */
#define EDDBUF 0xd00 /* addr of edd_info structs in boot_params */
#define EDDMAXNR 6 /* number of edd_info structs starting at EDDBUF */
#define EDDEXTSIZE 8 /* change these if you muck with the structures */
#define EDDPARMSIZE 74
Expand Down

0 comments on commit c8f2d12

Please sign in to comment.