Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16374
b: refs/heads/master
c: 5fe9fe3
h: refs/heads/master
v: v3
  • Loading branch information
Zachary Amsden authored and Linus Torvalds committed Jan 6, 2006
1 parent a073e60 commit 4d1bb93
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 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: 3fae1c37eea98097de34ba665796fea93b29f4aa
refs/heads/master: 5fe9fe3c6f9a1ae7aa224bb7a66eb9aad9e4abef
12 changes: 6 additions & 6 deletions trunk/arch/i386/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,12 @@ ENTRY(cpu_gdt_table)
.quad 0x0000000000000000 /* 0x80 TSS descriptor */
.quad 0x0000000000000000 /* 0x88 LDT descriptor */

/* Segments used for calling PnP BIOS */
.quad 0x00c09a0000000000 /* 0x90 32-bit code */
.quad 0x00809a0000000000 /* 0x98 16-bit code */
.quad 0x0080920000000000 /* 0xa0 16-bit data */
.quad 0x0080920000000000 /* 0xa8 16-bit data */
.quad 0x0080920000000000 /* 0xb0 16-bit data */
/* Segments used for calling PnP BIOS have byte granularity */
.quad 0x00409a0000000000 /* 0x90 32-bit code */
.quad 0x00009a0000000000 /* 0x98 16-bit code */
.quad 0x0000920000000000 /* 0xa0 16-bit data */
.quad 0x0000920000000000 /* 0xa8 16-bit data */
.quad 0x0000920000000000 /* 0xb0 16-bit data */

/*
* The APM segments have byte granularity and their bases
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/pnp/pnpbios/bioscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,15 @@ int pnp_bios_dev_node_info(struct pnp_dev_node_info *data)
static int __pnp_bios_get_dev_node(u8 *nodenum, char boot, struct pnp_bios_node *data)
{
u16 status;
u16 tmp_nodenum;
if (!pnp_bios_present())
return PNP_FUNCTION_NOT_SUPPORTED;
if ( !boot && pnpbios_dont_use_current_config )
return PNP_FUNCTION_NOT_SUPPORTED;
tmp_nodenum = *nodenum;
status = call_pnp_bios(PNP_GET_SYS_DEV_NODE, 0, PNP_TS1, 0, PNP_TS2, boot ? 2 : 1, PNP_DS, 0,
nodenum, sizeof(char), data, 65536);
&tmp_nodenum, sizeof(tmp_nodenum), data, 65536);
*nodenum = tmp_nodenum;
return status;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ __asm__ __volatile__ ("movw %%dx,%1\n\t" \
); } while(0)

#define set_base(ldt,base) _set_base( ((char *)&(ldt)) , (base) )
#define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , ((limit)-1)>>12 )
#define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , ((limit)-1) )

/*
* Load a segment. Fall back on loading the zero
Expand Down

0 comments on commit 4d1bb93

Please sign in to comment.